/* =====================================================
   13months.ca homepage styles
   Extracted from index.php for browser caching.
   Mobile-conditional rules remain inline in index.php.
   ===================================================== */

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

:root {
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.4);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.4);
  --orange: #f59e0b;
  --red: #ef4444;
  --bg-primary: #06070a;
  --bg-card: rgba(12, 15, 24, 0.7);
  --bg-card-hover: rgba(16, 20, 32, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(14, 165, 233, 0.2);
  --text-primary: #f0f0f5;
  --text-secondary: #8a8f9e;
  --text-muted: #555a6e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -- Animated Gradient Mesh Background (Stripe-style) -- */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-mesh::before {
  content: '';
  position: absolute; width: 150%; height: 150%; top: -25%; left: -25%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(14,165,233,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(139,92,246,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(16,185,129,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 70% 60%, rgba(245,158,11,0.03) 0%, transparent 70%);
  animation: meshFloat 25s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(30px, -20px) rotate(1deg); }
  66%  { transform: translate(-20px, 20px) rotate(-1deg); }
  100% { transform: translate(10px, -10px) rotate(0.5deg); }
}
.bg-mesh::after {
  content: '';
  position: absolute; 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.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 70%);
  animation: gridFadeIn 4s ease-out forwards;
}
@keyframes gridFadeIn {
  0%   { opacity: 0; }
  30%  { opacity: 0.8; }
  100% { opacity: 1; }
}

/* -- Phosphor Burn Sparks on Grid -- */
.grid-sparks {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.grid-spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #c8ffb0;
  box-shadow:
    0 0 6px 2px rgba(200,255,176,0.9),
    0 0 20px 8px rgba(140,255,90,0.6),
    0 0 45px 14px rgba(80,220,60,0.3);
  will-change: transform;
}
.grid-spark-trail {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(160,232,128,0.6);
  box-shadow: 0 0 8px 3px rgba(140,255,90,0.4), 0 0 20px 6px rgba(80,220,60,0.15);
  pointer-events: none;
}

