/* NYX360 marketing site — strict black & white design system, matching the app's own theme tokens. */

@font-face {
  font-family: "Inter";
  src: local("Inter");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-elevated: #f5f5f5;
  --bg-sunken: #ededed;
  --border: #dedede;
  --text: #000000;
  --text-muted: #5c5c5c;
  --text-faint: #9a9a9a;
  --invert: #ffffff;
  --success: #15803d;
  --shape-tint: 0, 0, 0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #141414;
  --bg-sunken: #0a0a0a;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-faint: #6b6b6b;
  --invert: #000000;
  --success: #4ade80;
  --shape-tint: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-elevated: #141414;
    --bg-sunken: #0a0a0a;
    --border: #2a2a2a;
    --text: #ffffff;
    --text-muted: #a3a3a3;
    --text-faint: #6b6b6b;
    --invert: #000000;
    --success: #4ade80;
    --shape-tint: 255, 255, 255;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- decorative blob shapes (ported from DecorativeShapes.tsx) ---------- */
.shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shapes svg { position: absolute; }
.blob-a { width: 900px; height: 900px; right: -280px; top: -320px; }
.blob-b { width: 640px; height: 640px; left: -220px; top: 120px; }
.blob-c { width: 420px; height: 420px; right: 8%; bottom: -140px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 0; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .dim { color: var(--text-faint); font-weight: 500; font-family: var(--mono); font-size: 15px; }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.navlinks a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-elevated); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  border-radius: var(--radius-pill); padding: 8px 30px 8px 14px; font-size: 13px; font-weight: 600;
  font-family: var(--sans); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235c5c5c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.hamburger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--invert); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.store-badge {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--bg-elevated);
  border-radius: var(--radius-md); padding: 9px 16px; font-size: 13px; font-weight: 600;
}
.store-badge svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-pill);
  padding: 7px 16px; margin-bottom: 26px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 auto 22px; max-width: 880px;
}
.hero h1 em { font-style: normal; color: var(--text-faint); }
.hero .lead { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; margin-bottom: 20px; }
.hero .store-badges { justify-content: center; }
.hero-shot { position: relative; z-index: 1; margin: 56px auto 0; max-width: 320px; }
.hero-shot img { border-radius: 34px; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.35); }

:root[data-theme="dark"] .hero-shot img,
@media (prefers-color-scheme: dark) { .hero-shot img { box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7); } }

/* ---------- works-with strip ---------- */
.works-with { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.works-with-label { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.works-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.works-chip {
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 13px;
  font-weight: 600; color: var(--text-muted); background: var(--bg-elevated);
}

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* feature showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase.reverse { grid-template-columns: 1fr 1fr; }
.showcase.reverse .showcase-art { order: 2; }
.showcase-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.showcase-copy h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; }
.showcase-copy p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 20px; }
.showcase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.showcase-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.showcase-list svg { flex-shrink: 0; margin-top: 3px; color: var(--text); }
.showcase-art { display: flex; justify-content: center; }
.showcase-art img { width: 100%; max-width: 300px; border-radius: 26px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.3); }

/* why-cards grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 28px; }
.why-card .glyph { width: 24px; height: 24px; margin-bottom: 16px; color: var(--text); }
.why-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* limitations */
.limits-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px; max-width: 720px; margin: 0 auto; background: var(--bg-elevated); }
.limits-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.limits-card li { display: flex; gap: 12px; font-size: 15px; color: var(--text-muted); }
.limits-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--text-faint); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 620px; margin: 0 auto; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; background: var(--bg-elevated); }
.price-card.featured { border-color: var(--text); background: var(--bg); position: relative; }
.price-card .badge { position: absolute; top: -12px; right: 24px; background: var(--text); color: var(--invert); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.price-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--mono); }
.price-card .amount { font-size: 2.2rem; font-weight: 800; margin: 0 0 20px; letter-spacing: -0.02em; }
.price-card .amount span { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 14px; color: var(--text-muted); display: flex; gap: 8px; }
.price-card li svg { flex-shrink: 0; margin-top: 3px; }

/* faq */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { background: var(--bg); }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; font-size: 15.5px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--sans); }
.faq-q svg { flex-shrink: 0; transition: transform 0.2s ease; color: var(--text-faint); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* cta band */
.cta-band { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 64px 40px; background: var(--bg-elevated); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; position: relative; }
.cta-band p { color: var(--text-muted); margin: 0 0 28px; position: relative; }
.cta-band .btn-row, .cta-band .store-badges { justify-content: center; position: relative; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 11px; }
.footer-col a:hover { color: var(--text); }
.footer-brand-col p { font-size: 13.5px; color: var(--text-faint); margin: 14px 0 0; max-width: 260px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint); }

/* legal pages */
.legal-main { padding: 56px 0 100px; }
.legal-main h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; margin: 0 0 40px; letter-spacing: -0.01em; }
.legal-main .wrap { max-width: 760px; }
.legal-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; margin-bottom: 32px; }
.legal-card p { margin: 0 0 6px; color: var(--text-muted); }
.legal-card p.tight { margin: 0; }
.legal-main section { margin-bottom: 40px; }
.legal-main h2 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.legal-main p, .legal-main li { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.legal-main ul { padding-left: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.back-link:hover { color: var(--text); }

/* responsive */
@media (max-width: 860px) {
  .navlinks { display: none; }
  .hamburger { display: flex; }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 36px; }
  .showcase.reverse .showcase-art { order: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-select { padding: 8px 26px 8px 10px; font-size: 12px; }
}
