/* ====== CSS Reset ====== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ====== Design tokens ====== */
:root{
  --bg: #00142E;
  --card: #001f3f;
  --text: #ffffff;
  --muted: #b8c5d6;
  --brand: #ffffff;
  --brand-secondary: #4a90e2;
  --brand-ink: #00142E;
  --ring: 0 0 0 3px rgba(255, 255, 255, 0.35);
  --radius: 16px;
  --shadow: 0 20px 40px rgba(0,0,0,0.3);
  --container: 1200px;
  --gradient-primary: linear-gradient(135deg, #00142E 0%, #4a90e2 100%);
  --gradient-secondary: linear-gradient(135deg, #4a90e2 0%, #00142E 100%);
  --header-bg: rgba(0, 20, 46, 0.95);
  --header-border: rgba(255, 255, 255, 0.1);
}

/* Light theme */
[data-theme="light"] {
  --bg: #ffffff;
  --card: #f8fafc;
  --text: #00142E;
  --muted: #4a5568;
  --brand: #00142E;
  --brand-secondary: #4a90e2;
  --brand-ink: #f3f4f6;
  --shadow: 0 20px 40px rgba(0, 20, 46, 0.1);
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-border: rgba(0, 20, 46, 0.1);
}

/* Fallback for older browsers */
@media (prefers-color-scheme: light){
  :root:not([data-theme]){
    --bg: #ffffff;
    --card: #f8fafc;
    --text: #00142E;
    --muted: #4a5568;
    --brand: #00142E;
    --brand-secondary: #4a90e2;
    --brand-ink: #f3f4f6;
    --shadow: 0 20px 40px rgba(0, 20, 46, 0.1);
  }
}

/* ====== Base ====== */
html { scroll-behavior: smooth; }
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 1rem; }
h1,h2,h3{ line-height: 1.2; margin: 0 0 .6rem; font-weight: 700; }
.lead{ font-size: 1.25rem; color: var(--muted); font-weight: 400; }

/* Layout */
.container{
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.section{ padding: clamp(4rem, 8vw, 8rem) 0; }
.section.alt{ background: var(--card); }
.section-head{ text-align:center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.grid-2{ display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.grid-3{ display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* Header / Nav */
.site-header{
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(20px);
  border-bottom: 1px solid var(--header-border);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px;
}
.logo{ display: inline-flex; gap: .75rem; align-items: center; font-weight: 700; letter-spacing: .2px; font-size: 1.25rem; color: var(--text); }
.logo img { border-radius: 8px; }
.primary-nav{ display: flex; align-items: center; gap: 2rem; }
.primary-nav ul{ display: flex; list-style: none; gap: 2rem; padding: 0; margin: 0 2rem 0 0; }
.primary-nav a{ color: var(--muted); font-weight: 500; transition: color 0.2s ease; }
.primary-nav a:hover, .primary-nav a:focus{ color: var(--text); }
.nav-cta{ display: flex; gap: .75rem; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px; border: 1px solid rgba(248, 250, 252, 0.2);
  border-radius: 12px; background: none; cursor: pointer; position: relative;
}
.nav-toggle:focus-visible{ outline: none; box-shadow: var(--ring); }
.nav-toggle-bar,
.nav-toggle-bar::before, .nav-toggle-bar::after{
  content:""; position:absolute; left: 10px; right:10px; height:2px; background: var(--text); transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.nav-toggle-bar{ top: 21px; }
.nav-toggle-bar::before{ top: -8px; }
.nav-toggle-bar::after{ top: 8px; }

@media (max-width: 900px){
  .nav-toggle{ display: inline-block; }
  .primary-nav{
    position: fixed; inset: 80px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
    padding: 1.5rem; transform: translateY(-120%); transition: transform .25s ease;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
  }
  .primary-nav.open{ transform: translateY(0); }
  .primary-nav ul{ flex-direction: column; gap: 1rem; }
}

/* Hero */
.hero { padding-top: 2rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .lead{ max-width: 60ch; font-size: 1.25rem; margin-bottom: 2rem; }
.hero-cta{ display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
}
.stat-number {
  font-size: 1.5rem; font-weight: 700; color: var(--brand);
}
.stat-label {
  font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem;
}

.hero-media {
  position: relative;
}
.hero-image-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image {
  width: 100%; height: auto; border-radius: var(--radius);
}
.floating-card {
  position: absolute; background: var(--card); border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 12px; padding: 1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.75rem;
  backdrop-filter: blur(10px);
}
.card-1 { top: 20%; left: -10%; }
.card-2 { bottom: 20%; right: -10%; }
.card-icon { font-size: 1.5rem; }
.card-content h4 { font-size: 0.875rem; margin: 0; color: var(--muted); }
.card-content p { font-size: 1rem; margin: 0; font-weight: 600; }

/* Cards / Features */
.card{
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 20, 46, 0.4);
}

.feature-card {
  text-align: center;
}
.feature-icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem;
  border-radius: 50%; overflow: hidden; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 20, 46, 0.3);
}
.feature-icon img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Steps */
.steps {
  gap: 3rem;
}
.step {
  text-align: center; position: relative;
}
.step-number {
  width: 60px; height: 60px; background: var(--gradient-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: white; margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 20, 46, 0.3);
}
.step-image {
  width: 100%; height: 200px; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.step-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Benefits */
.benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.benefit {
  text-align: center; padding: 2rem;
}
.benefit-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  border-radius: 50%; overflow: hidden; background: var(--gradient-secondary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}
.benefit-icon img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Stats */
.stats {
  gap: 2rem;
}
.stat {
  text-align: center; padding: 2rem;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-5px);
}
.stat-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  border-radius: 50%; overflow: hidden; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 20, 46, 0.3);
}
.stat-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.stat-value {
  font-size: 2rem; font-weight: 700; color: var(--brand); margin: 0;
}

/* Accordion */
.accordion-item{ border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.accordion-trigger{
  width: 100%; text-align: left; padding: 1.5rem 0; background: none; border: 0; cursor: pointer; font-weight: 600;
  font-size: 1.125rem; transition: color 0.2s ease; position: relative; color: var(--text);
}
.accordion-trigger:hover { color: var(--brand); }
.accordion-trigger:focus-visible{ outline: none; box-shadow: var(--ring); border-radius: 8px; }
.accordion-trigger::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brand);
  transition: transform 0.3s ease;
}
.accordion-trigger[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}
.accordion-panel{ 
  padding: 0 0 1.5rem; 
  color: var(--muted); 
  overflow: hidden;
  transition: all 0.3s ease;
}
.accordion-panel[hidden] {
  padding: 0;
  max-height: 0;
}
.accordion-panel:not([hidden]) {
  max-height: 200px;
}

/* CTA */
.cta{
  background:
    radial-gradient(2000px 1000px at 100% 0, rgba(0, 20, 46, 0.15) 0, transparent 60%),
    radial-gradient(2000px 1000px at 0 100%, rgba(74, 144, 226, 0.1) 0, transparent 60%);
  position: relative;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-primary); opacity: 0.05; border-radius: var(--radius);
}

