/* ──────────────────────────────────────
   ZYNOCARD — COMPREHENSIVE STYLES
   Dark Mode + Animations + Responsive
   ────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ZynoTech-inspired branding - blue/tech palette */
  --zyno-blue: #1E40AF;
  --zyno-blue-dark: #1E3A8A;
  --zyno-blue-light: #3B82F6;
  --zyno-accent: #10B981;
  --zyno-navy: #0F172A;
  --zyno-light: #F8FAFC;
  --zyno-white: #ffffff;
  --zyno-gray: #64748B;
  --zyno-border: #E2E8F0;

  /* Aliases for easier use */
  --bg: var(--zyno-white);
  --bg-2: var(--zyno-light);
  --text: var(--zyno-navy);
  --muted: var(--zyno-gray);
  --brand: var(--zyno-blue-light);
  --brand-2: var(--zyno-blue-dark);
  --accent: var(--zyno-accent);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-1: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-2: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-3: 0 20px 40px rgba(0,0,0,0.15);
  
  /* Other */
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1280px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0F172A;
  --bg-2: #1E293B;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --zyno-white: #1E293B;
  --zyno-light: #2D3748;
  --zyno-border: #334155;
}

/* ──────────────────────────────────────
   Base
   ────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}
body { 
  background: var(--bg); 
  transition: background 0.3s;
}

/* ──────────────────────────────────────
   Layout
   ────────────────────────────────────── */
.container { max-width: var(--maxw); margin: auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ──────────────────────────────────────
   Section Headings
   ────────────────────────────────────── */
.section-title {
  font-size: clamp(1.75rem, 1rem + 2vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 36px;
  font-size: 1.0625rem;
}

/* ──────────────────────────────────────
   Fuel Control Layout
   ────────────────────────────────────── */
.fuel-control {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.fuel-control__text h2 {
  font-size: clamp(1.75rem, 1rem + 2vw, 2.25rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 12px;
}
.fuel-control__text p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.fuel-control__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
}

@media (max-width: 900px) {
  .fuel-control { grid-template-columns: 1fr; gap: 28px; }
  .fuel-control__image { order: -1; }
}

/* ──────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────── */
.aws-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--zyno-white); border-bottom: 1px solid var(--zyno-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.aws-nav.scrolled { 
  box-shadow: var(--shadow-2); 
  border-bottom-color: rgba(0,0,0,0.15); 
}
.aws-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.aws-nav__logo a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.aws-logo { width: 40px; height: 40px; }
.aws-reinvent {
  background: var(--brand); color: white; padding: 6px 14px;
  border-radius: 6px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.3px;
}
.aws-nav__menu { display: flex; gap: 32px; }
.aws-link {
  color: var(--text); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; transition: color .2s ease;
}
.aws-link:hover { color: var(--brand); }
.aws-link.active { color: var(--brand); }

/* Dropdown (desktop) */
.has-dropdown { position: relative; }
.aws-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 12px; z-index: 1100;
  background: var(--zyno-white); border: 1px solid var(--zyno-border); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: none; min-width: 280px; padding: 16px;
}
.has-dropdown:hover > .aws-dropdown,
.has-dropdown:focus-within > .aws-dropdown { display: block; }
.aws-dropdown__item { 
  display: block; padding: 12px 14px; border-radius: 8px; 
  transition: background .15s ease; text-decoration: none; color: var(--text);
}
.aws-dropdown__item:hover { background: var(--bg-2); color: var(--brand); }

.aws-nav__actions {
  display: flex; align-items: center; gap: 16px;
}
.aws-search { 
  background: none; border: none; cursor: pointer; color: var(--muted);
  transition: color .2s ease;
}
.aws-search:hover { color: var(--brand); }
.aws-signin { 
  color: var(--text); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; transition: color .2s ease;
}
.aws-signin:hover { color: var(--brand); }
.aws-cta {
  background: var(--brand); color: white; padding: 10px 24px;
  border-radius: 8px; font-weight: 700; font-size: 0.9375rem;
  transition: all .2s ease; text-decoration: none; display: inline-block;
}
.aws-cta:hover { 
  background: var(--brand-2); 
  transform: translateY(-1px); 
  box-shadow: var(--shadow-1); 
}

/* Mobile Navigation */
.aws-mobile-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer;
}
.aws-mobile-toggle span { 
  width: 20px; height: 2px; background: var(--text); border-radius: 1px; 
}
.aws-mobile-menu {
  display: flex;
  background: var(--zyno-white);
  flex-direction: column; gap: 12px;
  padding: 0 24px;
  border-top: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(-6px);
  transition: max-height .3s ease, opacity .25s ease, transform .25s ease, padding .2s ease;
}
.aws-mobile-menu[open] {
  max-height: 480px;
  opacity: 1; transform: translateY(0);
  padding: 16px 24px; border-top: 1px solid var(--zyno-border);
}

/* ──────────────────────────────────────
   Buttons & CTAs
   ────────────────────────────────────── */
.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-1);
  transition: all .25s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.cta:hover { 
  background: var(--brand-2); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-2); 
}
.cta:active { transform: translateY(0); box-shadow: var(--shadow-1); }

