/**
 * FutureMe — Modern, High-End Styling
 * Glassmorphism, Responsive Letterhead, Elegant Typography
 */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 30px rgba(79, 70, 229, 0.25);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

.container-editorial-wide {
  max-width: 1140px;
}

.container-post-wide {
  max-width: 1060px;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 33%, #ec4899 66%, #f59e0b 100%);
  z-index: 101;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--dark);
}

.btn-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  font-size: 20px;
  color: var(--dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   COSMIC TWILIGHT HERO SECTION (FutureMe.ge Inspired, Unique & High-End)
   ============================================================ */
.hero-cosmic {
  position: relative;
  background: radial-gradient(circle at 50% 10%, #261f43 0%, #171329 60%, #0f0c1b 100%);
  padding: 60px 0 130px;
  overflow: hidden;
  color: #ffffff;
}

.hero-cosmic-subpage {
  padding: 50px 0 105px;
  text-align: center;
}

.hero-cosmic-subpage .hero-headline {
  font-size: 38px;
  margin: 10px 0 14px;
}

.hero-cosmic-subpage .hero-lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  color: #cbd5e1;
}

.hero-cosmic-subpage .chronometer-badge {
  margin: 0 auto 14px;
}

/* Ambient Floating Aurora Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(90px);
  opacity: 0.6;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.45) 0%, rgba(236, 72, 153, 0.15) 70%, transparent 100%);
  animation: orbDrift1 20s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 540px;
  height: 540px;
  top: 15%;
  right: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(99, 102, 241, 0.2) 70%, transparent 100%);
  animation: orbDrift2 24s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 420px;
  height: 420px;
  bottom: 60px;
  left: 35%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(168, 85, 247, 0.25) 70%, transparent 100%);
  animation: orbDrift3 18s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(30px, 80px) scale(0.95); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 50px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.92); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-40px, 30px) scale(0.98); }
}

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

/* 2-Column Split Grid Layout */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}

/* Left Column */
.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

/* Backwards-Ticking Chronometer Badge */
.chronometer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 18px;
  border-radius: 40px;
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.clock-icon-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6));
}

/* Grand Headline & Aurora Gradient */
.hero-headline {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin: 4px 0;
}

.aurora-text {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 25%, #c084fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(244, 63, 94, 0.35);
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 520px;
  font-weight: 400;
}

/* Trust Badges */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
}

.trust-item i {
  color: #38bdf8;
  font-size: 14px;
}

/* Social Proof Pill */
.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #94a3b8;
  padding-top: 6px;
}

.pulse-beacon {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #10b981;
  border-radius: 50%;
  animation: beaconPing 2s infinite ease-out;
}

@keyframes beaconPing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* RIGHT COLUMN: LUXURY GLASS CAPSULE COMPOSER */
.hero-right-col {
  position: relative;
  z-index: 3;
}

