/* BayCloudLabs — Clear Sky theme */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F9FD;
  --surface: #FFFFFF;
  --border: #E3EEF7;
  --ink: #0E1A2B;
  --text: #1B2A3B;
  --muted: #4E5E6E;
  --faint: #6B7A89;
  --accent: #38B6FF;
  --accent-text: #1E9BE0;
  --accent-strong: #0B7DD1;
  --tint: #E9F6FF;
  --tint-2: #CDEBFF;
  --btn-dark-bg: #0E1A2B;
  --btn-dark-fg: #FFFFFF;
  --phone-frame: #0E1A2B;
  --phone-screen: #FFFFFF;
  --shadow-lg: 0 40px 80px rgba(14, 26, 43, 0.22);
  --shadow-sm: 0 8px 24px rgba(14, 26, 43, 0.06);
  --header-bg: rgba(255, 255, 255, 0.82);
  --sky-1: #EAF6FF;
  --sky-2: #CDEBFF;
  --sky-3: #9FD8FF;
  --cloud: #FFFFFF;
  --wave: rgba(255, 255, 255, 0.55);
  --sun-opacity: 1;
  --sun-disc: #FFFFFF;
  --stars-opacity: 0;
  --star: #FFFFFF;
  --bird: rgba(255, 255, 255, 0.85);
  --hill-far: #BFE3FA;
  --hill-near: #8FCFF7;
  --water-1: #6FC2F5;
  --water-2: #38B6FF;
  --boat-hull: #0E1A2B;
  --boat-sail: #FFFFFF;
  --boat-sail-2: #E9F6FF;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B1524;
  --bg-soft: #0F1B2E;
  --surface: #111E33;
  --border: #1E2D45;
  --ink: #F2F7FC;
  --text: #E4EDF6;
  --muted: #A7B7C8;
  --faint: #8595A8;
  --accent: #38B6FF;
  --accent-text: #5CC3FF;
  --accent-strong: #5CC3FF;
  --tint: #14273D;
  --tint-2: #1A3452;
  --btn-dark-bg: #F2F7FC;
  --btn-dark-fg: #0B1524;
  --phone-frame: #1B2A40;
  --phone-screen: #0F1B2E;
  --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
  --header-bg: rgba(11, 21, 36, 0.82);
  --sky-1: #16283F;
  --sky-2: #12315A;
  --sky-3: #1B5C9C;
  --cloud: #DDEEFF;
  --wave: rgba(56, 182, 255, 0.35);
  --sun-opacity: 0.45;
  --sun-disc: #E8F1FF;
  --stars-opacity: 1;
  --star: #DDEEFF;
  --bird: rgba(221, 238, 255, 0.7);
  --hill-far: #1E4A78;
  --hill-near: #163C63;
  --water-1: #12345A;
  --water-2: #0F2A48;
  --boat-hull: #DDEEFF;
  --boat-sail: #FFFFFF;
  --boat-sail-2: #B7DDFA;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1524;
    --bg-soft: #0F1B2E;
    --surface: #111E33;
    --border: #1E2D45;
    --ink: #F2F7FC;
    --text: #E4EDF6;
    --muted: #A7B7C8;
    --faint: #8595A8;
    --accent: #38B6FF;
    --accent-text: #5CC3FF;
    --accent-strong: #5CC3FF;
    --tint: #14273D;
    --tint-2: #1A3452;
    --btn-dark-bg: #F2F7FC;
    --btn-dark-fg: #0B1524;
    --phone-frame: #1B2A40;
    --phone-screen: #0F1B2E;
    --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
    --header-bg: rgba(11, 21, 36, 0.82);
    --sky-1: #16283F;
    --sky-2: #12315A;
    --sky-3: #1B5C9C;
    --cloud: #DDEEFF;
    --wave: rgba(56, 182, 255, 0.35);
    --sun-opacity: 0.45;
  --sun-disc: #E8F1FF;
  --stars-opacity: 1;
  --star: #DDEEFF;
  --bird: rgba(221, 238, 255, 0.7);
  --hill-far: #1E4A78;
  --hill-near: #163C63;
  --water-1: #12345A;
  --water-2: #0F2A48;
  --boat-hull: #DDEEFF;
  --boat-sail: #FFFFFF;
  --boat-sail-2: #B7DDFA;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3 {
  font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent-text); }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 80px); } }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 16px; }

