/* ============================================================
   JASMINEFX – Premium SaaS Landing Page Stylesheet
   Tailwind CSS v3 CDN + Custom Brand Styles
   ============================================================ */

/* ----- CSS Custom Properties: Theme Tokens ----- */
:root {
  /* Dark Mode (Default) */
  --bg-primary: #0a1b1e;
  --bg-secondary: #0d2428;
  --surface: #112d32;
  --surface-border: rgba(30, 189, 202, 0.15);
  --surface-hover-border: rgba(30, 189, 202, 0.35);
  --accent-primary: #1ebdca;
  --accent-primary-glow: rgba(30, 189, 202, 0.25);
  --accent-secondary: #d4af37;
  --accent-secondary-glow: rgba(212, 175, 55, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-bg: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(30, 189, 202, 0.08), transparent),
                radial-gradient(ellipse 50% 50% at 80% 80%, rgba(212, 175, 55, 0.05), transparent);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 0 30px rgba(30, 189, 202, 0.12), 0 0 60px rgba(30, 189, 202, 0.04);
  --nav-bg: rgba(10, 27, 30, 0.85);
  --nav-blur: blur(20px);
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f4f6f7;
  --surface: #ffffff;
  --surface-border: #e2e8f0;
  --surface-hover-border: rgba(13, 92, 102, 0.35);
  --accent-primary: #0d5c66;
  --accent-primary-glow: rgba(13, 92, 102, 0.15);
  --accent-secondary: #b58926;
  --accent-secondary-glow: rgba(181, 137, 38, 0.15);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --gradient-bg: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(13, 92, 102, 0.04), transparent),
                radial-gradient(ellipse 50% 50% at 80% 80%, rgba(181, 137, 38, 0.04), transparent);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 20px rgba(13, 92, 102, 0.1), 0 0 40px rgba(13, 92, 102, 0.04);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-blur: blur(20px);
}

/* ----- Base Reset & Typography ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Mesh Gradient Background ----- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* ----- Typography Scale ----- */
h1, h2, h3, h4, .heading-font {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-brand-text {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #159aa6);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-primary-glow), 0 4px 14px rgba(30, 189, 202, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-primary-glow), 0 8px 24px rgba(30, 189, 202, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--surface-border);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-primary-glow);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-secondary), #c49b2e);
  color: #1a1a1a;
  box-shadow: 0 0 20px var(--accent-secondary-glow), 0 4px 14px rgba(212, 175, 55, 0.2);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-secondary-glow), 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ----- Section Spacing ----- */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(30, 189, 202, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(30, 189, 202, 0.2);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-tagline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-tagline .highlight {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual – Animated Dashboard */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  transition: all 0.5s ease;
}

.dashboard-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(30, 189, 202, 0.06), transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(212, 175, 55, 0.04), transparent 60%);
  pointer-events: none;
}