/* -- SSL Badge -- */
.ssl-badge-fixed {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  pointer-events: none; opacity: 0.7;
}
.ssl-badge-fixed:hover { opacity: 1; }
.ssl-badge-fixed .ssl-badge { pointer-events: auto; }
.ssl-badge {
  display: inline-block; max-width: 140px; font-size: 0;
  filter: invert(1) hue-rotate(180deg) brightness(1.3) saturate(0.6);
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.ssl-badge:hover {
  filter: invert(1) hue-rotate(180deg) brightness(1.5) saturate(0.8);
}
@media (max-width: 768px) { .ssl-badge-fixed { display: none; } }

/* -- Zoom Controls -- */
.zoom-controls {
  position: fixed; top: 12px; right: 12px; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.zoom-controls-row { display: flex; gap: 4px; }
.zoom-controls button {
  background: rgba(14,165,233,0.15); color: var(--accent);
  border: 1px solid rgba(14,165,233,0.3);
  padding: 5px 9px; cursor: pointer; border-radius: 6px;
  font-weight: 700; font-size: 13px; backdrop-filter: blur(8px);
  transition: all 0.2s; font-family: 'Inter', system-ui, sans-serif;
}
.zoom-controls button:hover {
  background: rgba(14,165,233,0.25);
  transform: none; box-shadow: none; filter: none;
}
.zoom-controls button.reset-btn {
  background: rgba(16,185,129,0.15); color: var(--green);
  border-color: rgba(16,185,129,0.3); font-size: 10px;
}
.zoom-label { color: var(--text-muted); font-size: 9px; font-weight: 600; letter-spacing: 0.5px; }

/* =====================================================
   LAYOUT
   ===================================================== */
.page-wrapper {
  position: relative; z-index: 1; width: 100%; max-width: 1100px;
  margin: 0 auto; padding: 0 24px;
}
#mainContent {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}

/* =====================================================
   HERO SECTION (Apple-style dramatic type)
   ===================================================== */
.hero {
  width: 100%; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 120px 0 80px; position: relative;
}
.hero-orb {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
  filter: blur(80px);
  top: 50%; left: 50%; transform: translate(-50%, -55%);
  pointer-events: none;
  animation: orbPulse 8s ease-in-out infinite alternate;
}
@keyframes orbPulse {
  0%   { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 1;   transform: translate(-50%, -55%) scale(1.15); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.2);
  color: var(--accent); font-size: 0.78em; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 32px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease-out both;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.hero-title {
  font-size: clamp(3.2em, 8vw, 6.5em); font-weight: 900;
  letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 8px;
  position: relative; z-index: 1; cursor: default;
  background: linear-gradient(
    90deg,
    #ffffff 0%, #60a5fa 12%, #0ea5e9 24%, #38bdf8 36%,
    #a78bfa 48%, #818cf8 60%, #0ea5e9 72%, #60a5fa 84%, #ffffff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    gridReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both,
    gradientFlow 8s linear infinite 1.5s;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title::before {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  font-size: inherit; font-weight: inherit;
  letter-spacing: inherit; line-height: inherit;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  filter: blur(28px);
  opacity: 0;
  animation: glowFadeIn 0.6s ease-out 1.4s forwards, glowPulse 4s ease-in-out infinite 2s;
}
.hero-title::after {
  content: '';
  position: absolute;
  top: -10%; left: -40%; width: 35%; height: 120%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.06) 65%,
    transparent 80%
  );
  opacity: 0;
  animation: shimmerSweep 6s ease-in-out infinite 3s;
  pointer-events: none;
}
.hero-title:hover { transform: scale(1.03); }
.hero-title:hover::before { opacity: 0.8; filter: blur(35px); }
@keyframes gridReveal {
  0%   { opacity: 0; transform: scale(0.82) translateY(30px); filter: blur(16px); }
  50%  { opacity: 1; filter: blur(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes glowFadeIn { to { opacity: 0.55; } }
@keyframes glowPulse {
  0%, 100% { opacity: 0.45; filter: blur(28px); }
  50%      { opacity: 0.7;  filter: blur(38px); }
}
@keyframes shimmerSweep {
  0%        { left: -40%; opacity: 0; }
  10%       { opacity: 1; }
  45%       { left: 130%; opacity: 1; }
  55%, 100% { left: 130%; opacity: 0; }
}
.hero-at {
  font-size: clamp(1.1em, 2.8vw, 1.6em); font-weight: 300;
  color: var(--text-muted); letter-spacing: 0.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.hero-at-brand {
  font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1em, 2.5vw, 1.35em); color: var(--text-secondary);
  font-weight: 400; max-width: 560px; margin: 0 auto 40px; line-height: 1.5;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 48px; animation: fadeInUp 0.8s ease-out 0.35s both;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 0.92em; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative; overflow: hidden; letter-spacing: 0.2px;
  font-family: 'Inter', system-ui, sans-serif;
}
.btn-primary {
  background: linear-gradient(160deg, #0d2a18 0%, #0a6e2e 35%, #10b981 60%, #34d399 78%, rgba(255,255,255,0.25) 95%);
  color: #fff;
  box-shadow:
    0 4px 20px rgba(16,185,129,0.35),
    0 0 0 1px rgba(16,185,129,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -2px 8px rgba(0,0,0,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 36px rgba(16,185,129,0.5),
    0 0 0 1px rgba(52,211,153,0.35),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 8px rgba(0,0,0,0.25);
  filter: brightness(1.15);
}
.btn-ghost {
  background: linear-gradient(160deg, rgba(13,42,24,0.6) 0%, rgba(10,110,46,0.2) 50%, rgba(16,185,129,0.08) 100%);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 12px rgba(16,185,129,0.08);
  text-shadow: 0 0 10px rgba(16,185,129,0.3);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(13,42,24,0.8) 0%, rgba(10,110,46,0.3) 50%, rgba(16,185,129,0.12) 100%);
  border-color: rgba(16,185,129,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 24px rgba(16,185,129,0.15);
  color: #a7f3d0;
}
.btn-reality {
  background: linear-gradient(160deg, rgba(60,20,10,0.8) 0%, rgba(180,80,20,0.25) 50%, rgba(239,68,68,0.1) 100%);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 12px rgba(239,68,68,0.08);
  text-shadow: 0 0 10px rgba(239,68,68,0.3);
  font-size: 0.82em;
}
.btn-reality:hover {
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(60,20,10,0.9) 0%, rgba(180,80,20,0.35) 50%, rgba(239,68,68,0.15) 100%);
  border-color: rgba(239,68,68,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 24px rgba(239,68,68,0.2);
  color: #fecaca;
}
.btn-green {
  background: linear-gradient(160deg, #0d2a18 0%, #0a6e2e 35%, #10b981 60%, #34d399 78%, rgba(255,255,255,0.25) 95%);
  color: #fff;
  box-shadow:
    0 4px 20px rgba(16,185,129,0.35),
    0 0 0 1px rgba(16,185,129,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -2px 8px rgba(0,0,0,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 36px rgba(16,185,129,0.5),
    0 0 0 1px rgba(52,211,153,0.35),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 8px rgba(0,0,0,0.25);
  filter: brightness(1.15);
}
/* Metallic light sweep across buttons */
.btn-green::after,
.btn-primary::after {
  content: ''; position: absolute;
  top: -10%; left: -100%; width: 60%; height: 120%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0.15) 42%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 58%,
    rgba(255,255,255,0.04) 65%,
    transparent 80%
  );
  pointer-events: none;
  animation: btnSweep 4s ease-in-out infinite 1.5s;
}
.auth-card button[type="submit"]::after {
  content: ''; position: absolute;
  top: -10%; left: -100%; width: 60%; height: 120%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0.15) 42%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 58%,
    rgba(255,255,255,0.04) 65%,
    transparent 80%
  );
  pointer-events: none;
  animation: btnSweep 4s ease-in-out infinite 2.5s;
}
@keyframes btnSweep {
  0%        { left: -100%; opacity: 0; }
  15%       { opacity: 1; }
  50%       { left: 160%; opacity: 1; }
  55%, 100% { left: 160%; opacity: 0; }
}

/* Daily tip in hero */
.hero-tip {
  max-width: 600px; padding: 14px 24px; border-radius: var(--radius-md);
  background: rgba(14,165,233,0.05); border: 1px solid rgba(14,165,233,0.12);
  color: var(--text-secondary); font-size: 0.85em; line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.45s both; backdrop-filter: blur(8px);
}
.hero-tip strong { color: var(--accent); }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 30px;
  left: 0; right: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.7em; letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  cursor: pointer; text-decoration: none;
}
.scroll-hint:hover { color: var(--text-secondary); }
.scroll-hint:hover .scroll-arrow { border-color: var(--text-secondary); }
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: border-color 0.2s;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* =====================================================
   SECTION STYLES (Shared)
   ===================================================== */
.section { width: 100%; padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 0.72em; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8em, 4vw, 2.8em); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px;
  color: var(--text-primary);
}
.section-desc {
  font-size: 1.05em; color: var(--text-secondary);
  max-width: 560px; line-height: 1.6;
}
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 0 auto 40px; border-radius: 2px;
}

/* =====================================================
   AUTH SECTION
   ===================================================== */
.auth-section { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px; position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.auth-card h2 {
  font-size: 1.5em; font-weight: 700; text-align: center;
  margin-bottom: 4px; color: var(--text-primary);
}
.auth-card .auth-sub {
  text-align: center; color: var(--text-secondary);
  font-size: 0.88em; margin-bottom: 28px;
}
.auth-card .auth-sub .hl-green { color: var(--green); font-weight: 600; }
.auth-card .auth-sub .hl-blue  { color: var(--accent); font-weight: 600; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.input-wrap { position: relative; }
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%; padding: 13px 16px; padding-right: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: var(--text-primary);
  border-radius: var(--radius-sm); font-size: 0.92em;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.25s ease; outline: none;
}
.auth-card input:focus {
  border-color: var(--accent); background: rgba(14,165,233,0.04);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.auth-card input::placeholder { color: var(--text-muted); }
/* Kill the browser autofill yellow — keep our dark theme */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(20,20,35,1) inset !important;
  box-shadow: 0 0 0 1000px rgba(20,20,35,1) inset !important;
  caret-color: var(--text-primary) !important;
  transition: background-color 9999s ease-in-out 0s;
}
.toggle-password {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  cursor: pointer; font-size: 0.95em; opacity: 0.5;
  transition: opacity 0.2s; user-select: none;
  z-index: 2;
}
.toggle-password:hover { opacity: 0.9; }
.auth-card button[type="submit"] {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  font-size: 0.95em; font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer; transition: all 0.3s ease; color: #fff;
  letter-spacing: 0.3px; position: relative; overflow: hidden;
}
.auth-card button[type="submit"]::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.auth-card .btn-signin,
.auth-card .btn-signup {
  background: linear-gradient(160deg, #0d2a18 0%, #0a6e2e 35%, #10b981 60%, #34d399 78%, rgba(255,255,255,0.2) 95%);
  box-shadow:
    0 4px 16px rgba(16,185,129,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -2px 6px rgba(0,0,0,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.auth-card .btn-signin:hover,
.auth-card .btn-signup:hover {
  box-shadow:
    0 6px 28px rgba(16,185,129,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 6px rgba(0,0,0,0.2);
  transform: translateY(-1px); filter: brightness(1.12);
}
.auth-links { text-align: center; margin-top: 16px; font-size: 0.85em; }
.auth-links a {
  color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s;
}
.auth-links a:hover { color: var(--accent); }
.auth-switch {
  text-align: center; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.auth-switch a {
  color: var(--accent); text-decoration: none; font-weight: 600;
  font-size: 0.9em; transition: color 0.2s;
}
.auth-switch a:hover { color: #38bdf8; }
.signin-col, .signup-col { width: 100%; }

/* =====================================================
   FEATURES GRID (Vercel/Linear inspired)
   ===================================================== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; width: 100%;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 0.5; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; margin-bottom: 16px;
}
.feature-icon.blue   { background: rgba(14,165,233,0.1); }
.feature-icon.green  { background: rgba(16,185,129,0.1); }
.feature-icon.orange { background: rgba(245,158,11,0.1); }
.feature-card h3 {
  font-size: 1em; font-weight: 700; margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.85em; color: var(--text-secondary); line-height: 1.55;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.steps {
  display: flex; gap: 40px; width: 100%; justify-content: center;
  margin-top: 48px;
}
.step { flex: 1; max-width: 260px; text-align: center; position: relative; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1em; font-weight: 800; color: var(--accent);
  margin-bottom: 16px;
}
.step h4 { font-size: 1em; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.85em; color: var(--text-secondary); line-height: 1.5; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; right: -24px;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, rgba(14,165,233,0.3), rgba(14,165,233,0.05));
}

/* =====================================================
   BUDGET QUEST PROMO
   ===================================================== */
.quest-card {
  width: 100%; max-width: 680px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(15,12,30,0.9) 0%, rgba(20,16,40,0.9) 50%, rgba(12,20,36,0.9) 100%);
  border: 1px solid rgba(255,136,0,0.2);
  border-radius: var(--radius-lg); padding: 40px 36px;
  text-align: center; position: relative; overflow: hidden;
  backdrop-filter: blur(16px);
}
.quest-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-lg); padding: 1px;
  background: linear-gradient(135deg, #ff8800, #ff4444, #ffdd00, #ff8800);
  background-size: 300% 300%;
  animation: questGlow 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.4; pointer-events: none;
}
@keyframes questGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.quest-icon { font-size: 2.5em; margin-bottom: 8px; }
.quest-title {
  font-size: 1.5em; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffdd00, #ff8800, #ff4444);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 4px;
}
.quest-subtitle {
  font-size: 0.75em; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 16px;
}
.quest-desc {
  font-size: 0.9em; color: var(--text-secondary); line-height: 1.6;
  max-width: 500px; margin: 0 auto 20px;
}
.quest-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 20px;
}
.quest-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.75em; font-weight: 600; backdrop-filter: blur(8px);
}
.quest-badge.qb-gold  { background: rgba(255,221,0,0.1); border: 1px solid rgba(255,221,0,0.25); color: #ffdd00; }
.quest-badge.qb-green { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); color: #00ff88; }
.quest-badge.qb-blue  { background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.25); color: var(--accent); }
.quest-badge.qb-fire  {
  background: linear-gradient(135deg, rgba(255,136,0,0.2), rgba(255,68,68,0.2));
  border: 1px solid rgba(255,136,0,0.4); color: #fff;
  font-weight: 700; box-shadow: 0 0 16px rgba(255,136,0,0.2);
}
.quest-note { font-size: 0.72em; color: var(--text-muted); margin-top: 16px; }
.quest-beta {
  font-size: 0.78em; color: #ff8800; font-style: italic;
  font-weight: 600; margin-top: 8px;
}

/* =====================================================
   TRUST & SECURITY
   ===================================================== */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; width: 100%; margin-top: 36px;
}
.trust-item {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
  transition: all 0.3s ease;
}
.trust-item:hover {
  border-color: rgba(16,185,129,0.2); background: var(--bg-card-hover);
}
.trust-icon { font-size: 1.5em; margin-bottom: 10px; }
.trust-item h4 {
  font-size: 0.82em; font-weight: 700; margin-bottom: 6px; color: var(--green);
}
.trust-item p {
  font-size: 0.75em; color: var(--text-secondary); line-height: 1.45;
}

/* Expandable technical details */
.tech-details-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 14px 32px; border-radius: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 1em; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  font-family: 'Inter', system-ui, sans-serif;
}
.tech-details-toggle:hover {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  border-color: rgba(255,255,255,0.1);
}
.tech-details-toggle .chevron { transition: transform 0.3s; font-size: 0.8em; }
.tech-details-toggle.open .chevron { transform: rotate(180deg); }

.tech-details-panel {
  display: none; margin-top: 20px;
  background: rgba(8,10,18,0.6); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 28px; text-align: left;
  max-width: 700px; width: 100%; line-height: 1.7;
  color: var(--text-secondary); font-size: 0.82em;
  backdrop-filter: blur(12px);
}
.tech-details-panel.show { display: block; animation: fadeInUp 0.3s ease-out; }
.tech-details-panel h5 {
  color: var(--accent); font-size: 1em; margin: 18px 0 6px; font-weight: 700;
}
.tech-details-panel h5:first-child { margin-top: 0; }
.tech-details-panel .tech-box {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 8px 0;
}
.tech-details-panel .tech-box strong { color: var(--green); }
.tech-details-panel .tech-box .ref {
  color: var(--text-muted); font-size: 0.85em; font-style: italic;
}
.tech-details-panel .lifecycle-bar {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); padding: 12px; text-align: center; margin: 8px 0;
}
.tech-details-panel .checklist {
  border-left: 3px solid var(--green); padding-left: 14px;
  margin: 8px 0; line-height: 2;
}
.tech-details-panel .references {
  text-align: center; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted); font-size: 0.85em; font-style: italic;
}

/* =====================================================
   RESOURCES NAV
   ===================================================== */
.resources-nav {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; width: 100%;
}
.resource-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.85em; font-weight: 500; transition: all 0.3s ease;
}
.resource-link:hover {
  color: var(--accent); border-color: var(--border-accent);
  background: var(--bg-card-hover); transform: translateY(-2px);
}
.resource-link .r-icon { font-size: 1.1em; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  width: 100%; padding: 40px 0 32px; text-align: center;
  border-top: 1px solid var(--border-subtle); margin-top: 20px;
}
.footer-brand { font-size: 1.1em; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.footer-text { font-size: 0.8em; color: var(--text-muted); line-height: 1.6; }
.footer-text a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.footer-text a:hover { color: #38bdf8; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .page-wrapper { padding: 0 16px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-title { font-size: 2.5em; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid   { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step:not(:last-child)::after { display: none; }
  .auth-card { padding: 28px 20px 24px; }
  .quest-card { padding: 28px 20px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }
  .scroll-hint { display: none; }
  .resources-nav { flex-direction: column; align-items: center; }
  .resource-link { width: 100%; max-width: 340px; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2em; }
  .section-title { font-size: 1.5em; }
}

/* -- Flash Message -- */
.flash-msg {
  padding: 10px; border-radius: var(--radius-sm);
  margin-bottom: 14px; text-align: center;
  font-size: 0.9em; color: #fff;
}
.flash-msg.error   { background: #dc2626; }
.flash-msg.success { background: var(--green); }

/* Firework launcher prompt pulse */
@keyframes fwLauncherGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,150,50,0.3), 0 0 40px rgba(255,100,0,0.1); }
  50%      { box-shadow: 0 0 30px rgba(255,150,50,0.5), 0 0 60px rgba(255,100,0,0.25), 0 0 80px rgba(255,80,0,0.1); }
}
#fwLauncher { animation: fwLauncherGlow 2s ease-in-out infinite; }
#fwLauncher:hover {
  border-color: rgba(255,200,80,0.7);
  background: linear-gradient(135deg,rgba(255,80,40,0.25),rgba(255,160,0,0.2),rgba(255,220,60,0.15)) !important;
  transform: translate(-50%,-50%) scale(1.05) !important;
}
