:root {
  --navy: #0D2137;
  --teal: #0891B2;
  --green: #059669;
  --amber: #D97706;
  --red: #DC2626;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-body: #1E293B;
  --text-muted: #64748B;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(13, 33, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* Header / Nav */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.logo span.teal {
  color: var(--teal);
}

.logo span.navy {
  color: #fff;
}

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

.nav-links a {
  color: #E2E8F0;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: #077a96;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary:hover {
  background: #16324d;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-ghost:hover {
  background: rgba(8,145,178,0.08);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163A57 100%);
  color: #fff;
  padding: 5rem 1.5rem;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .teal {
  color: var(--teal);
}

.hero p {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin: 0 0 2rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

/* Sections */
section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.1rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid #E2E8F0;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(8,145,178,0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--text-dark);
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Journey steps */
.journey-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.journey-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.journey-step .step-num {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.journey-step h3 {
  margin: 0.1rem 0 0.4rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.journey-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

@media (max-width: 600px) {
  .journey-step {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #E2E8F0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border: 2px solid var(--teal);
  position: relative;
}

.price-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  color: var(--text-dark);
}

.price-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.5rem 0 1.25rem;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.price-card ul li {
  padding: 0.4rem 0;
  color: var(--text-body);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.price-card ul li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--teal);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
}

.cta-band p {
  margin: 0 0 1.75rem;
  color: rgba(255,255,255,0.9);
}

.cta-band .btn-outline {
  border-color: rgba(255,255,255,0.6);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #CBD5E1;
}

/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #E2E8F0;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  color: var(--text-dark);
}

.auth-card .subtitle {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}

.auth-toggle {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-message {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  display: none;
}

.auth-message.show {
  display: block;
}

.auth-message.error {
  background: #FEF2F2;
  color: var(--red);
  border: 1px solid #FECACA;
}

.auth-message.success {
  background: #ECFDF5;
  color: var(--green);
  border: 1px solid #A7F3D0;
}

.auth-message.info {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* Account page */
.account-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.account-header {
  margin-bottom: 2rem;
}

.account-header h1 {
  margin: 0 0 0.25rem;
  color: var(--text-dark);
}

.account-header p {
  color: var(--text-muted);
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge.active {
  background: #ECFDF5;
  color: var(--green);
}

.status-badge.inactive {
  background: #FEF2F2;
  color: var(--red);
}

.status-badge.trial {
  background: #FFFBEB;
  color: var(--amber);
}

.account-section {
  margin-bottom: 1.5rem;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

.spinner.dark {
  border-color: rgba(13,33,55,0.2);
  border-top-color: var(--navy);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links span.nav-divider {
    display: none;
  }
}