/* ──────────────────────────────────────
   Hero
   ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white; padding: 120px 24px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 70% 40%, rgba(59,130,246,0.15), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.15; 
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero h1 span {
  color: rgba(255,255,255,0.95);
  display: inline-block;
}
.hero p { 
  font-size: 1.15rem; max-width: 700px; margin: 0 auto 36px; 
  opacity: 0.92; line-height: 1.65; font-weight: 400;
}
.badge {
  background: rgba(255,255,255,0.2); color: white; padding: 6px 14px; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 600; margin: 0 5px 10px 5px; display: inline-block;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
}

/* ──────────────────────────────────────
   Scroll Animations
   ────────────────────────────────────── */
.aws-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.aws-animate { opacity: 1 !important; transform: translateY(0) !important; }

/* ──────────────────────────────────────
   Cards & Grid
   ────────────────────────────────────── */
.grid { 
  display: grid; gap: 28px; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
.grid .card { transition: transform .25s ease, box-shadow .25s ease; }

@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
}

.card, .reg-card {
  background: var(--zyno-white); padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--zyno-border); transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover, .reg-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-2); 
  border-color: var(--brand);
}
.card h3, .reg-card h4 { 
  font-weight: 700; color: var(--text); margin-bottom: 12px; 
  display: flex; align-items: center; gap: 10px; font-size: 1.15rem;
}
.card p, .reg-card p {
  color: var(--muted); line-height: 1.65; font-size: 0.9375rem;
}
.reg-card ul {
  margin-top: 12px;
  padding-left: 20px;
}
.reg-card li {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.reg-card strong {
  color: var(--text);
}
.reg-card em {
  font-style: italic;
  color: var(--brand);
}
.reg-card-icon { 
  width: 56px; height: 56px; 
  background: var(--brand);
  border-radius: 12px; 
  display: flex; align-items: center; justify-content: center; 
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ──────────────────────────────────────
   Journey Section - Desktop Cards
   ────────────────────────────────────── */
.journey-section {
  background: var(--zyno-white);
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: var(--shadow-2);
}

.journey-step {
  margin-bottom: 80px;
  position: relative;
}
.journey-step:last-child {
  margin-bottom: 0;
}
.journey-step > h3 {
  font-size: 32px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--zyno-border);
  display: flex;
  align-items: center;
}
.journey-step > h3::before {
  content: '';
  width: 60px;
  height: 60px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  color: white;
  font-size: 28px;
  font-weight: bold;
}

/* Step Number Badges */
.journey-step:nth-child(2) > h3::before { content: '1'; }
.journey-step:nth-child(3) > h3::before { content: '2'; }
.journey-step:nth-child(4) > h3::before { content: '3'; }
.journey-step:nth-child(5) > h3::before { content: '4'; }
.journey-step:nth-child(6) > h3::before { content: '5'; }
.journey-step:nth-child(7) > h3::before { content: '6'; }
.journey-step:nth-child(8) > h3::before { content: '7'; }
.journey-step:nth-child(9) > h3::before { content: '8'; }

.registration-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .registration-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .registration-cards {
    gap: 24px;
  }
}

/* ──────────────────────────────────────
   Journey Container (Alternative Style)
   ────────────────────────────────────── */
.journey-container {
  width: 100%;
  max-width: 1000px;
  background: var(--zyno-white);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  padding: 60px 40px;
  text-align: center;
  margin: 40px auto;
}

.journey-container h1 {
  font-size: 42px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
}

.journey-container .subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 40px;
}

/* Progress Bar (for step-by-step journey) */
.progress-bar {
  background: var(--zyno-border);
  height: 8px;
  border-radius: 4px;
  margin-bottom: 50px;
  overflow: hidden;
}
.progress {
  height: 8px;
  background: var(--brand);
  width: 0%;
  transition: width 0.6s ease;
}

