/* ============================================================
   Obsidian Prime — Design System (Apple/Google Minimalist)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* LIGHT MODE (Default) */
  --bg-deep:        #ffffff;
  --bg-surface:     #f5f5f7;
  --bg-card:        #ffffff;
  --border:         rgba(0, 0, 0, 0.08);
  --border-hover:   rgba(0, 0, 0, 0.16);
  --text-primary:   #1d1d1f;
  --text-secondary: #515154;
  --text-muted:     #86868b;
  --btn-bg:         #1d1d1f;
  --btn-text:       #ffffff;
  --btn-ghost-text: #1d1d1f;
  --nav-bg:         rgba(255, 255, 255, 0.85);
  --nav-border:     rgba(0, 0, 0, 0.05);

  --gold:           #9e6c21;
  --gold-light:     #b8860b;
  --gold-dim:       rgba(158, 108, 33, 0.08);
  --teal:           #0B8476;
  --teal-dim:       rgba(11, 132, 118, 0.08);

  /* Spacing (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;
  --sp-20: 160px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

[data-theme="dark"] {
  /* DARK MODE */
  --bg-deep:        #000000;
  --bg-surface:     #111111;
  --bg-card:        #111111;
  --border:         rgba(255, 255, 255, 0.12);
  --border-hover:   rgba(255, 255, 255, 0.24);
  --text-primary:   #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted:     #6e6e73;
  --btn-bg:         #f5f5f7;
  --btn-text:       #000000;
  --btn-ghost-text: #f5f5f7;
  --nav-bg:         rgba(0, 0, 0, 0.85);
  --nav-border:     rgba(255, 255, 255, 0.1);

  --gold:           #E4C870;
  --gold-light:     #F3DA8E;
  --gold-dim:       rgba(228, 200, 112, 0.12);
  --teal:           #2DD4BF;
  --teal-dim:       rgba(45, 212, 191, 0.12);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

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

/* ============================================================
   Background Glows (Removed for clean aesthetic, left classes to hide via opacity easily)
   ============================================================ */
.bg-glow { display: none; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
  height: 64px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.3s, border-color 0.3s;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: opacity 0.3s;
}
/* Removed generic inversion filter to use specific logo-dark.png instead */

.nav__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  background: var(--bg-surface);
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   Layout Wrapper
   ============================================================ */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-4) var(--sp-12);
}

.hero__headline {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}

.hero__sub {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--sp-6);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn--primary:hover { 
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
[data-theme="dark"] .btn--primary:hover {
  box-shadow: 0 4px 14px rgba(255,255,255,0.15);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--btn-ghost-text);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}

.hero__scroll-hint {
  display: none; /* Removed for cleaner look */
}

/* ============================================================
   Section Shared
   ============================================================ */
.section {
  padding: var(--sp-16) 0;
}
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
  text-align: center;
}
.section__body {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
}

/* ============================================================
   Products Bento Grid
   ============================================================ */
.products {
  padding: var(--sp-16) 0;
  background-color: var(--bg-surface);
}

.products__header {
  margin-bottom: var(--sp-8);
}

.bento {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.card__icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.card__icon-wrap img { width: 100%; height: 100%; object-fit: cover; }

.card__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card__list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.card__list svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.card__status {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.card__link {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  transition: gap 0.2s;
}
.card__link:hover { gap: 10px; }

/* ============================================================
   About Section
   ============================================================ */
.about {
  padding: var(--sp-16) 0;
}
.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.about__text { text-align: left; }
.about__text .section__title { text-align: left; margin-bottom: var(--sp-3); }
.about__text .section__body { text-align: left; margin: 0; max-width: 100%; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.stat {
  padding: var(--sp-4);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}
.stat__value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0;
  background: var(--bg-surface);
}
.footer__inner {
  display: flex;
  flex-direction: column;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__list a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.footer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Legal Pages
   ============================================================ */
.legal-page {
  padding-top: 64px;
}
.legal-hero {
  padding: var(--sp-12) 0 var(--sp-8);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.legal-hero__app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.legal-hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-1);
}
.legal-hero__meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-body {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--sp-8) 0 var(--sp-16);
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: var(--sp-6) 0 var(--sp-2);
  color: var(--text-primary);
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: var(--sp-3) 0 var(--sp-1);
  color: var(--text-secondary);
}
.legal-body p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: var(--sp-3);
  color: var(--text-secondary);
}
.legal-body ul, .legal-body ol {
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.legal-body li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 14px;
}
.legal-body th {
  text-align: left;
  padding: 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.legal-body td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-block {
  background: var(--bg-surface);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  margin-top: var(--sp-6);
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    gap: var(--sp-3);
    border-bottom: 1px solid var(--nav-border);
    z-index: 99;
  }
  .nav__mobile-toggle { display: flex; }

  .bento { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .footer__bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
  
  .hero { padding: var(--sp-16) var(--sp-3) var(--sp-12); }
}
