/* ═══════════════════════════════════════════════════════════
   ATLANTUM DESIGN V2 — Shared Design System
   Warm gold + teal palette bridging landing → app
   ═══════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Background */
  --bg-cream: #f7f3ed;
  --bg-warm: #faf6f0;
  --bg-sand: #f0ebe3;
  --bg-deep: #1a1714;

  /* Primary — warm gold family */
  --gold-50: #fdf9f0;
  --gold-100: #f9f0db;
  --gold-200: #f0ddb3;
  --gold-300: #e5c67a;
  --gold-400: #d4a84a;
  --gold-500: #c49a38;
  --gold-600: #a67c2e;
  --gold-700: #7d5d23;

  /* Accent — teal from logo */
  --teal-50: #eef9f6;
  --teal-100: #d0efe8;
  --teal-200: #a3dfd1;
  --teal-300: #6bcab5;
  --teal-400: #3db09a;
  --teal-500: #2a9482;
  --teal-600: #1f756a;

  /* Neutral */
  --neutral-50: #faf9f7;
  --neutral-100: #f0eee9;
  --neutral-200: #e3e0d8;
  --neutral-300: #ccc8bc;
  --neutral-400: #a9a498;
  --neutral-500: #8a8579;
  --neutral-600: #6b675d;
  --neutral-700: #4a473f;
  --neutral-800: #2d2b26;
  --neutral-900: #1a1914;

  /* Semantic */
  --success: #3a8c6e;
  --error: #c25450;
  --warning: #c49a38;

  /* Glass */
  --glass-warm: rgba(247, 243, 237, 0.72);
  --glass-warm-strong: rgba(247, 243, 237, 0.88);
  --glass-card: rgba(255, 255, 252, 0.82);
  --glass-card-border: rgba(196, 154, 56, 0.12);
  --glass-blur: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 23, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 23, 20, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 23, 20, 0.10);
  --shadow-gold: 0 4px 20px rgba(196, 154, 56, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --max-width: 440px;
  --safe-bottom: 34px;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--neutral-800);
  background: var(--bg-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* ── Typography ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.t-display-xl { font-size: 36px; }
.t-display-lg { font-size: 28px; }
.t-display-md { font-size: 22px; }
.t-display-sm { font-size: 18px; }

.t-body { font-family: var(--font-body); }
.t-body-lg { font-size: 17px; line-height: 1.55; }
.t-body-md { font-size: 15px; line-height: 1.5; }
.t-body-sm { font-size: 13px; line-height: 1.45; }

.t-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-muted { color: var(--neutral-500); }
.t-gold { color: var(--gold-500); }
.t-teal { color: var(--teal-500); }

/* ── Buttons ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-full);
  padding: 16px 32px;
  width: 100%;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-600) 100%);
  color: white;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 154, 56, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--glass-card);
  color: var(--neutral-800);
  border: 1px solid var(--neutral-200);
  backdrop-filter: blur(var(--glass-blur));
}
.btn-secondary:hover {
  background: white;
  border-color: var(--neutral-300);
}

.btn-ghost {
  background: transparent;
  color: var(--neutral-600);
  padding: 12px 24px;
}
.btn-ghost:hover {
  color: var(--neutral-800);
  background: rgba(0,0,0,0.03);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-500) 50%, var(--teal-600) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(42, 148, 130, 0.2);
}

/* ── Cards ── */
.card {
  background: var(--glass-card);
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
}

.card-elevated {
  background: white;
  border: 1px solid rgba(196, 154, 56, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Inputs ── */
.input-group {
  position: relative;
  width: 100%;
}

.input-group .input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--neutral-800);
  background: var(--glass-card);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(var(--glass-blur));
}

.input::placeholder {
  color: var(--neutral-400);
}

.input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(196, 154, 56, 0.1);
}

/* ── Chips/Tags ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--neutral-200);
  background: var(--glass-card);
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--gold-400);
  background: var(--gold-50);
}

.chip.active {
  background: var(--gold-100);
  border-color: var(--gold-400);
  color: var(--gold-700);
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--neutral-400);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--neutral-200);
}

/* ── Page scaffold ── */
.page-mobile {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 8px 20px calc(var(--safe-bottom) + 4px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--glass-warm-strong);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(196, 154, 56, 0.08);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--gold-500);
}

.nav-item-center {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 4px 16px rgba(196, 154, 56, 0.3);
  margin-top: -16px;
  color: white;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ── Background pattern ── */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  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");
}

/* ── Warm gradient backgrounds ── */
.bg-hero {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(212, 168, 74, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(42, 148, 130, 0.06) 0%, transparent 50%),
    var(--bg-cream);
}

.bg-warm-gradient {
  background:
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 40%, var(--bg-sand) 100%);
}
