/* Sinora V2 — Shared Design System */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FAF8F5;
  --bg-alt: #F3F0EB;
  --surface: #FFFFFF;
  --text: #1C1917;
  --text-2: #57534E;
  --text-3: #A8A29E;
  --border: #E7E2DC;
  --border-h: #D6D0C8;

  --p-blue: #7BA7C9;
  --p-blue-bg: rgba(123, 167, 201, 0.10);
  --p-green: #7DB87C;
  --p-green-bg: rgba(125, 184, 124, 0.10);
  --p-amber: #D4A843;
  --p-amber-bg: rgba(212, 168, 67, 0.10);
  --p-coral: #CF7B63;
  --p-coral-bg: rgba(207, 123, 99, 0.10);
  --p-violet: #9B8FE8;
  --p-violet-bg: rgba(155, 143, 232, 0.08);
  --p-gray: #B5AFA8;

  --font: "Satoshi", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", serif;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.07);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1);

  /* -- Neumorphic depth tokens (light) ---------- */
  --neu-raised: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --neu-raised-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --neu-raised-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --neu-recessed: inset 0 2px 6px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  --neu-recessed-sm: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  --neu-edge: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --neu-groove: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0px, rgba(0, 0, 0, 0.08) 1px, rgba(255, 255, 255, 0.7) 1px, rgba(255, 255, 255, 0.7) 2px);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  width: calc(100% - 32px);
  margin: 16px auto;
  padding: 0 8px 0 20px;
  height: 56px;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(231, 226, 220, 0.6);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

header.scrolled .header-pill {
  background: rgba(250, 248, 245, 0.97);
  border-color: var(--border);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

header.scrolled .header-pill #mainNav {
  background: rgba(243, 240, 235, 0.6);
  border-color: rgba(231, 226, 220, 0.35);
}

/* Nav ambient glow */
.header-pill::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20%;
  right: -20%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(155, 143, 232, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.logo span {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.3px;
}

/* Recessed nav well */
#mainNav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 3px 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(231, 226, 220, 0.5);
}

#mainNav a {
  text-decoration: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--spring), background 0.25s var(--spring), box-shadow 0.25s var(--spring);
}

#mainNav a:hover {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#mainNav a.active {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-login {
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-login:hover {
  color: var(--text);
}

.btn-pill {
  background: var(--text);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.25s var(--spring);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.15), 0 0 0 1px rgba(155, 143, 232, 0.08);
}

.btn-pill:hover {
  background: #3a3632;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.2), 0 1px 3px rgba(28, 25, 23, 0.1), 0 0 12px rgba(155, 143, 232, 0.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.nav-mobile-actions {
  display: none;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s var(--spring);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-h);
  background: var(--surface);
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 160px 0 48px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.page-hero p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 0;
}

/* Tighten hero → first section gap + accent bridge */
.page-hero+.section,
.page-hero+.section-alt {
  padding-top: 40px;
  position: relative;
}

.page-hero+.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
}

.section-alt {
  background: var(--bg-alt);
  position: relative;
}

/* Gradient bleed at top: smooth transition from page bg into alt bg */
.section-alt::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--bg-alt));
  pointer-events: none;
  z-index: 1;
}

/* Consecutive alt sections: thin groove instead of gradient */
.section-alt+.section-alt::before {
  top: 0;
  height: 2px;
  background: var(--neu-groove);
  z-index: auto;
}

/* Bottom groove */
.section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neu-groove);
}

/* No bottom groove if next section is also alt */
.section-alt:has(+ .section-alt)::after {
  display: none;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section-head p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
  max-width: 780px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.content-section p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.75;
}

.content-section ul,
.content-section ol {
  margin: 8px 0 16px 20px;
}

.content-section li {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.7;
}

.content-section a {
  color: var(--p-violet);
  font-weight: 500;
}

.content-section a:hover {
  text-decoration: underline;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--neu-edge);
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--neu-raised);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ---- 3D ICON STYLE ---- */
.icon-3d {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 -2px 0 rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.icon-3d svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.ic-blue {
  background: linear-gradient(145deg, #9BC2DB 0%, #6A99B8 100%);
  color: #fff;
}

.ic-green {
  background: linear-gradient(145deg, #9BD09A 0%, #6DAE6C 100%);
  color: #fff;
}

.ic-amber {
  background: linear-gradient(145deg, #E4BF63 0%, #C49A33 100%);
  color: #fff;
}

.ic-coral {
  background: linear-gradient(145deg, #E09880 0%, #BF6D53 100%);
  color: #fff;
}

.ic-violet {
  background: linear-gradient(145deg, #B5A8F0 0%, #8A7DD8 100%);
  color: #fff;
}

.ic-gray {
  background: linear-gradient(145deg, #C8C2BC 0%, #A8A29E 100%);
  color: #fff;
}

/* ---- LEGAL CARD (privacy/terms) ---- */
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.legal-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}

.legal-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-card ul,
.legal-card ol {
  margin: 6px 0 12px 20px;
}

.legal-card li {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 5px;
  line-height: 1.65;
}

.legal-card a {
  color: var(--p-violet);
  font-weight: 500;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.legal-card th,
.legal-card td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.legal-card th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
}

.highlight-box {
  background: var(--p-violet-bg);
  border-left: 3px solid var(--p-violet);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--text);
}

/* ---- FOOTER ---- */
footer {
  padding: 64px 0 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neu-groove);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  position: relative;
  border-top: none;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neu-groove);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  #mainNav {
    display: none;
  }

  /* Dark neumorphic mobile menu */
  #mainNav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    background: #1C1917;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 8px;
    gap: 0;
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.55),
      0 8px 20px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
    z-index: 200;
    margin: 0;
    overflow: hidden;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    will-change: transform;
  }

  /* Neumorphic nav links */
  #mainNav.open a {
    font-size: 15px;
    font-weight: 500;
    display: block;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: -0.2px;
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    padding: 14px 16px;
    text-align: left;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    transform: none;
    margin: 0;
    position: relative;
  }

  #mainNav.open a+a::before {
    display: none;
  }

  #mainNav.open a:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  /* Active: raised neumorphic surface */
  #mainNav.open a.active {
    color: #F5F5F4;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .header-actions {
    display: none;
  }

  /* Actions with neumorphic CTAs */
  #mainNav.open .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 0;
    margin-top: 4px;
    border-top: none;
    position: relative;
  }

  #mainNav.open .nav-mobile-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
  }

  /* Login: recessed neumorphic */
  #mainNav.open .nav-mobile-actions .mob-login {
    display: block;
    width: auto;
    margin: 0;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  }

  #mainNav.open .nav-mobile-actions .mob-login:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  /* Get Started: raised neumorphic */
  #mainNav.open .nav-mobile-actions .mob-cta {
    display: block;
    width: auto;
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    background: #fff;
    color: #1C1917;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .hamburger {
    display: block;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    padding-bottom: 8px;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-col a {
    margin-bottom: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .legal-card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
}