.card-glass {
  background: rgba(25, 20, 50, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 32px 34px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card-glass:hover {
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.vault-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.epoch-date {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-form-body {
  display: flex;
  flex-direction: column;
}

.email-grid-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.glass-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.glass-label i {
  color: #38bdf8;
  font-size: 13px;
}

.form-input-glass {
  width: 100%;
  padding: 11px 15px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
}

.form-input-glass:focus {
  border-color: #818cf8;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.form-input-glass::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.subject-glass {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.input-caption {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Inspire Me Drawer */
.inspire-drawer {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 6px;
  color: #fde68a;
  font-size: 13.5px;
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.inspire-drawer.active {
  display: flex;
}

.inspire-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.btn-insert-prompt {
  background: #f59e0b;
  color: #0f172a;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-insert-prompt:hover {
  background: #d97706;
  color: #ffffff;
}

.inspire-close {
  background: transparent;
  border: none;
  color: #fde68a;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* Textarea & Toolbar */
.textarea-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.btn-inspire-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-inspire-pill:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #fef3c7;
}

.textarea-glass {
  min-height: 180px;
  line-height: 1.75;
  font-size: 15px;
  color: #f8fafc;
  resize: vertical;
}

.textarea-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
  padding: 0 4px;
}

/* Date Pills Row */
.date-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.date-pill.active {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
  transform: translateY(-1px);
}

.custom-date-glass {
  color-scheme: dark;
  padding: 10px 14px;
  font-size: 13.5px;
}

/* Checkbox */
.privacy-checkbox-row {
  margin-top: 14px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  user-select: none;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.checkbox-container input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.checkmark {
  width: 19px;
  height: 19px;
  min-width: 19px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  position: relative;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .checkmark {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  border-color: transparent;
}

.checkbox-container input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label-text strong {
  color: #ffffff;
}

.checkbox-subtext {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Dispatch Action Button */
.btn-future-dispatch {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35), 0 4px 12px rgba(139, 92, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-future-dispatch:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.5), 0 6px 18px rgba(6, 182, 212, 0.4);
}

.btn-future-dispatch:active {
  transform: translateY(-1px);
}

.btn-plane-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-future-dispatch:hover .btn-plane-icon {
  transform: translateX(4px) translateY(-2px);
}

.btn-shimmer-highlight {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 4s infinite;
}

@keyframes btnShimmer {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.guarantee-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Curved Wave Divider */
.hero-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-wave-bottom svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============================================================
   PILLARS & JOURNEY SECTIONS (Why Write & How It Works)
   ============================================================ */
.section-badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: #fdf2f8;
  color: #ec4899;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.pillar-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.pillar-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* 3-Step Journey Grid */
.steps-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.journey-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 38px 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.journey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.journey-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 42px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
}

.journey-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.journey-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.journey-text {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.7;
}

/* Responsive adjustments for split grid and pillars */
@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-left-col {
    text-align: center;
    align-items: center;
  }
  .hero-headline {
    font-size: 40px;
  }
  .hero-trust-bar {
    justify-content: center;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-cosmic {
    padding: 40px 0 90px;
  }
  .hero-headline {
    font-size: 32px;
  }
  .card-glass {
    padding: 24px 20px;
  }
  .email-grid-duo {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .steps-journey-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LETTER WRITING CAPSULE CARD
   ============================================================ */
.letter-editor-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -15px rgba(79, 70, 229, 0.16), 0 0 0 1px rgba(79, 70, 229, 0.06);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.editor-card-header {
  background: #fafaf9;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.capsule-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 14px;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.editor-body-wrapper {
  padding: 36px 40px;
}

/* Subject Field */
.form-group-subject {
  margin-bottom: 24px;
}

.subject-input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  border: none;
  border-bottom: 2px solid #e2e8f0;
  padding: 10px 0;
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

.subject-input:focus {
  border-bottom-color: var(--primary);
}

.subject-input::placeholder {
  color: #cbd5e1;
}

/* Letter Textarea Area */
.letter-textarea-wrapper {
  position: relative;
  background: #fafaf9;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 20px 24px;
  margin-bottom: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.letter-textarea-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  background: #ffffff;
}

.letter-textarea {
  width: 100%;
  min-height: 240px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b;
  border: none;
  outline: none;
  background: transparent;
  resize: vertical;
}

.letter-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: 10px;
}

.inspire-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.inspire-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.word-count-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Prompt Box (Inspire me accordion) */
.prompt-box {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  color: #166534;
  font-size: 14.5px;
  position: relative;
}

.prompt-box.active {
  display: block;
}

.prompt-box-close {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
  color: #166534;
}

/* ============================================================
   CONTROLS: DURATION / PRIVACY / EMAIL
   ============================================================ */
.editor-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .editor-controls-grid {
    grid-template-columns: 1fr;
  }
}

.control-block {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.control-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.control-label span {
  font-weight: 400;
  color: var(--text-muted);
}

/* Preset Duration Buttons */
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-pill {
  cursor: pointer;
  position: relative;
}

.preset-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preset-pill span {
  display: inline-block;
  padding: 9px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.preset-pill:hover span {
  border-color: #cbd5e1;
  color: var(--dark);
  background: #f8fafc;
}

.preset-pill input:checked + span {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

.custom-date-container {
  margin-top: 14px;
  display: none;
}

.custom-date-container.active {
  display: block;
}

.form-control-date {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--dark);
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-control-date:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Audience Selector */
.audience-options {
  display: flex;
  gap: 12px;
}

.audience-card {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.audience-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.audience-card .audience-inner {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: all 0.2s ease;
  height: 100%;
  user-select: none;
}

.audience-card:hover .audience-inner {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.audience-card input:checked + .audience-inner {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
  box-shadow: 0 0 0 2px var(--primary);
}

.audience-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.audience-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Email Recipient Input */
.email-input-group {
  position: relative;
  margin-bottom: 24px;
}

.email-input-group .email-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 18px;
}

.input-email {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--dark);
  background: #ffffff;
  transition: all 0.2s ease;
}

.input-email:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* Submit Action Button */
.btn-dispatch {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.btn-dispatch:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
}

.terms-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

/* ============================================================
   SECTIONS: FEATURES & STEPS
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* 3-Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 36px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-text {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============================================================
   PUBLIC LETTERS FEED / WALL
   ============================================================ */
.public-letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.letter-feed-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.letter-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.letter-travel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.letter-feed-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.letter-feed-excerpt {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.letter-feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.letter-meta-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-like {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.btn-like:hover, .btn-like.liked {
  color: #ef4444;
}

/* ============================================================
   AUTH FORMS (LOGIN / REGISTER)
   ============================================================ */
.auth-wrapper {
  max-width: 460px;
  margin: 60px auto 80px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--dark);
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Alert Boxes */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.alert-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  padding: 70px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  font-size: 13.5px;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* User Avatar Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.user-avatar-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}

.user-dropdown-menu.show {
  display: block;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-main);
}

.user-dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* ============================================================
   ADSENSE & ADVERTISEMENT SLOTS STYLING
   ============================================================ */
.ad-slot-container {
  width: 100%;
  margin: 28px auto;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.ad-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: block;
}

.ad-placeholder-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.25s ease;
}

.ad-placeholder-box:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.ad-placeholder-inner {
  text-align: center;
}

.ad-placeholder-inner .ad-icon {
  font-size: 26px;
  color: #6366f1;
  margin-bottom: 6px;
}

.ad-placeholder-inner .ad-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
}

.ad-placeholder-inner .ad-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.ad-slot-header_leaderboard {
  max-width: 970px;
}

.ad-slot-hero_bottom {
  max-width: 860px;
}

.ad-slot-sidebar_rail {
  max-width: 320px;
}

.ad-slot-letter_inside {
  max-width: 728px;
}

.ad-slot-footer_sticky {
  max-width: 970px;
}

/* ============================================================
   EDITORIAL JOURNAL & ARTICLE PROSE
   ============================================================ */
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
}

.article-formatted-prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 16px;
  line-height: 1.35;
}

.article-formatted-prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 12px;
}

.article-formatted-prose p {
  margin-bottom: 22px;
  color: #334155;
  line-height: 1.85;
}

.article-formatted-prose ul, .article-formatted-prose ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-formatted-prose li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-formatted-prose hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

/* ============================================================
   COLOURFUL VIBRANT ACCENTS & SHINE
   ============================================================ */
.hero-badge {
  background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%);
  border: 1.5px solid #e0e7ff;
  color: #4338ca;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, #06b6d4 100%);
  background-size: 200% auto;
  transition: all 0.35s ease;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.btn-dispatch {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
  background-size: 200% auto;
}

.btn-dispatch:hover {
  background-position: right center;
}

.legal-content-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
}

.legal-content-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 22px 0 10px;
}

.legal-content-card p {
  margin-bottom: 20px;
}

.legal-content-card ul, .legal-content-card ol {
  margin-bottom: 22px;
  padding-left: 26px;
}

.legal-content-card li {
  margin-bottom: 8px;
}

/* Margin helpers */
.mb-4 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 36px !important; }

/* ============================================================
   RESPONSIVE & MOBILE POLISH
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    z-index: 99;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 15.5px;
  }
}

@media (max-width: 680px) {
  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 32px !important;
    letter-spacing: -0.8px !important;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 15px !important;
    padding: 0 8px;
  }

  .hero-header {
    margin-bottom: 32px;
  }

  .editor-body-wrapper {
    padding: 24px 18px !important;
  }

  .editor-card-header {
    padding: 16px 18px !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }

  .subject-input {
    font-size: 20px !important;
  }

  .letter-textarea {
    font-size: 15px !important;
    min-height: 190px !important;
  }

  .editor-controls-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .audience-options {
    flex-direction: column;
    gap: 10px;
  }

  .legal-content-card {
    padding: 24px 18px !important;
  }
}
