/* ===== Page Pulse Landing — Apple-style ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --primary: #6B9080;
  --primary-dark: #557567;
  --primary-light: #8FB2A4;
  --secondary: #64748B;
  --accent-blue: #0EA5E9;
  --accent-purple: #8B5CF6;
  --accent-orange: #F97316;

  /* Light theme */
  --bg: #ffffff;
  --bg-alt: #F4F7F5;
  --bg-elev: #ffffff;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow-lg: 0 30px 80px -20px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
  --gradient-hero: radial-gradient(ellipse at top, rgba(107, 144, 128, 0.18), transparent 60%),
                   radial-gradient(ellipse at bottom right, rgba(100, 116, 139, 0.12), transparent 55%);
}

:root[data-theme="dark"] {
  --bg: #0A0E0C;
  --bg-alt: #111815;
  --bg-elev: #161E1A;
  --text: #F1F5F4;
  --text-muted: #A8B5AE;
  --text-subtle: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(10, 14, 12, 0.72);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  --gradient-hero: radial-gradient(ellipse at top, rgba(107, 144, 128, 0.28), transparent 60%),
                   radial-gradient(ellipse at bottom right, rgba(14, 165, 233, 0.12), transparent 55%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0E0C;
    --bg-alt: #111815;
    --bg-elev: #161E1A;
    --text: #F1F5F4;
    --text-muted: #A8B5AE;
    --text-subtle: #64748B;
    --border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(10, 14, 12, 0.72);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
    --gradient-hero: radial-gradient(ellipse at top, rgba(107, 144, 128, 0.28), transparent 60%),
                     radial-gradient(ellipse at bottom right, rgba(14, 165, 233, 0.12), transparent 55%);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-brand svg { width: 26px; height: 26px; fill: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { font-size: 14px; color: var(--text-muted); padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-switch a {
  font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  color: var(--text-muted); transition: background-color 0.2s, color 0.2s;
}
.lang-switch a.active { color: var(--primary); background: rgba(107, 144, 128, 0.12); }
.lang-switch a:hover { color: var(--text); }

.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 900px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.45;
}
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 16px; font-weight: 500;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px -6px rgba(107, 144, 128, 0.6); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-alt); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn svg { width: 18px; height: 18px; }

.hero-device {
  margin-top: 72px;
  width: min(280px, 60vw);
  border-radius: 44px;
  filter: drop-shadow(0 40px 60px rgba(15, 23, 42, 0.25));
  animation: float 6s ease-in-out infinite;
}
:root[data-theme="dark"] .hero-device { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-device { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--text-subtle); letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce 2.5s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ===== Sticky Pinned Feature Sections ===== */
.feature {
  position: relative;
  padding: 80px 0;
  background: var(--bg);
}
.feature:nth-of-type(even) { background: var(--bg-alt); }

.feature-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.feature-sticky {
  position: sticky;
  top: 90px;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 120px);
}
.feature-device {
  width: min(320px, 80%);
  filter: drop-shadow(0 40px 60px rgba(15, 23, 42, 0.2));
  border-radius: 44px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
:root[data-theme="dark"] .feature-device { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature-device { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
}

.feature-content { padding: 120px 0; display: flex; flex-direction: column; gap: 32px; }
.feature-content .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  width: fit-content;
}
.feature-content .eyebrow.blue { color: var(--accent-blue); }
.feature-content .eyebrow.purple { color: var(--accent-purple); }
.feature-content .eyebrow.orange { color: var(--accent-orange); }

.feature-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.feature-content p {
  font-size: 19px; color: var(--text-muted); line-height: 1.55; max-width: 520px;
}
.feature-content .highlight {
  color: var(--text);
  font-weight: 500;
}

/* Reverse layout for alternating sections */
.feature.reverse .feature-inner { grid-template-columns: 1fr 1fr; }
.feature.reverse .feature-sticky { order: 2; }
.feature.reverse .feature-content { order: 1; }

/* ===== Section headings ===== */
.section-heading {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.section-heading p {
  margin-top: 18px; font-size: 19px; color: var(--text-muted);
}

/* ===== CTA band ===== */
.cta-band {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(14, 165, 233, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.cta-band p { margin-top: 20px; font-size: 19px; opacity: 0.9; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 36px; background: #fff; color: var(--primary-dark); }
.cta-band .btn:hover { background: #F1F5F4; }

/* ===== FAQ ===== */
.faq { padding: 120px 24px; background: var(--bg); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer;
  font-size: 19px; font-weight: 500;
  padding: 8px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 28px; font-weight: 300; color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px; color: var(--text-muted); font-size: 17px; line-height: 1.6;
  padding-right: 40px;
}

/* ===== Contact ===== */
.contact { padding: 120px 24px; background: var(--bg-alt); }
.contact-form {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(107, 144, 128, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { align-self: flex-start; margin-top: 8px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 22px; height: 22px; fill: var(--primary); }

/* ===== Legal pages ===== */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}
.legal h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.015em; color: var(--text); margin-bottom: 12px; }
.legal .updated { color: var(--text-subtle); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; font-weight: 600; color: var(--text); margin-top: 48px; margin-bottom: 14px; letter-spacing: -0.01em; }
.legal h3 { font-size: 19px; font-weight: 600; color: var(--text); margin-top: 28px; margin-bottom: 10px; }
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 0 0 20px 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal table {
  width: 100%; border-collapse: collapse; margin: 20px 0 28px;
  font-size: 15px;
}
.legal table th, .legal table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal table th { color: var(--text); font-weight: 600; background: var(--bg-alt); }
.legal a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(107, 144, 128, 0.4); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--primary); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-sticky { position: relative; top: auto; min-height: auto; padding: 20px 0; }
  .feature-device { width: min(260px, 65%); }
  .feature-content { padding: 20px 0 60px; }
  .feature.reverse .feature-sticky { order: 0; }
  .feature.reverse .feature-content { order: 1; }
  .hero { padding-top: 100px; }
  .hero-device { margin-top: 48px; width: min(240px, 60vw); }
  .cta-band, .faq, .contact { padding: 80px 24px; }
}

@media (max-width: 560px) {
  .nav-brand span { display: none; }
  .btn { padding: 12px 22px; font-size: 15px; }
  .feature { padding: 50px 0; }
  .feature-content { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
