/* ═══════════════════════════════════════════════════════════════
   SmartTradeHub — Pure CSS Design System
   Design: Editorial Longform — Digital Magazine Aesthetic
   Palette: Navy (oklch) + Amber/Gold + Off-white
   Fonts: Playfair Display (headlines) + DM Sans (body)
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  --radius: 0.5rem;
  --background: #0f172a;
  --foreground: #f1f0ed;
  --card: #1a2744;
  --card-foreground: #ece9e4;
  --primary: #f59e0b;
  --primary-foreground: #0f172a;
  --secondary: #1e293b;
  --secondary-foreground: #cbd5e1;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #263450;
  --border: #334155;
  --input: #283548;
  --ring: #f59e0b;

  /* Named colors */
  --navy-950: #0f172a;
  --navy-900: #1a2744;
  --navy-800: #263450;
  --navy-700: #334d6e;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Container ─── */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1280px;
  }
}

/* ─── Utility Classes ─── */
.text-gradient-amber {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(26, 39, 68, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(61, 79, 106, 0.5);
  border-radius: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    white-space: normal;
    text-align: center;
  }
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  background: transparent;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .btn-outline {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    white-space: normal;
    text-align: center;
  }
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.6);
}

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

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

@keyframes bounceDown {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(8px) translateX(-50%); }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.animate-fade-up-delay-1 {
  animation: fadeUp 0.7s ease-out 0.15s both;
}

.animate-fade-up-delay-2 {
  animation: fadeUp 0.7s ease-out 0.3s both;
}

.animate-fade-up-delay-3 {
  animation: fadeUp 0.7s ease-out 0.45s both;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out both;
}

.animate-bounce-down {
  animation: bounceDown 2s ease-in-out infinite;
}

/* Intersection Observer driven animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── Progress Bar ─── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: var(--primary);
  transform-origin: left;
  will-change: transform;
  transform: scaleX(0);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.header-logo span {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}

.header-nav a.header-cta,
.header-nav a.header-cta:hover,
.header-nav a.header-cta:active {
  color: var(--primary-foreground);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.header-cta:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.header-cta:active {
  transform: scale(0.98);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.95);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

@media (max-width: 767px) {
  .mobile-menu { display: block; }
}

.mobile-menu.open {
  max-height: 20rem;
  opacity: 1;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.mobile-menu nav a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--foreground);
  transition: color 0.2s;
}

.mobile-menu nav a:hover {
  color: var(--primary);
}

.mobile-menu .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background: #0b1120;
}

.footer-risk {
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  background: #0e1627;
  padding: 1.5rem 0;
}

.footer-risk .risk-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-risk .risk-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-risk .risk-icon span {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-risk p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.footer-risk strong {
  color: rgba(251, 191, 36, 0.9);
}

.footer-affiliate {
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  background: #0d1424;
  padding: 1rem 0;
}

.footer-affiliate p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.footer-affiliate strong {
  color: rgba(241, 240, 237, 0.7);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 28rem;
  margin-top: 1rem;
}

.footer-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .brand-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand .brand-link span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.85) 100%);
}

.hero-spacer-top {
  position: relative;
  flex-grow: 2.2;
}

.hero-spacer-bottom {
  position: relative;
  flex-grow: 1.5;
}

.hero-content {
  position: relative;
  max-width: 48rem;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1svh, 0.75rem);
  margin-bottom: clamp(0.6rem, 1.5svh, 1.5rem);
}

.hero-tag .line {
  height: 2px;
  width: clamp(1.5rem, 3svh, 2.5rem);
  background: var(--primary);
}

.hero-tag span {
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: clamp(0.65rem, 1.2svh, 0.8rem);
  font-family: 'DM Sans', sans-serif;
}

.hero h1 {
  font-weight: 700;
  line-height: 1.12;
  font-size: clamp(1.65rem, 5.5svh, 4.5rem);
  margin-bottom: clamp(0.5rem, 1.8svh, 1.5rem);
}

.hero-subtitle {
  color: rgba(241, 240, 237, 0.7);
  line-height: 1.6;
  max-width: 42rem;
  font-size: clamp(0.8rem, 1.8svh, 1.25rem);
  margin-bottom: clamp(1rem, 2.5svh, 2rem);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2svh, 1rem);
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
  padding: clamp(0.7rem, 1.5svh, 1rem) clamp(1.25rem, 3svh, 2rem);
  font-size: clamp(0.8rem, 1.6svh, 1rem);
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(0.5rem, 1.5svh, 1.5rem);
  color: rgba(241, 240, 237, 0.4);
  animation: bounceDown 2s ease-in-out infinite;
}

.hero-scroll-indicator svg {
  width: clamp(1.1rem, 2.5svh, 1.5rem);
  height: clamp(1.1rem, 2.5svh, 1.5rem);
}

/* ─── Stats Bar ─── */
.stats-bar {
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  background: #152035;
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stats-grid .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  font-family: 'DM Sans', sans-serif;
}

