/* ===== Basic reset ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;line-height:1.6;color:#1e293b;background:#f8fafc;-webkit-font-smoothing:antialiased;caret-color:transparent}

/* ===== Color palette (approx. derived from logo) ===== */
:root{
  --primary:#2153ff;        /* dominant blue */
  --primary-dark:#1433b4;
  --secondary:#00d2ff;      /* cyan accent */
  --text-dark:#0f172a;
  --text-light:#f1f5f9;
  --header-offset:200px;    /* default, adjusted via JS */
}

a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}

/* ===== Layout ===== */
.container{width:90%;max-width:1200px;margin-inline:auto}

/* --- Header / navigation --- */
header{position:fixed;top:0;left:0;right:0;z-index:1000;background:#ffffffcc;backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid #e2e8f0}
.nav-wrapper{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}

.logo{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:1.125rem;color:var(--primary-dark)}
.logo img{height:128px;width:auto}

nav ul{display:flex;gap:1.5rem;list-style:none}
nav a{font-size:1rem;font-weight:400;color:var(--text-dark)}
nav a:hover{color:var(--primary-dark)}

/* Burger icon */
.burger{display:none;flex-direction:column;gap:4px;cursor:pointer;background:none;border:0}
.burger span{height:2px;width:22px;background:var(--text-dark)}

/* Mobile nav */
@media (max-width:768px){
  nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #e2e8f0}
  nav.open{display:block}
  nav ul{flex-direction:column;padding:1rem}
  .burger{display:flex}
}

/* --- Hero section --- */
.hero{padding:12rem 0 6rem;background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);color:#fff;text-align:center;position:relative;overflow:hidden}
.hero h1{font-size:clamp(2.2rem,5vw,3.5rem);font-weight:700;line-height:1.2;margin-bottom:1rem}
.hero p{max-width:600px;margin:0 auto 2rem;font-size:1.125rem;opacity:.95}
.btn{display:inline-block;background:#fff;color:var(--primary-dark);font-weight:600;padding:.75rem 1.5rem;border-radius:9999px;transition:all .2s;font-size:1rem;border:0;appearance:none;-webkit-appearance:none;cursor:pointer;text-decoration:none}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px -6px rgba(0,0,0,.25)}
/* Hero actions */
.hero .actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}

/* Decorative wave */
.wave{position:absolute;bottom:0;left:0;width:100%;height:100px;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,224L60,218.7C120,213,240,203,360,197.3C480,192,600,192,720,170.7C840,149,960,107,1080,117.3C1200,128,1320,192,1380,224L1440,256L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>') no-repeat center/cover}

/* --- Generic sections --- */
section{padding:4.5rem 0;scroll-margin-top:var(--header-offset)}
/* Ensure #about anchors don't show hero section and remain visible below header */
#about{position:relative;scroll-margin-top:0}
#about::before{content:'';display:block;height:var(--header-offset);margin-top:calc(-1 * var(--header-offset));visibility:hidden}
h2{font-size:2rem;font-weight:700;text-align:center;color:var(--text-dark);margin-bottom:1.5rem}

/* Feature / steps grid */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem}
.feature-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 20px -6px rgba(0,0,0,.1);transition:transform .2s}
.feature-card:hover{transform:translateY(-4px)}
.feature-card h3{font-size:1.25rem;font-weight:600;margin-bottom:.75rem;color:var(--primary-dark)}
.feature-card p{font-size:.95rem;color:#334155}

/* Dev page: always stack steps vertically */
.dev-page .features{grid-template-columns:1fr}

/* Code snippet */
pre{background:#0f172a;color:#e2e8f0;padding:1.25rem;border-radius:8px;overflow:auto;font-size:.9rem}
code{font-family:SFMono-Regular,Consolas,Menlo,monospace}

/* Console blocks */
.console{background:#0b1020;border:1px solid #1f2937;color:#e5e7eb;border-radius:10px;overflow:hidden;margin:1rem 0}
.console .console-header{display:flex;align-items:center;gap:.5rem;background:#0f172a;color:#cbd5e1;padding:.5rem .75rem;font-size:.8rem}
.console .console-header .dot{height:10px;width:10px;border-radius:50%;display:inline-block}
.console .console-header .dot.red{background:#ef4444}
.console .console-header .dot.yellow{background:#f59e0b}
.console .console-header .dot.green{background:#22c55e}
.console pre{background:transparent;margin:0;border-radius:0}
.console code{white-space:pre}

/* Media helpers */
.img-card{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 20px -6px rgba(0,0,0,.08);text-align:center}
.img-card img{max-width:100%;height:auto}
.img-caption{margin-top:.5rem;color:#475569;font-size:.9rem}

/* About image (click to zoom) */
.about-image{display:block;margin:1.25rem auto 0;max-width:158px;width:100%;height:auto;border-radius:12px;box-shadow:0 4px 20px -6px rgba(0,0,0,.1);cursor:zoom-in}

/* Footer */
footer{background:#0f172a;color:#94a3b8;text-align:center;padding:2rem 0;font-size:.85rem}

/* Floating kiss animation */
.kiss-fly{position:fixed;left:0;top:0;z-index:1100;pointer-events:none;opacity:.7;filter:drop-shadow(0 4px 12px rgba(0,0,0,.25));will-change:transform,opacity;transform-origin:center;-webkit-user-select:none;user-select:none}
.kiss-fly span{display:block;line-height:1;-webkit-user-select:none;user-select:none}

/* ===== Shared watermark overlay (used on beta pages) ===== */
.dev-page .watermark, .sandbox-page .watermark{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2000;
}
.dev-page .watermark .text, .sandbox-page .watermark .text{
  font-size: clamp(2rem, 12vw, 8rem);
  font-weight: 800;
  color: #0f172a;
  opacity: 0.06;
  transform: rotate(-18deg);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-align: center;
  line-height: 1;
  user-select: none;
}

/* ===== Simple Mailchimp form styling ===== */
.mc-form{display:flex;flex-direction:column;gap:.75rem;max-width:520px;margin:0 auto}
.mc-form label{font-size:.9rem;color:#475569}
.mc-form input[type="email"], .mc-form input[type="text"]{
  width:100%;padding:.75rem 1rem;border:1px solid #cbd5e1;border-radius:10px;font-size:1rem;color:#0f172a;background:#fff
}
.mc-form .row{display:flex;gap:.75rem}
.mc-form .row > *{flex:1}
.mc-form .actions{margin-top:.25rem}
.mc-form .mc-disclaimer{font-size:.8rem;color:#64748b;margin-top:.5rem;text-align:center}

/* Mailchimp status message */
.mc-status{margin-top:.75rem;text-align:center;font-size:.95rem}
.mc-status.ok{color:var(--primary-dark)}
.mc-status.err{color:#b91c1c}

/* ===== Lightweight modal for explainer video ===== */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.75);display:none;align-items:center;justify-content:center;z-index:1500;padding:1rem}
.modal.open{display:flex}
.modal-content{position:relative;width:100%;max-width:960px}
.modal-close{position:fixed;top:16px;right:16px;background:rgba(15,23,42,.92);border:1px solid rgba(255,255,255,.25);border-radius:9999px;width:48px;height:48px;cursor:pointer;font-size:1.5rem;line-height:1;color:#fff;box-shadow:0 12px 28px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:2000}
.modal-close:hover{box-shadow:0 14px 32px rgba(0,0,0,.5);transform:translateY(-1px)}
.modal video{display:block;width:100%;height:auto;border-radius:12px;background:#000}
.modal img{display:block;width:100%;height:auto;border-radius:12px;background:#fff}