/* Steps (for step-by-step journey) */
.step {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(20px);
}
.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.step h2 {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 20px;
}
.step ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}
.step li {
  font-size: 17px;
  color: var(--muted);
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}
.step li::before {
  content: "✓";
  color: var(--brand);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Controls (for step-by-step journey) */
.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}
.controls button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.controls button:hover {
  background: var(--brand-2);
}
.controls button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Step Counter (for step-by-step journey) */
.step-counter {
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* ──────────────────────────────────────
   Accordion (Mobile Journey)
   ────────────────────────────────────── */
.accordion { display: none; }
details { 
  border: 1px solid var(--zyno-border); 
  border-radius: var(--radius-lg); 
  margin-bottom: 12px; 
  overflow: hidden; 
  background: var(--zyno-white);
  box-shadow: var(--shadow-sm); 
  transition: all .2s ease;
}
details:hover { border-color: var(--brand); }
details[open] { 
  box-shadow: var(--shadow-1); 
  border-color: var(--brand); 
}
summary { 
  padding: 20px 24px; 
  font-weight: 600; 
  color: var(--text); 
  cursor: pointer; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after { 
  content: "+"; 
  color: var(--brand); 
  font-size: 24px; 
  font-weight: 400; 
  line-height: 1;
  transition: transform 0.3s ease;
}
details[open] summary::after { 
  content: "−"; 
  transform: rotate(180deg);
}
summary:hover {
  background: var(--bg-2);
}
details p, details ul { 
  padding: 0 24px 20px; 
  color: var(--muted); 
  line-height: 1.65; 
  font-size: 0.9375rem; 
}
details ul {
  padding-left: 44px;
}
details li {
  margin-bottom: 8px;
  color: var(--muted);
}
details strong {
  color: var(--text);
}
details em {
  font-style: italic;
  color: var(--brand);
}

/* ──────────────────────────────────────
   Dark Mode Toggle
   ────────────────────────────────────── */
.theme-toggle {
  position: fixed; bottom: 88px; right: 24px; z-index: 1000;
  background: var(--zyno-white); border: 1px solid var(--zyno-border);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); transition: all 0.3s ease;
}
.theme-toggle:hover {
  transform: scale(1.08); border-color: var(--brand); box-shadow: var(--shadow-3);
}
.theme-toggle svg { 
  width: 20px; height: 20px; 
  stroke: var(--text); 
  transition: stroke .2s ease; 
}
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ──────────────────────────────────────
   Footer
   ────────────────────────────────────── */
footer {
  background: var(--zyno-navy); color: rgba(255,255,255,0.75); 
  padding: 72px 24px 32px; font-size: 0.9375rem;
}
.brand { 
  display: inline-flex; align-items: center; gap: 12px; 
  font-weight: 800; color: white; font-size: 1.2rem; 
}
.brand .logo { 
  width: 36px; height: 36px; border-radius: 8px; 
  background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 0.9rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(30,64,175,0.4);
}
footer a { 
  color: rgba(255,255,255,0.85); 
  text-decoration: none; 
  transition: color .2s ease; 
}
footer a:hover { color: var(--accent); }
footer .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
  max-width: var(--maxw); margin: 0 auto;
}
footer strong { 
  color: white; display: block; margin-bottom: 14px; 
  font-weight: 700; font-size: 1rem; 
}

/* Back to top button */
#backToTop {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: white;
  border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { 
  background: var(--brand-2); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-3); 
}

/* ──────────────────────────────────────
   Responsive
   ────────────────────────────────────── */
@media (max-width: 992px) {
  .aws-nav__menu, .aws-nav__actions { display: none; }
  .aws-mobile-toggle { display: flex; }
  .aws-dropdown { display: none !important; }
}

@media (max-width: 768px) {
  /* Journey switches to accordion on mobile */
  .registration-cards { display: none; }
  .accordion { display: block; }
  
  /* Journey section mobile adjustments */
  .journey-section {
    padding: 40px 24px;
  }
  .section-title {
    font-size: 36px;
  }
  .section-sub {
    font-size: 18px;
    margin-bottom: 40px;
  }
  .journey-step {
    margin-bottom: 60px;
  }
  .journey-step > h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .journey-step > h3::before {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    font-size: 22px;
  }
  
  /* Journey container mobile */
  .journey-container { 
    padding: 40px 24px; 
  }
  .journey-container h1 { 
    font-size: 32px; 
  }
  .step h2 { 
    font-size: 26px; 
  }
}

@media (min-width: 769px) {
  /* Show cards on desktop */
  .registration-cards {
    display: grid;
  }
  /* Hide accordion on desktop */
  .accordion {
    display: none;
  }
}