/* Footer */
.site-footer{ border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 3rem 0; background: var(--card); }
.footer-grid{ display: grid; gap: 2rem; grid-template-columns: auto 1fr auto; align-items: center; }
.footer-links{ display: flex; list-style: none; gap: 2rem; padding: 0; margin: 0; }
@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr; text-align: center; }
  .footer-links{ justify-content: center; flex-wrap: wrap; }
}

/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1rem 2rem; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600;
  font-size: 1rem; background: var(--gradient-primary); color: white; box-shadow: var(--shadow);
  transition: all 0.3s ease; text-decoration: none;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0, 20, 46, 0.3); }
.btn:focus-visible{ outline: none; box-shadow: var(--ring); }
.btn-outline{
  background: transparent; color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: var(--gradient-primary); border-color: transparent;
}

/* Reveal-on-scroll animation */
.reveal > *{ opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal > *.visible{ opacity: 1; transform: none; }

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-cta { flex-direction: column; }
  .hero-stats { justify-content: center; }
  .floating-card { display: none; }
  .section { padding: clamp(2rem, 4vw, 4rem) 0; }
  .nav { min-height: 70px; }
  .logo { font-size: 1.125rem; }
  .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
  .hero .lead { font-size: 1.125rem; }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--brand);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.theme-toggle svg {
  transition: all 0.3s ease;
  color: var(--text);
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
  position: absolute;
}

/* Light theme styles */
[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Additional enhancements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced hover effects */
.card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 20, 46, 0.4);
}

.feature-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Improved button states */
.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced focus states */
.btn:focus-visible,
.nav-toggle:focus-visible,
.accordion-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal > *.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Content Pages Styles (Privacy Policy & Terms of Service) */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 1rem 0;
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 0.5rem;
}

.content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 2rem 0 1rem 0;
  color: var(--brand-secondary);
}

.content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.content strong {
  color: var(--brand-secondary);
  font-weight: 600;
}

.content em {
  color: var(--muted);
  font-style: italic;
}

.content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  background: rgba(0, 20, 46, 0.1);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Comparison Table Styles */
.comparison-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--brand);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background: rgba(0, 20, 46, 0.05);
}

/* CTA Section Styles */
.cta-section {
  background: var(--gradient-primary);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
  color: white;
}

.cta-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cta-section .btn {
  background: white;
  color: var(--brand);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for content pages */
@media (max-width: 768px) {
  .content {
    padding: 1rem 0;
  }
  
  .content h1 {
    font-size: 2rem;
  }
  
  .content h2 {
    font-size: 1.5rem;
  }
  
  .content h3 {
    font-size: 1.25rem;
  }
  
  .content p {
    font-size: 1rem;
  }
  
  .content ul, .content ol {
    padding-left: 1.5rem;
  }
  
  .comparison-table {
    margin: 1rem 0;
  }
  
  .comparison-table table {
    font-size: 0.9rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }
  
  .cta-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .cta-section h3 {
    font-size: 1.25rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
}

