/* ═══════════════════════════════════════════════════════════
   ATLANTUM DESIGN V3 — Teal + Living Gradients
   Teal CTA, gold accents, atmospheric radial backgrounds
   ═══════════════════════════════════════════════════════════ */

@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');

:root {
  --bg-cream: #f7f3ed;
  --bg-warm: #faf6f0;
  --bg-sand: #f0ebe3;
  --bg-deep: #1a1714;

  --gold-50: #fdf9f0;
  --gold-100: #f9f0db;
  --gold-200: #f0ddb3;
  --gold-300: #e5c67a;
  --gold-400: #d4a84a;
  --gold-500: #c49a38;
  --gold-600: #a67c2e;
  --gold-700: #7d5d23;

  --teal-50: #eef9f6;
  --teal-100: #d0efe8;
  --teal-200: #a3dfd1;
  --teal-300: #6bcab5;
  --teal-400: #3db09a;
  --teal-500: #2a9482;
  --teal-600: #1f756a;
  --teal-700: #175a52;

  --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;

  --success: #3a8c6e;
  --error: #c25450;

  --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.10);
  --glass-blur: 20px;

  --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-teal: 0 4px 20px rgba(42, 148, 130, 0.25);
  --shadow-gold: 0 4px 20px rgba(196, 154, 56, 0.15);

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

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

  --max-width: 440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--bg-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* ── 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;
  border-radius: var(--radius-full);
  padding: 16px 32px;
  width: 100%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-500) 40%, var(--teal-600) 100%);
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(42, 148, 130, 0.35);
}
.btn-primary:active { transform: translateY(0); }

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

.btn-ghost {
  background: transparent;
  color: var(--gold-600);
  padding: 12px 24px;
}

/* ── 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;
}
.input::placeholder { color: var(--neutral-400); }
.input:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(42, 148, 130, 0.1);
}

/* ── 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);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(42, 148, 130, 0.25); }
  50% { box-shadow: 0 4px 32px rgba(42, 148, 130, 0.4); }
}
.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; }

/* ── Living background ── */
.bg-living {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 168, 74, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(42, 148, 130, 0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(212, 168, 74, 0.06) 0%, transparent 40%),
    var(--bg-cream);
}

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max-width);
  padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 8px);
  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; color: var(--neutral-400); text-decoration: none;
  font-size: 10px; font-weight: 500; transition: color 0.2s;
}
.nav-item.active { color: var(--teal-500); }
.nav-item-center {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  box-shadow: var(--shadow-teal);
  margin-top: -16px; color: white; text-decoration: none;
  animation: glowPulse 3s ease-in-out infinite;
}