@media (min-width: 1024px) {
  .stats-grid .stat-value { font-size: 2.25rem; }
}

.stats-grid .stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ─── Chapter Sections ─── */
.chapter-section {
  padding: 5rem 0 5rem;
}

@media (min-width: 1024px) {
  .chapter-section { padding: 7rem 0; }
}

.chapter-section.alt-bg {
  background: #152035;
}

.chapter-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chapter-marker span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.6);
}

.chapter-marker .line {
  flex: 1;
  height: 1px;
  background: rgba(51, 65, 85, 0.5);
}

.chapter-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .chapter-title { font-size: 3rem; }
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .chapter-grid { grid-template-columns: 1fr 1.2fr; }
  .chapter-grid.reverse { grid-template-columns: 1.2fr 1fr; }
}

.chapter-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.chapter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-image .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
}

.chapter-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chapter-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(241, 240, 237, 0.8);
}

@media (min-width: 1024px) {
  .chapter-text p { font-size: 1.125rem; }
}

/* Blockquote */
.quote-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.quote-card .quote-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.25rem;
}

.quote-card p {
  font-size: 1rem;
  font-style: italic;
  color: rgba(241, 240, 237, 0.9);
  line-height: 1.7;
}

.quote-card .quote-author {
  font-size: 0.875rem;
  color: var(--primary);
  margin-top: 0.5rem;
  font-weight: 500;
  font-style: normal;
}

/* Feature cards grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-card .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-family: 'DM Sans', sans-serif;
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  padding-left: 1rem;
  border-left: 2px solid rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5625rem;
  top: 0.375rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.6);
  border: 2px solid var(--background);
}

.timeline-item .time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.125rem;
  font-family: 'DM Sans', sans-serif;
}

.timeline-item .desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Chart overlay card */
.chart-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.chart-overlay-inner {
  padding: 0.75rem 1rem;
}

.chart-overlay p:first-child {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.chart-overlay .big-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
}

.chart-overlay .sub-text {
  font-size: 0.75rem;
  color: var(--emerald-500);
}

/* ─── Lifestyle Section ─── */
.lifestyle-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .lifestyle-section { padding: 7rem 0; }
}

.lifestyle-section .bg-image {
  position: absolute;
  inset: 0;
}

.lifestyle-section .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-section .bg-image .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.92) 100%);
}

.lifestyle-content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-divider .line {
  width: 2rem;
  height: 2px;
  background: var(--primary);
}

.section-divider span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
}

.lifestyle-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .lifestyle-content h2 { font-size: 3rem; }
}

.lifestyle-content > p {
  font-size: 1.125rem;
  color: rgba(241, 240, 237, 0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
}

.author-card img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.author-card .info {
  text-align: left;
}

.author-card .info .name {
  font-weight: 600;
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
}

.author-card .info .role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.author-card .info .since {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

/* ─── Calculator Section ─── */
.calculator-section {
  padding: 5rem 0;
  background: #152035;
}

@media (min-width: 1024px) {
  .calculator-section { padding: 7rem 0; }
}

.calculator-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calculator-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .calculator-header h2 { font-size: 3rem; }
}

.calculator-header p {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

.calculator-card {
  border-radius: 1rem;
  overflow: hidden;
}

.calculator-card .card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .calculator-card .card-header { padding: 1.5rem 2rem; }
}

.calculator-card .card-header .icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator-card .card-header .icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.calculator-card .card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
}

.calculator-card .card-header .sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.calculator-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .calculator-body {
    padding: 2rem;
    grid-template-columns: 1fr 1fr;
  }
}

/* Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.slider-item label .label-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
}

.slider-item label .label-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
}

.slider-item input[type="range"] {
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: #283548;
}

.slider-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--background);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease;
}

.slider-item input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-item input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--background);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.slider-item .range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.slider-item .range-labels span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Results summary */
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.calc-results .result-box {
  border-radius: 0.75rem;
  padding: 1rem;
  background: #1e293b;
}

