:root{
  --bg:#ffffff;
  --card:#f8fafc;
  --brand:#0b4fff;
  --brand-2:#00d4ff;
  --text:#1e293b;
  --muted:#64748b;
  --ring:rgba(11,79,255,.35);
  --ok:#22c55e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: var(--text);
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(11,79,255,.25);
  transition: .2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11,79,255,.35);
}

.btn.ghost {
  background: transparent;
  border-color: #e2e8f0;
  color: var(--text);
}

.btn.ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn.disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn.clickable {
  opacity: .6;
}

.btn.disabled:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(11,79,255,.25);
}

/* Chip */
.chip {
  display: inline-block;
  padding: .25rem .6rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: .78rem;
  color: var(--muted);
  background: #f1f5f9;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
}

.brand .logo {
  height: 72px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: .2s;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .2s;
  z-index: 50;
  padding: .5rem 0;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: .7rem 1.2rem;
  color: var(--text) !important;
  border-bottom: none !important;
}

.dropdown-content a:hover {
  background: #f1f5f9;
  color: var(--brand) !important;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.cols-2 {
  grid-template-columns: 1.1fr .9fr;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 900;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-art {
  position: relative;
  isolation: isolate;
}

.glass {
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.01));
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
  text-align: center;
}

.section .muted {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  transition: .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  border: 1px solid rgba(0,0,0,.06);
}

/* How it works */
.how {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step {
  position: relative;
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
  text-align: center;
  transition: .2s;
  background: #ffffff;
}

.step:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.step:before {
  content: attr(data-step);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .7rem;
  box-shadow: 0 6px 16px rgba(11,79,255,.35);
}

/* CTA and Badges */
.cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badges {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: .55rem .8rem;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.badge img {
  width: 22px;
  height: 22px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: white;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(0,0,0,.12);
}

.blog-card-img {
  background: linear-gradient(145deg, #eef2f6, #d9e0e8);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #1e293b80;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.blog-card-content {
  padding: 1.5rem 1.5rem 1.8rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.blog-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.blog-link {
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-link:hover {
  text-decoration: underline;
}

.blog-link:after {
  content: "→";
  transition: transform 0.2s;
}

.blog-link:hover:after {
  transform: translateX(4px);
}

/* Forms */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: 0.95rem;
}

.input, textarea.input {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
}

textarea.input {
  min-height: 140px;
}

.input:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}

/* FAQ */
.faq {
  display: grid;
  gap: .5rem;
  max-width: 800px;
  margin: 0 auto;
}

details {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 1.2rem;
  background: #ffffff;
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

details:hover {
  border-color: rgba(0,0,0,.15);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0;
}

details[open] summary {
  margin-bottom: .8rem;
  color: var(--brand);
}

details[open] {
  border-color: var(--brand);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--muted);
  background: #f8fafc;
}

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

.footer .brand {
  margin-bottom: 1rem;
  color: var(--text);
}

.footer a {
  color: var(--muted);
  transition: .2s;
}

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

.small {
  font-size: .86rem;
}

/* Page Header */
.page-header {
  padding: 3rem 0 1rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 .5rem;
}

.nav-links a.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

.desktop-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* Mobile Menu Button - hidden by default */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--text, #1e293b);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
  display: none; /* Hidden by default */
  position: absolute; /* Changed from fixed */
  top: 100%; /* Position right below header */
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  flex-direction: column;
  gap: 1px;
  z-index: 99;
  border-top: 1px solid var(--border, #e2e8f0);
}

.mobile-nav.show {
  display: flex !important; /* Show when toggled */
}

.mobile-nav a {
  color: var(--text, #1e293b);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--light-bg, #f8fafc);
  color: var(--brand, #0b4fff);
}

.mobile-nav a.btn {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  text-align: center;
}

/* Hamburger animation when open */
.mobile-menu-btn.open span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive breakpoint */
@media (max-width: 980px) {
  .desktop-nav {
    display: none; /* Hide desktop nav */
  }
  
  .mobile-menu-btn {
    display: flex; /* Show hamburger button */
  }
}

@media (min-width: 981px) {
  .mobile-nav {
    display: none !important; /* Hide mobile nav on desktop */
  }
}


/* Responsive */

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .footer .cols {
    grid-template-columns: 1fr;
  }
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .badge {
    justify-content: center;
  }
}

/* Mobile hero */
@media (max-width: 768px) {
  .hero .container.grid.cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .hero-art .glass {
    display: flex !important;
    flex-direction: column;
    gap: 1rem !important;
    padding: 1rem !important;
    align-items: center;
  }
  
  .hero-art iframe {
    width: 60% !important;
    height: 520px !important;
    min-height: 480px !important;
    border-radius: 20px !important;
    aspect-ratio: 9/16;
    object-fit: contain;
  }
  
  .hero-art .glass > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }
  
  .hero-art .glass > div:last-child .badge {
    flex: 1 !important;
    margin-top: 0 !important;
    padding: 0.7rem 0.4rem !important;
    font-size: 0.75rem !important;
    border-radius: 10px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3rem !important;
  }
  
  .hero-art .glass > div:last-child .badge img {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-art .glass {
    padding: 0.5rem !important;
  }
  
  .hero-art iframe {
    width: 70% !important;
    height: 480px !important;
    min-height: 450px !important;
  }
}

@media (max-width: 360px) {
  .hero-art iframe {
    width: 75% !important;
    height: 450px !important;
  }
}