/* ===== Summit Browser – Global Styles ===== */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&display=swap");

:root {
  --header-bg: #253f67;
  --header-bg-home: #04295c;
  --footer-bg: #002348;
  --footer-bar-bg: #00366e;
  --text: #333333;
  --white: #ffffff;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

main { flex: 1; }

/* ===== Header ===== */
.site-header {
  background: rgba(0, 31, 78, .86);
  position: sticky;
  top: 0;
  z-index: 100;
}
.home .site-header { background: var(--header-bg-home); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 71px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo img { height: 46px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 40px; }
.main-nav a {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  transition: opacity .2s;
}
.main-nav a:hover,
.main-nav a.active { opacity: .75; }

.btn-download {
  display: inline-block;
  background: #000;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 999px;
  padding: 8px 25px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  transition: background .2s, color .2s;
}
.btn-download:hover { background: var(--white); color: #000; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}

/* ===== Page title (placeholder) ===== */
.page-title {
  text-align: center;
  font-size: 34.67px;
  font-weight: 700;
  color: #222;
  margin: 50px 20px 20px;
}

/* ===== Footer ===== */
.site-footer { color: var(--white); }
.footer-links {
  background: var(--footer-bg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 235px));
  justify-content: center;
  gap: 30px;
  padding: 20px;
  text-align: center;
}
.footer-alt .footer-links { background: var(--footer-bar-bg); }

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 18.67px;
  font-weight: 700;
  line-height: 1.2;
}
.footer-col li { margin: 0; font-size: 14.67px; line-height: 1.7; }
.footer-col a { font-size: 14.67px; line-height: 1.7; transition: opacity .2s; }
.footer-col a:hover { opacity: .7; }

.footer-bottom {
  background: var(--footer-bar-bg);
  text-align: center;
  padding: 20px;
}
.footer-bottom p { margin: 0; font-size: 13.33px; line-height: 1.7; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0; height: auto; min-height: 71px; }
  .nav-toggle { display: block; }
  .main-nav,
  .btn-download { display: none; }
  .site-header.open .main-nav,
  .site-header.open .btn-download { display: block; width: 100%; }
  .site-header.open .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .site-header.open .main-nav a { display: block; padding: 10px 0; }
  .site-header.open .btn-download { width: auto; margin: 0 0 14px; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

}

/* =========================================================
   Shared components
   ========================================================= */
:root {
  --navy: #002348;
  --navy-mid: #00366e;
  --navy-btn: #00122d;
  --card: #5f5b7e;
  --pink: #ddabca;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.text-center { text-align: center; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 20px; font-weight: 700; }
h1, h2 { font-size: 34.67px; }
h3 { font-size: 26.67px; }

.btn-primary {
  display: inline-block;
  background: var(--navy-btn);
  color: var(--white);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  padding: 24px 0;
  width: 350px;
  max-width: 100%;
  text-align: center;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { border: 1px solid var(--navy-btn); transition: background .25s, color .25s, border-color .25s; }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy-btn); }

.download-note { font-size: 12px; line-height: 1.7; margin: 10px 0 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--pink);
  font-size: 20px;
  line-height: 1;
  margin-top: 10px;
}
.text-link .arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--navy);
  font-size: 14px;
  transition: transform .2s;
}
.text-link:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Home page
   ========================================================= */
.home main { color: var(--white); }

/* Hero */
.hero {
  background:
    linear-gradient(90deg, rgba(0, 35, 72, .45) 0%, rgba(0, 35, 72, .2) 35%, rgba(0, 35, 72, 0) 55%),
    var(--navy) url("../images/home-background.jpg") center top / 100% auto no-repeat;
  padding-top: 70px;
}
.hero-content { position: relative; z-index: 1; }
.hero h1, .hero-content > p:first-of-type { text-shadow: 0 2px 12px rgba(0, 25, 60, .45); }
.hero h1 { font-size: 34.67px; max-width: 560px; }
.hero-content > p:first-of-type { font-size: 20px; line-height: 1.7; max-width: 560px; margin: 0 0 26px; }
.hero .download-note { padding-left: 10px; }
.hero .download-note a { color: var(--white); text-decoration: underline; }
.hero-image { width: 100%; margin: 40px 0 -23vw; position: relative; z-index: 1; }

/* Dark wrapper */
.home-dark { background: var(--navy); padding-top: 1px; position: relative; }
.home-dark::before,
.home-dark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  aspect-ratio: 1990 / 767;
  background: center top / 100% auto no-repeat;
  opacity: .24;
  pointer-events: none;
}
.home-dark::before { top: 0; background-image: url("../images/home-bg-middle.png"); }
.home-dark::after { top: 1500px; background-image: url("../images/home-bg-middle-2.png"); }
.home-dark > .section { position: relative; z-index: 2; }

.section { padding: 50px 0; }
.home-dark p { font-size: 20px; line-height: 1.7; }
.home-dark p.wide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.intro { padding-top: 0; position: relative; z-index: 2; }