.calc-results .result-box .result-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.calc-results .result-box .result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
}

.calc-results .result-box .result-value.profit {
  color: var(--emerald-400);
}

.calc-results .result-box .result-percent {
  font-size: 0.75rem;
  color: var(--emerald-500);
  margin-top: 0.125rem;
}

/* Chart area */
.calc-chart {
  display: flex;
  flex-direction: column;
}

.calc-chart .chart-area {
  flex: 1;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #152035;
}

.calc-chart .chart-title {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.calc-chart .bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12rem;
}

.calc-chart .bar {
  flex: 1;
  min-width: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(245, 158, 11, 0.6), #f59e0b);
  transition: height 0.5s ease-out;
}

.calc-chart .chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.calc-chart .chart-labels span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.calc-chart .chart-cta {
  margin-top: 1rem;
}

.calc-chart .chart-disclaimer {
  font-size: 10px;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ─── How To Start Section ─── */
.howto-section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .howto-section { padding: 7rem 0; }
}

.howto-header {
  text-align: center;
  margin-bottom: 3rem;
}

.howto-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .howto-header h2 { font-size: 3rem; }
}

.howto-header p {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .howto-grid { grid-template-columns: repeat(3, 1fr); }
}

.howto-card {
  padding: 1.5rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.howto-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.howto-card .step-number {
  font-size: 3.75rem;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.1);
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}

.howto-card:hover .step-number {
  color: rgba(245, 158, 11, 0.2);
}

.howto-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  position: relative;
}

.howto-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  position: relative;
}

/* ─── Final CTA Section ─── */
.final-cta {
  padding: 4rem 0 5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  background: linear-gradient(to bottom, #1a2744, #0f172a);
  text-align: center;
}

.final-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .final-cta h2 { font-size: 2rem; }
}

.final-cta p.cta-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-primary {
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
}

.final-cta .disclaimer {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
  margin-top: 1.5rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .final-cta { padding: 3rem 0 4rem; }
  .final-cta h2 { font-size: 1.375rem; }
  .final-cta p.cta-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .final-cta .btn-primary { font-size: 0.875rem; padding: 0.75rem 1.5rem; }
  .final-cta .disclaimer { font-size: 0.6875rem; margin-top: 1.25rem; }
}

/* ─── Page Layout (for secondary pages) ─── */
.page-content {
  padding-top: 4rem; /* account for fixed header */
}

.page-section {
  padding: 4rem 0 4rem;
}

@media (min-width: 1024px) {
  .page-section { padding: 6rem 0; }
}

.page-section .max-w-3xl {
  max-width: 48rem;
  margin: 0 auto;
}

.page-section .max-w-4xl {
  max-width: 56rem;
  margin: 0 auto;
}

.page-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .page-section h1 { font-size: 3rem; }
}

.page-section .subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.page-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.page-section .content-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-section .content-block p {
  color: rgba(241, 240, 237, 0.8);
  line-height: 1.8;
}

.page-section .content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-section .content-block ul li {
  color: rgba(241, 240, 237, 0.8);
  line-height: 1.7;
}

.page-section .content-block strong {
  color: var(--foreground);
}

.page-section .content-block a {
  color: var(--primary);
  transition: opacity 0.2s;
}

.page-section .content-block a:hover {
  text-decoration: underline;
}

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

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.contact-info-card .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-info-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-family: 'DM Sans', sans-serif;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-info-card a:hover {
  color: var(--primary);
}

.contact-note {
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: #1a2744;
}

.contact-note p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.contact-note strong {
  color: rgba(241, 240, 237, 0.7);
}

/* Contact Form */
.contact-form {
  padding: 1.5rem;
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .contact-form { padding: 2rem; }
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
  font-family: 'DM Sans', sans-serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.contact-form textarea {
  resize: none;
  min-height: 8rem;
}

.contact-form .submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.contact-form .submit-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
}

.contact-form .submit-btn:active {
  transform: scale(0.99);
}

/* ─── About Page ─── */
.about-founder {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .about-founder { flex-direction: row; }
}

.about-founder img {
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 2px solid rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.about-founder h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.about-founder .role {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}

.value-card {
  padding: 1.25rem;
}

.value-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-family: 'DM Sans', sans-serif;
}

.value-card p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.disclaimer-box {
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: #1a2744;
}

.disclaimer-box p {
  font-size: 0.875rem;
}

/* ─── Toast notification ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--foreground);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── SVG Icons (inline) ─── */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