.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent-strong); margin-bottom: 14px; }
.accent { color: var(--accent-text); }
.lead { font-size: clamp(17px, 1.4vw + 12px, 20px); color: var(--muted); max-width: 540px; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 16px; font-family: inherit; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #0E1A2B; }
.btn-primary:hover { background: #55C1FF; color: #0E1A2B; }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-dark:hover { background: var(--btn-dark-bg); color: var(--btn-dark-fg); opacity: .92; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }
.btn-lg { height: 56px; padding: 0 28px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
@media (min-width: 960px) { .header-inner { height: 84px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-wave { stroke: var(--bg); }
.brand-name { font-family: "Sora", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; line-height: 1; }
@media (min-width: 960px) { .brand-name { font-size: 22px; } }
.brand-accent { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; height: 46px; padding: 0 20px; font-size: 15px; }
.nav-cta { display: inline-flex; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .icon-moon { display: block; }
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-nav.open { display: flex; }
.site-nav a { font-size: 17px; font-weight: 600; color: var(--text); padding: 12px 8px; border-radius: 10px; }
.site-nav a:hover { color: var(--accent-text); background: var(--bg-soft); }
.site-nav .nav-cta { margin-top: 8px; color: var(--btn-dark-fg); }
.site-nav .nav-cta:hover { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }

@media (min-width: 960px) {
  .site-nav { position: static; display: flex; flex-direction: row; gap: 32px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .site-nav a { font-size: 15px; padding: 6px 2px; }
  .site-nav a:hover { background: transparent; }
  .nav-cta { display: none !important; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero { padding: 40px 0 32px; overflow: hidden; }
@media (min-width: 960px) { .hero { padding: 56px 0 48px; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.hero-copy { display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(38px, 5vw + 8px, 64px); line-height: 1.06; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--faint); }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

.hero-art { position: relative; height: 430px; }
@media (min-width: 600px) { .hero-art { height: 520px; } }
@media (min-width: 960px) { .hero-art { height: 600px; } }
.sky { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; }
@media (min-width: 960px) { .sky { border-radius: 32px; } }
.sky-svg { width: 100%; height: 100%; }
.sky-stop-1 { stop-color: var(--sky-1); }
.sky-stop-2 { stop-color: var(--sky-2); }
.sky-stop-3 { stop-color: var(--sky-3); }
.sky-sun { opacity: var(--sun-opacity); }
.cloud { fill: var(--cloud); }
.cloud-1 { opacity: .92; }
.cloud-2 { opacity: .78; }
.cloud-3 { opacity: .6; }
.stars { fill: var(--star); opacity: var(--stars-opacity); transition: opacity .3s ease; }
.sun-disc { fill: var(--sun-disc); opacity: var(--sun-opacity); }
.birds { stroke: var(--bird); }
.hill-far { fill: var(--hill-far); }
.hill-near { fill: var(--hill-near); }
.water-stop-1 { stop-color: var(--water-1); }
.water-stop-2 { stop-color: var(--water-2); }
.waves { stroke: var(--wave); }
.boat-hull { fill: var(--boat-hull); }
.boat-mast { stroke: var(--boat-hull); }
.boat-sail { fill: var(--boat-sail); }
.boat-sail-2 { fill: var(--boat-sail-2); }

.phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 200px; height: 412px; border-radius: 36px; padding: 8px;
  background: var(--phone-frame); box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) { .phone { width: 250px; height: 516px; border-radius: 42px; padding: 10px; } }
@media (min-width: 960px) { .phone { width: 262px; height: 540px; border-radius: 44px; transform: translate(-50%, -46%); } }
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; background: var(--phone-screen);
  overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 42px 14px 14px;
}
@media (min-width: 600px) { .phone-screen { border-radius: 34px; padding: 52px 18px 18px; gap: 14px; } }
.phone-topbar { display: flex; justify-content: space-between; align-items: center; }
.phone-title { font-family: "Sora", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
@media (min-width: 600px) { .phone-title { font-size: 18px; } }
.phone-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); }
.phone-ai { border-radius: 16px; background: var(--accent); color: #0E1A2B; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.phone-ai-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: .8; }
.phone-ai p { font-size: 13px; line-height: 1.4; font-weight: 600; }
@media (min-width: 600px) { .phone-ai p { font-size: 14px; } }
.phone-chips { display: flex; gap: 8px; margin-top: 2px; }
.phone-chips span { background: rgba(255,255,255,0.35); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.phone-list { display: flex; flex-direction: column; gap: 10px; }
.phone-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.phone-thumb { width: 32px; height: 32px; border-radius: 10px; background: var(--tint); flex-shrink: 0; }
.phone-lines { display: flex; flex-direction: column; gap: 5px; }
.phone-lines i { display: block; height: 8px; border-radius: 4px; background: var(--ink); max-width: 100%; }
.phone-lines i + i { height: 6px; background: var(--border); }

/* Stack strip */
.stack { padding: 8px 0 56px; }
@media (min-width: 960px) { .stack { padding: 8px 0 80px; } }
.stack-inner { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .stack-inner { flex-direction: row; align-items: center; gap: 28px; } }
.stack-label { font-size: 14px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
@media (min-width: 960px) { .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; } }
.section-head h2 { font-size: clamp(30px, 3vw + 10px, 44px); line-height: 1.1; max-width: 640px; }
.section-intro { max-width: 420px; font-size: 17px; color: var(--muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s ease, transform .2s ease; }
@media (min-width: 1024px) { .card { padding: 28px; min-height: 260px; } }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.card h3, .why-item h3, .step h3 { font-size: 20px; }
.card p, .why-item p, .step p { font-size: 15px; color: var(--muted); }

.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 3px solid var(--border); }
.step-1 { border-top-color: var(--accent); }
.step-2 { border-top-color: #9FD8FF; }
.step-3 { border-top-color: #CDEBFF; }
[data-theme="dark"] .step-2 { border-top-color: #2A7FBF; }
[data-theme="dark"] .step-3 { border-top-color: #1E5A8A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step-2 { border-top-color: #2A7FBF; }
  :root:not([data-theme="light"]) .step-3 { border-top-color: #1E5A8A; }
}
.step-num { font-family: "Sora", sans-serif; font-weight: 700; font-size: 14px; color: var(--accent-strong); }

.why-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }
.why-art { border-radius: 28px; background: var(--bg-soft); padding: 12px; }
@media (min-width: 960px) { .why-art { padding: 24px; } }
.why-svg { width: 100%; height: auto; }
.why-bg { fill: var(--tint); }
.why-cloud-1 { opacity: .95; }
.why-cloud-2 { opacity: .8; }
.why-links { stroke: var(--accent); opacity: .6; }
.why-dots { fill: var(--accent); }
.why-phone { fill: var(--phone-frame); }
.why-screen { fill: var(--phone-screen); }
.why-line { fill: var(--ink); }
.why-avatar { fill: var(--tint-2); }
.why-bubble { fill: var(--accent); }
.why-bubble-line { fill: rgba(14, 26, 43, 0.35); }
.why-row { fill: none; stroke: var(--border); stroke-width: 1.5; }
.why-cta { fill: var(--ink); }
.why-spark { fill: var(--accent); }
.why-list { display: flex; flex-direction: column; }
.why-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.why-item:last-child { border-bottom: 1px solid var(--border); }
.why-item h3 { margin-bottom: 6px; }
.why-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #0E1A2B; display: inline-flex; align-items: center; justify-content: center; }

/* CTA */
.cta-section { padding-top: 0; }
.cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--accent); color: #0E1A2B; padding: 40px 28px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 960px) { .cta { border-radius: 32px; padding: 72px 80px; flex-direction: row; justify-content: space-between; align-items: center; gap: 40px; } }
.cta h2 { font-size: clamp(30px, 3vw + 10px, 44px); line-height: 1.1; color: #0E1A2B; margin-bottom: 12px; }
.cta-copy { max-width: 620px; position: relative; z-index: 1; }
.cta-copy p { font-size: 17px; color: rgba(14, 26, 43, 0.85); }
@media (min-width: 960px) { .cta-copy p { font-size: 18px; } }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; flex-shrink: 0; }
.cta-actions .btn-dark { background: #0E1A2B; color: #FFFFFF; }
.cta-email { font-weight: 700; color: #0E1A2B; text-decoration: underline; text-underline-offset: 4px; }
.cta-email:hover { color: #0E1A2B; opacity: .8; }
.cta-cloud { position: absolute; right: -60px; top: -80px; fill: #FFFFFF; opacity: .18; pointer-events: none; }
@media (max-width: 959px) { .cta-cloud { right: -140px; top: -120px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
@media (min-width: 960px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: end; gap: 48px; } }
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-brand .brand-name { font-size: 18px; }
.footer-brand p { font-size: 14px; color: var(--faint); }
.footer-email { font-size: 15px; font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: var(--text); }
.footer-nav a:hover { color: var(--accent-text); }
.footer-copy { font-size: 13px; color: var(--faint); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .hero-art { animation: rise .8s ease .1s both; }
  .cloud-1 { animation: drift 14s ease-in-out infinite alternate; }
  .cloud-2 { animation: drift 18s ease-in-out infinite alternate-reverse; }
  .cloud-3 { animation: drift 22s ease-in-out infinite alternate; }
  .boat { animation: bob 5s ease-in-out infinite alternate; }
  .why-spark { animation: twinkle 3s ease-in-out infinite alternate; transform-origin: 360px 96px; transform-box: view-box; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { from { transform: translate(110px, 498px) rotate(-2deg); } to { transform: translate(110px, 498px) translateY(4px) rotate(2deg); } }
@keyframes twinkle { from { opacity: .75; } to { opacity: 1; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(22px); } }
