:root {
  --navy: #0A1F4D;
  --navy-dark: #061432;
  --teal: #00B4BB;
  --teal-dark: #0098A0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --shadow: 0 4px 24px rgba(10, 31, 77, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 96px;
  height: 96px;
  animation: pulse 1.2s ease-in-out infinite;
}
.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--teal);
  animation: load 1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
@keyframes load { 0% { left: -40%; } 100% { left: 100%; } }

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,31,77,0.06);
  z-index: 100;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo img { width: 40px; height: 40px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--teal); }
.nav-auth { display: flex; gap: 12px; margin-left: 12px; }

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-primary.large, .btn-outline.large { padding: 14px 28px; font-size: 1.05rem; }
.btn-primary.full { width: 100%; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-icon {
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,180,187,0.15));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Sections */
.section-title { text-align: center; font-size: 2.2rem; color: var(--navy); margin-bottom: 48px; }
.features-preview { padding: 80px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(10,31,77,0.12); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { color: var(--navy); margin-bottom: 8px; }

.cta {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.cta h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta p { opacity: 0.9; margin-bottom: 28px; }

.page-content { padding: 60px 0 80px; }
.page-content h1 { font-size: 2.5rem; color: var(--navy); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 40px; }
.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.price-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.price-card.featured { border: 2px solid var(--teal); transform: scale(1.03); }
.price { font-size: 2.8rem; font-weight: 700; color: var(--navy); margin: 16px 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 24px 0; text-align: left; }
.price-card li { padding: 8px 0; border-bottom: 1px solid #eee; }

.contact-form, .auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
label { font-weight: 500; color: var(--navy); }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  margin-top: 4px;
}
input:focus, textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 72px); }
.auth-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(420px, 100%);
  text-align: center;
}
.auth-logo { width: 64px; margin-bottom: 16px; }
.auth-card h1 { margin-bottom: 24px; color: var(--navy); }
.auth-card p { margin-top: 20px; font-size: 0.95rem; }

.error-page { text-align: center; padding: 80px 20px; }
.error-logo { width: 120px; margin-bottom: 20px; }
.error-page h1 { font-size: 6rem; color: var(--teal); line-height: 1; }

footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 40px 0 24px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-weight: 600; color: white; }
.footer-brand img { width: 32px; }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Mobile */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid #f1f5f9; }
  .nav-auth { flex-direction: column; margin: 16px 0 0; gap: 10px; }
  .nav-auth a { text-align: center; }
  .price-card.featured { transform: none; }
}

@media (max-width: 600px) {
  .header .container { height: 64px; }
  .logo span { font-size: 1.1rem; }
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
}

.error { background: #fef2f2; color: #dc2626; padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.success { background: #f0fdf4; color: #059669; padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.profile-card { display: flex; gap: 24px; align-items: center; background: white; padding: 32px; border-radius: 12px; box-shadow: var(--shadow); max-width: 640px; }
.profile-avatar { width: 80px; height: 80px; }
@media (max-width: 600px) { .profile-card { flex-direction: column; text-align: center; } }