/* Dashboard header bar */
.db-header {
  height: 48px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.db-dot { width: 10px; height: 10px; border-radius: 50%; }
.db-dot.red { background: #ef4444; }
.db-dot.yellow { background: #eab308; }
.db-dot.green { background: #22c55e; }

.db-title {
  margin-left: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Chart lines */
.db-chart {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 60px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  position: relative;
}

.chart-bar.teal {
  background: linear-gradient(180deg, var(--accent-primary), rgba(30, 189, 202, 0.15));
}

.chart-bar.gold {
  background: linear-gradient(180deg, var(--accent-secondary), rgba(212, 175, 55, 0.15));
}

.chart-bar.muted {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.4), rgba(148, 163, 184, 0.05));
}

/* Candlestick animation */
.candlestick-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 0 0.5rem;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.candle-wick {
  width: 2px;
  background: var(--text-secondary);
  opacity: 0.4;
}

.candle-body {
  width: 12px;
  border-radius: 2px;
}

.candle-body.up {
  background: var(--accent-primary);
}

.candle-body.down {
  background: #ef4444;
  opacity: 0.6;
}

/* Circuit lines decoration */
.circuit-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
}

.circuit-line {
  position: absolute;
  background: var(--accent-primary);
}

.circuit-line.h {
  height: 1px;
  width: 40%;
}

.circuit-line.v {
  width: 1px;
  height: 30%;
}

.circuit-node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: float-up linear infinite;
  opacity: 0;
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ----- Trust Banner ----- */
.trust-banner {
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 2.5rem 0;
  background: var(--surface);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.trust-text /* (merged above) */

.trust-brokers {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0.5;
}

.broker-badge {
  padding: 0.4rem 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ----- Features Grid ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--accent-primary), var(--accent-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  background: rgba(30, 189, 202, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(30, 189, 202, 0.15);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(30, 189, 202, 0.18);
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ----- How It Works Timeline ----- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  opacity: 0.3;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px var(--accent-primary-glow);
  transform: scale(1.08);
}

.timeline-step h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ----- Pricing ----- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary-glow);
}

.toggle-switch.annual::after {
  left: 25px;
}

.save-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(30, 189, 202, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--accent-secondary), #c49b2e);
  padding: 0.3rem 1.2rem;
  border-radius: 9999px;
}

.price-amount {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  margin: 1rem 0;
  color: var(--text-primary);
}

.price-amount .currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 0.25rem;
}

.price-amount .period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
}

.pricing-features li {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '◆';
  color: var(--accent-primary);
  font-size: 0.55rem;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0.5;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 3rem 0 2rem;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-disclaimer {
  border-top: 1px solid var(--surface-border);
  padding-top: 1.5rem;
}

.footer-disclaimer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----- Legal/Content Page Styles ----- */
.page-content h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

.page-content h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
  padding-left: 0.25rem;
}

.page-content li::marker {
  color: var(--accent-primary);
}

.page-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--accent-secondary);
}

.page-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.page-content code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid var(--surface-border);
  color: var(--accent-primary);
}

.page-content pre {
  margin: 1rem 0 1.5rem;
}

.page-content table {
  font-size: 0.9rem;
}

.page-content table th {
  font-weight: 600;
  color: var(--text-primary);
}

.page-content table td {
  color: var(--text-secondary);
  vertical-align: top;
}

/* Form input focus */
.page-content input:focus,
.page-content textarea:focus {
  outline: none;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

/* Password toggle */
.pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-wrapper input {
  width: 100%;
  padding-right: 2.75rem !important;
}

.pwd-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwd-toggle:hover {
  color: var(--accent-primary);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .dashboard-mockup { max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 0 0 14px 14px;
    padding: 0.75rem;
    gap: 0.25rem;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open a {
    padding: 0.65rem 1rem;
    border-radius: 8px;
  }
  .nav-links.open a:hover {
    background: rgba(30,189,202,0.08);
  }
  .features-grid { grid-template-columns: 1fr; }
  .hero-tagline { font-size: 2rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .trust-inner { flex-direction: column; gap: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
}

/* ----- Hero Slider ----- */
.hero-slider { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--surface-border); box-shadow: var(--shadow-card-hover); background: var(--surface); }
.hero-slider .slides { display: flex; transition: transform 0.6s ease; }
.hero-slider .slide { min-width: 100%; position: relative; }
.hero-slider .slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,27,30,0.85) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 1.5rem; }
.hero-slider .slide-overlay span { color: #fff; font-weight: 700; font-size: 1rem; font-family: 'Sora',sans-serif; }
.hero-slider .slider-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.75rem; }
.hero-slider .slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s; }
.hero-slider .slider-dots button.active { background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); width: 28px; border-radius: 5px; }
.hero-slider .slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; z-index: 2; transition: all 0.3s; }
.hero-slider .slider-arrow:hover { background: var(--accent-primary); border-color: var(--accent-primary); }
.hero-slider .slider-arrow.prev { left: 0.75rem; }
.hero-slider .slider-arrow.next { right: 0.75rem; }

