@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Variables ─────────────────────────────────── */
:root {
  --honey:    #FFB830;
  --amber:    #E07A10;
  --deep:     #0A0704;
  --dark:     #100C06;
  --surface:  #1A1208;
  --surface2: #241A0C;
  --text:     #F0E8D8;
  --muted:    #8A7A62;
  --border:   rgba(255,184,48,0.12);
  --glow:     rgba(255,184,48,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }

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

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Header ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10,7,4,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--honey);
  letter-spacing: -0.02em;
  position: relative;
}

.logo::after {
  content: '✦';
  font-style: normal;
  font-size: 0.5rem;
  color: var(--amber);
  margin-left: 0.25rem;
  vertical-align: super;
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--honey);
  transition: width 0.3s ease;
}

nav a:hover { color: var(--honey); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--honey); }
nav a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--honey);
  display: block;
  transition: 0.3s;
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(224,122,16,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Honeycomb dots pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,184,48,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--honey);
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--honey);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Decorative hex shape on right */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hex-ring {
  width: 340px;
  height: 340px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin 40s linear infinite;
}

.hex-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,184,48,0.08);
  border-radius: 50%;
  animation: spin 20s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hex-ring-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--honey);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--honey);
}

.hex-ring-dot:nth-child(1) { top: -3px; left: calc(50% - 3px); }
.hex-ring-dot:nth-child(2) { bottom: -3px; left: calc(50% - 3px); }
.hex-ring-dot:nth-child(3) { left: -3px; top: calc(50% - 3px); }
.hex-ring-dot:nth-child(4) { right: -3px; top: calc(50% - 3px); }

.hex-center {
  animation: spin 40s linear infinite reverse;
  text-align: center;
}

.hex-icon {
  font-size: 4.5rem;
  display: block;
  filter: drop-shadow(0 0 24px rgba(255,184,48,0.4));
}

.hex-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Orbit dots */
.orbit-dot {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: spin 40s linear infinite reverse;
}

.orbit-dot:nth-child(5) { top: 10%; right: -5%; }
.orbit-dot:nth-child(6) { bottom: 10%; left: -5%; }
.orbit-dot:nth-child(7) { top: 50%; right: -8%; }


/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--honey);
  color: var(--deep);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,184,48,0.25);
}

.btn-primary:hover {
  background: #ffc84d;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(255,184,48,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255,184,48,0.4);
  color: var(--honey);
}

.btn-text {
  color: var(--honey);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.btn-text:hover { gap: 0.6rem; }

/* ─── Section Base ───────────────────────────────── */
.section {
  padding: 7rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 1.5rem; height: 1px;
  background: var(--honey);
}

/* ─── About Section ──────────────────────────────── */
.about-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,184,48,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text h2 em { font-style: italic; color: var(--honey); }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.stat-item:hover { border-color: rgba(255,184,48,0.3); }

.stat-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255,184,48,0.3));
}

.stat-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.stat-info p {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem !important;
  color: var(--text) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* ─── Apps Section ───────────────────────────────── */
.apps-section { background: var(--dark); }

.apps-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--honey), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,184,48,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,184,48,0.08);
}

.app-card:hover::before { opacity: 1; }

.app-card-icon {
  width: 56px; height: 56px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.app-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.app-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey);
  background: rgba(255,184,48,0.08);
  border: 1px solid rgba(255,184,48,0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

/* ─── Page Hero (inner pages) ───────────────────── */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,184,48,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.page-hero h1 em { color: var(--honey); font-style: italic; }

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
}

/* ─── Contact Page ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s;
}

.contact-item:hover { border-color: rgba(255,184,48,0.3); }

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item a {
  color: var(--honey);
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-item a:hover { opacity: 0.8; }

/* ─── Support Page ───────────────────────────────── */
.support-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.support-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.support-step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,184,48,0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 3.5rem;
}

.step-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-content a {
  color: var(--honey);
  font-weight: 500;
}

/* ─── Privacy Page ───────────────────────────────── */
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.prose ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose a { color: var(--honey); }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .logo { font-size: 1.25rem; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--honey); }

/* ─── Divider ────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .apps-header { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }
  .nav-toggle { display: flex; }
  .apps-grid { grid-template-columns: 1fr; }
}