/* Images with offset purple panel */
.media-offset {
  position: relative;
  max-width: 820px;
  margin: 0 auto 40px;
}
.media-offset img { position: relative; border-radius: 16px; width: 100%; }
.media-offset::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card);
  border-radius: 16px;
}
.offset-tl::before { transform: translate(-20px, -20px); }
.offset-br::before { transform: translate(20px, 20px); }

.ai-chats { padding-top: 90px; }
.ai-icons { max-width: 800px; width: 100%; margin: 0 auto 40px; }

/* Key features */
.key-features { padding-top: 110px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 475px));
  justify-content: center;
  gap: 50px;
  margin: 40px 0 40px;
}
.feature-card {
  background: var(--card);
  border-radius: 8px;
  padding: 32px 40px;
  min-height: 200px;
  transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card h3 { font-size: 26.67px; margin-bottom: 14px; }
.feature-card p { font-size: 18.67px; line-height: 1.7; margin: 0; }

/* Sleek split */
.sleek { padding-top: 90px; }
.split { display: flex; align-items: center; gap: 60px; }
.split-media { flex: 0 0 45%; }
.split-media img { width: 100%; max-width: 520px; }
.split-text { flex: 1; }

/* Default browser */
.default-browser { padding-top: 100px; padding-bottom: 0; position: relative; z-index: 2; }
.monitor { width: 770px; max-width: 90%; margin: 50px auto 0; position: relative; z-index: 2; }

/* Bottom CTA */
.cta {
  /* exact values from the original site: overlaps previous section by 300px */
  color: var(--white);
  background: var(--navy) url("../images/home-bg-bottom.png") center top / cover no-repeat;
  margin-top: -300px;
  padding: 500px 20px 100px;
  position: relative;
  z-index: 1;
}
.home .cta {
  background:
    url("../images/home-bg-bottom.png") center top / 100% auto no-repeat,
    linear-gradient(var(--navy), var(--navy)) center top / 100% 30vw no-repeat,
    var(--navy-mid);
  margin-top: -14vw;
  padding: 25vw 0 70px;
}
.cta h2 { font-size: 34.67px; margin-bottom: 20px; }
.cta p { font-size: 20px; line-height: 1.7; margin: 0 0 50px; }
.cta .btn-primary { width: 400px; font-size: 24px; }
.cta .download-note { margin: 5px 0 0; font-size: 12px; line-height: 1.7; }
.cta .download-note a { color: #bb98bb; }

/* Home responsive */
@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
    background:
      linear-gradient(rgba(0, 35, 72, .55), rgba(0, 35, 72, .2)),
      var(--navy) url("../images/home-background.jpg") 75% top / cover no-repeat;
  }
  .hero .download-note a { color: #9cc7ff; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-card { min-height: 0; }
  .split { flex-direction: column; gap: 30px; }
  .section, .intro, .ai-chats, .key-features, .sleek, .default-browser { padding-top: 50px; }
  .offset-tl::before { transform: translate(-10px, -10px); }
  .offset-br::before { transform: translate(10px, 10px); }
}

/* =========================================================
   Shared page sections (Manual, Browser, Partner, Blog)
   ========================================================= */
.narrow-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.narrow-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.page-dark { background: var(--navy); color: var(--white); }
.page-hero { position: relative; background: var(--navy); padding: 60px 0; }
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  aspect-ratio: 1990 / 767;
  background: url("../images/home-bg-middle.png") center top / 100% auto no-repeat;
  opacity: .24;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-blog .page-hero::before { display: none; }
.page-dark p,
.browser-hero p,
.cta p { font-size: 20px; line-height: 1.7; }

/* Image with pink offset shadow */
.shadow-img {
  max-width: 800px;
  margin: 50px auto 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: -20px -20px 1px 0 rgba(228, 175, 206, .4);
}
.shadow-img img { width: 100%; }

/* ===== Manual ===== */
.features-title { margin-top: 50px; }
.page-manual .feature-grid { margin-bottom: 0; }
.manual-work { padding: 30px 0 0; position: relative; z-index: 2; }
.manual-db-img { width: 766px; max-width: 100%; margin: 30px auto; }

/* ===== Blog ===== */
.construction-img { width: 300px; margin: 0 auto 20px; }
.page-blog .page-hero p { margin: 0 0 20px; }
.page-blog .page-hero { position: relative; z-index: 2; }

/* ===== Browser ===== */
.page-browser { background: #000; }
.browser-hero { background: #000; color: var(--white); padding-top: 60px; }
.browser-hero h1 { margin-bottom: 40px; }
.browser-hero-img { width: 100%; }
.browser-hero-text { position: relative; z-index: 2; margin-top: -21vw; padding-bottom: 60px; }
.browser-hero-text p { margin: 0 0 20px; }

.browser-features {
  background: transparent;
  color: var(--white);
  padding: 60px 20px 1px;
  position: relative;
  z-index: 2;
}
.overlay-feature { max-width: 900px; margin: 0 auto 100px; }
.overlay-feature > img { width: 768px; max-width: 100%; display: block; }
.overlay-feature.card-left > img { margin-left: auto; }
.overlay-feature.full > img { width: 100%; }
.glass-card {
  position: relative;
  width: 405px;
  max-width: 90%;
  margin-top: -120px;
  padding: 30px 40px;
  border-radius: 20px;
  background: rgba(228, 175, 206, .4);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  text-align: center;
}
.card-right .glass-card { margin-left: auto; }
.glass-card h3 { font-size: 26.67px; margin-bottom: 14px; }
.glass-card p { font-size: 18.67px; line-height: 1.7; margin: 0; }

/* ===== Partner ===== */
.partner-hero .btn-primary { width: 400px; margin: 10px 0 40px; }
.partner-body { background: var(--white); padding: 0 0 20px; position: relative; z-index: 2; margin-top: 50px; }
.partner-diagram { width: 1024px; max-width: 100%; margin: 0 auto 30px; }
.partner-intro { color: #00487b; margin-bottom: 40px; }
.partner-intro p { font-size: 20px; line-height: 1.7; margin: 0 0 20px; }
.partner-card {
  background: var(--navy);
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 30px 70px;
  border-radius: 10px;
}
.partner-card h3 { font-size: 24px; }
.partner-card p { font-size: 16px; line-height: 1.7; margin: 0; }
.cta.cta-light {
  background: url("../images/home-bg-bottom.png") center top / cover no-repeat;
  margin-top: -350px;
  padding: 600px 20px 100px;
}
.cta-light .btn-primary { margin-top: 20px; }

/* =========================================================
   Legal / text pages (Contact, Uninstall, Privacy, Terms)
   ========================================================= */
.legal { padding: 40px 0; color: #6d7680; }
.legal h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #3e4349;
  text-align: center;
  margin: 0 0 20px;
}
.legal h2 {
  font-size: 28px;
  font-weight: 400;
  color: #3e4349;
  margin: 30px 0 20px;
}
.legal p { font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.legal ul, .legal ol { padding-left: 40px; margin: 0 0 20px; }
.legal ul { list-style: disc; }
.legal ul ul { list-style: circle; margin: 0; }
.legal ol { list-style: decimal; }
.legal ol[type="a"] { list-style: lower-alpha; margin: 0; }
.legal a { color: var(--navy); }
.legal a:hover { text-decoration: underline; }
.step-img { width: 600px; max-width: 100%; border: 1px solid #d5d3d3; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

/* Contact form */
.contact-form {
  max-width: 768px;
  margin: 0 auto;
  padding: 50px;
  background: #f7f7f7;
}
.contact-form label { display: block; font-weight: 700; margin: 5px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  height: 50px;
  padding: 10px;
  margin: 0 0 20px;
  font: inherit;
  color: #000;
  background: #fff;
  border: 1px solid #d5d3d3;
  border-radius: 5px;
}
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid #3073bb; outline-offset: -1px; }
.submit-btn {
  background: #3073bb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font: inherit;
  cursor: pointer;
  transition: background .2s;
}
.submit-btn:hover { background: #255e9c; }

/* Pages responsive */
@media (max-width: 900px) {
  .overlay-feature { margin-bottom: 60px; }
  .glass-card { margin-top: -60px; padding: 24px; }
  .browser-hero-text { margin-top: -80px; }
  .browser-hero-text br, .partner-hero br, .partner-intro br { display: none; }
  .partner-card { padding: 30px; }
  .contact-form { padding: 30px 20px; }
  .shadow-img { box-shadow: -10px -10px 1px 0 rgba(228, 175, 206, .4); }
}

/* ===== 404 page ===== */
.error-page { position: relative; z-index: 2; padding: 80px 0 60px; }
.page-dark .error-code {
  font-size: 160px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-dark .error-text { margin: 0 0 40px; }
.error-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
@media (max-width: 900px) {
  .page-dark .error-code { font-size: 110px; }
  .error-text br { display: none; }
  .error-links { gap: 20px; }
}

/* Browser features scribble layer */
.browser-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/home-bg-middle-2.png") center / auto no-repeat;
  opacity: .6;
  pointer-events: none;
}
.browser-features > * { position: relative; }

/* =========================================================
   Zigzag CTA: the section before it is transparent so the
   full peak outline shows; <main> carries the page colour.
   ========================================================= */
.page-manual main,
.page-blog main,
.page-browser main,
.page-404 main { background: var(--navy); }
.page-partner main { background: var(--white); }
.manual-work,
.page-blog .page-hero,
.page-404 .page-hero,
.partner-body { background: transparent; }
.page-blog .page-hero,
.page-404 .page-hero { z-index: 2; }

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(rgba(0, 35, 72, .55), rgba(0, 35, 72, .2)),
      var(--navy) url("../images/home-background.jpg") 75% top / cover no-repeat;
  }
}