/* ----- Video Section ----- */
.video-section { background: var(--surface); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--surface-border); }
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ----- Site Modal (confirm dialogs) ----- */
.site-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: siteFadeIn 0.2s ease; }
.site-modal-overlay.closing { animation: siteFadeOut 0.2s ease forwards; }
@keyframes siteFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes siteFadeOut { from { opacity: 1; } to { opacity: 0; } }
.site-modal-box { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 20px; padding: 2.5rem 2rem 2rem; max-width: 400px; width: 90%; text-align: center; animation: siteModalIn 0.3s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
@keyframes siteModalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.site-modal-icon { font-size: 2.5rem; color: var(--accent-secondary); margin-bottom: 0.75rem; }
.site-modal-box h3 { font-family: 'Sora', sans-serif; font-size: 1.25rem; color: var(--text-primary); margin: 0 0 0.5rem; }
.site-modal-box p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 1.75rem; line-height: 1.5; }
.site-modal-actions { display: flex; gap: 0.75rem; justify-content: center; }
.site-modal-cancel, .site-modal-confirm { padding: 0.6rem 1.5rem; border-radius: 10px; font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.site-modal-cancel { background: transparent; border: 1px solid var(--surface-border); color: var(--text-secondary); }
.site-modal-cancel:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.site-modal-confirm { background: linear-gradient(135deg, var(--accent-primary), #159aa6); color: #fff; }
.site-modal-confirm:hover { box-shadow: 0 0 20px var(--accent-primary-glow); }

/* ----- Animations ----- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.animate-in.delay-1 { animation-delay: 0.15s; }
.animate-in.delay-2 { animation-delay: 0.3s; }
.animate-in.delay-3 { animation-delay: 0.45s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
}

/* ----- iPhone 12 / Small Phones (≤480px) ----- */
@media (max-width: 480px) {
  /* Nav: hide action buttons, show only brand + hamburger */
  .nav-actions { display: none; }
  .nav-inner { height: 60px; padding: 0 1rem; }
  .nav-logo { width: 32px; height: 32px; }
  .nav-brand-text { font-size: 1.1rem; }

  /* Hero */
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 2rem; }
  .hero-tagline { font-size: 1.75rem !important; line-height: 1.2; }
  .hero-subtitle { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section-label { font-size: 0.7rem; padding: 0.25rem 0.75rem; }

  /* Section spacing */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.85rem; }

  /* Trust banner */
  .trust-banner { padding: 1.5rem 0; }
  .trust-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .trust-text { font-size: 0.8rem; justify-content: center; flex-wrap: wrap; }
  .trust-brokers { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
  .broker-badge { font-size: 0.65rem; padding: 0.3rem 0.65rem; }

  /* Performance stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  /* Features grid */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.25rem; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.82rem; }

  /* Timeline */
  .timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline::before { display: none; }

  /* Pricing */
  .pricing-card { padding: 1.5rem; }
  .price-amount { font-size: 2.5rem; }

  /* Footer */
  .footer { padding: 2rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Dashboard mockup */
  .dashboard-mockup { max-width: 100%; aspect-ratio: 16/10; }
  .db-chart { padding: 0.75rem; }

  /* Hero slider */
  .hero-slider .slide img { height: 200px; }

  /* Comparison table */
  table { font-size: 0.7rem !important; }
  table th, table td { padding: 0.4rem 0.4rem !important; }

  /* Free Trial Banner */
  .free-trial-banner { padding: 1.25rem !important; border-radius: 16px !important; }
  .free-trial-banner .banner-inner { flex-direction: column !important; gap: 1rem !important; align-items: stretch !important; }
  .free-trial-banner .banner-text { min-width: auto !important; }
  .free-trial-banner .banner-steps { justify-content: center; gap: 0.5rem !important; }
  .free-trial-banner .banner-cta { text-align: center; }
  .free-trial-banner .banner-cta a { width: 100%; justify-content: center; }

  /* Auth forms */
  .auth-section { padding-top: 5rem !important; min-height: auto !important; }
  .auth-form { padding: 1.25rem !important; border-radius: 14px !important; }
  .auth-form h2 { font-size: 1.3rem; }
}
