/* ===================================================
   KlevelAI Ecosystem Design System — KlevelTone
   Palette v2 (etalon 768ee92f)
   Source: KlevelFunnel globals.css
   =================================================== */

:root {
  /* KlevelAI Ecosystem Palette */
  --clr-dark: #1B1B1B;
  --clr-gray-900: #1a1d26;
  --clr-gray-700: #4a4f5c;
  --clr-gray-600: #6b7280;
  --clr-gray-500: #9ca3af;
  --clr-gray-400: #bcc1cb;
  --clr-gray-300: #d1d5db;
  --clr-gray-200: #e5e7eb;
  --clr-gray-100: #f3f4f6;
  --color-cream: #FAF9F6;

  --gradient-brand: linear-gradient(135deg, #FC4D07 0%, #FB140A 20%, #FB0750 40%, #FA06C7 60%, #C509F6 80%, #460AFB 100%);
  --gradient-brand-h: linear-gradient(90deg, #FC4D07 0%, #FB140A 20%, #FB0750 40%, #FA06C7 60%, #C509F6 80%, #460AFB 100%);

  /* Terracotta accent */
  --clr-accent: #C85D44;
  --clr-accent-hover: #B44C36;

  /* Spacing (8px grid) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 40px; --space-8: 48px; --space-9: 56px;
  --space-10: 64px; --space-12: 80px; --space-16: 128px;

  /* Radius */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-cream);
  color: var(--clr-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Brand gradient text ===== */
.text-gradient-brand {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Transparent navbar ===== */
.navbar-ecosystem {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 24px;
}

@media (min-width: 768px) {
  .navbar-ecosystem { padding: 16px 48px; }
}

.navbar-ecosystem.navbar-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-logo img { height: 28px; width: auto; }
.navbar-logo-suffix { font-weight: 700; font-size: 1.25rem; color: var(--clr-dark); }

.navbar-contacts {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .navbar-contacts { display: flex; }
}

.navbar-contacts a {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.navbar-contacts a:hover { color: var(--clr-accent); }

.navbar-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.navbar-burger:hover { background: rgba(0, 0, 0, 0.05); }
.navbar-burger svg { width: 24px; height: 24px; }

/* Burger menu panel */
.burger-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 24px;
  margin-top: 8px;
  width: calc(100% - 48px);
  max-width: 480px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

@media (min-width: 768px) {
  .burger-panel { right: 48px; }
}

.burger-panel.open { display: block; }

.burger-section { margin-bottom: 40px; }
.burger-section:last-child { margin-bottom: 0; }

.burger-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

/* Account card in burger */
.burger-account {
  background: var(--color-cream);
  padding: 24px;
  border-radius: 24px;
  margin-bottom: 40px;
}

.burger-account-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.burger-account-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger-account-avatar {
  width: 40px; height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.burger-account-email {
  font-size: 0.875rem;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.burger-account-balance-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.4;
  margin-bottom: 4px;
}

.burger-account-balance-value {
  font-weight: 800;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.burger-account-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.burger-account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s;
}
.burger-account-link:hover { border-color: var(--clr-accent); }

/* Product links in burger */
.burger-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 0;
}

.burger-products a {
  font-weight: 700;
  transition: color 0.2s;
}
.burger-products a:hover { color: var(--clr-accent); }

/* Ecosystem pills in burger */
.ecosystem-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ecosystem-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.ecosystem-pill:hover {
  background: var(--clr-dark);
  color: white;
  border-color: var(--clr-dark);
}
.ecosystem-pill.current {
  background: var(--clr-accent);
  color: white;
  border-color: var(--clr-accent);
  cursor: default;
}

/* Auth buttons in burger */
.burger-auth {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.burger-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
.burger-logout:hover { text-decoration: underline; }

.burger-login-btn {
  display: block;
  width: 100%;
  background: var(--clr-accent);
  color: white;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  transition: transform 0.2s;
  margin-bottom: 12px;
}
.burger-login-btn:hover { transform: scale(1.02); }

.burger-register-btn {
  display: block;
  width: 100%;
  border: 2px solid var(--clr-dark);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  transition: all 0.2s;
}
.burger-register-btn:hover {
  background: var(--clr-dark);
  color: white;
}

/* ===== Section header ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--clr-gray-600);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ===== Auth container ===== */
.auth-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  padding: 80px 24px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
}

/* ===== Gradient top border for cards ===== */
.card-gradient-border {
  position: relative;
  overflow: hidden;
}
.card-gradient-border::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand-h);
  border-radius: 24px 24px 0 0;
}

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

.fade-in-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.fade-in-up-1 { animation-delay: 0.1s; }
.fade-in-up-2 { animation-delay: 0.2s; }
.fade-in-up-3 { animation-delay: 0.3s; }

/* ===== Noise overlay ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 99;
}

/* ===== Reveal on scroll ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Sticky bottom CTA ===== */
.bottom-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bottom-cta.visible { transform: translateY(0); }

.bottom-cta-inner {
  background: var(--clr-dark);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
  max-width: 480px;
  width: 100%;
}

@media (min-width: 768px) {
  .bottom-cta { padding: 24px; }
  .bottom-cta-inner { width: auto; }
}

.bottom-cta-text {
  display: none;
}

@media (min-width: 768px) {
  .bottom-cta-text { display: block; }
}

.bottom-cta-text small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 2px;
}

.bottom-cta-text span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--clr-dark);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero:hover {
  background: var(--clr-accent);
  transform: scale(1.05);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--clr-accent);
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-accent:hover { background: var(--clr-accent-hover); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--clr-dark);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 2px solid var(--clr-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--clr-dark);
  color: white;
}

/* ===== Footer ===== */
.ecosystem-footer {
  background: var(--clr-dark);
  color: white;
  padding: 96px 24px 48px;
}

@media (min-width: 768px) {
  .ecosystem-footer { padding: 96px 96px 48px; }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 64px; }
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 16px; }

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: white; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-description {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  line-height: 1.7;
}

.footer-ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.footer-ecosystem-grid a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.footer-ecosystem-grid a:hover { color: white; }
.footer-ecosystem-grid a.current { color: var(--clr-accent); }

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: white; }
.footer-contact-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-legal-links { justify-content: flex-end; }
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: white; }

/* ===== Floating card ===== */
.floating-card {
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 25px 50px -12px rgba(27, 27, 27, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 60px -15px rgba(27, 27, 27, 0.12);
}

/* ===== Container ===== */
.container-narrow { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

@media (min-width: 768px) {
  .container-narrow { padding: 0 96px; }
}

/* ===== Form styles ===== */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--clr-gray-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(200, 93, 68, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--clr-dark);
}

.form-group { margin-bottom: 20px; }

/* ===== Flash messages ===== */
.flash-message {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-weight: 500;
}
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Landing page (from etalon 919af85c) ===== */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 24px 80px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 128px 96px 80px; } }

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-kicker {
  color: var(--clr-accent);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-title .accent { color: var(--clr-accent); }

.hero-description {
  font-size: 1.25rem;
  color: rgba(27, 27, 27, 0.7);
  line-height: 1.7;
  max-width: 540px;
}
@media (min-width: 768px) { .hero-description { font-size: 1.5rem; } }

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; align-items: center; } }

.hero-price-note {
  font-size: 0.875rem;
  color: rgba(27, 27, 27, 0.4);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  display: none;
}
@media (min-width: 1024px) { .hero-visual { display: block; } }

.hero-mockup {
  background: white;
  padding: 16px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: rotate(2deg);
  position: relative;
  z-index: 10;
}

.hero-mockup-inner {
  border-radius: 32px;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-cream) 0%, #e8e4de 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-badge {
  position: absolute;
  bottom: -40px;
  left: -40px;
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: rotate(-3deg);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 93, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
}

.hero-badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-gray-400);
  text-transform: uppercase;
}

.hero-badge-value {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Badges / pills */
.badge-pill {
  background: rgba(27, 27, 27, 0.05);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pill-dark {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-accent {
  display: inline-block;
  background: rgba(200, 93, 68, 0.1);
  color: var(--clr-accent);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Sections */
.section-padded {
  padding: 128px 24px;
}
@media (min-width: 768px) { .section-padded { padding: 128px 96px; } }

.section-white { background: white; }
.section-cream { background: var(--color-cream); }

.section-dark {
  padding: 128px 24px;
  background: var(--clr-dark);
  color: white;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) { .section-dark { padding: 128px 96px; } }

.section-compact {
  padding: 80px 24px;
}
@media (min-width: 768px) { .section-compact { padding: 80px 96px; } }

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

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

/* Section header */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-title-large {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-subtitle {
  font-size: 1.25rem;
  color: rgba(27, 27, 27, 0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle-light {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* Grid layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) { .grid-2col { grid-template-columns: 1fr 1fr; gap: 80px; } }

.grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .grid-3col { grid-template-columns: 1fr 1fr 1fr; } }

.grid-report {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) { .grid-report { grid-template-columns: 1fr 2fr; } }

.grid-report-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .grid-report-details { grid-template-columns: 1fr 1fr; } }

/* Report fragment cards */
.score-card {
  background: var(--color-cream);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.score-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-accent);
}

.score-value small {
  font-size: 1.25rem;
  opacity: 0.3;
}

.metric-row {
  margin-bottom: 16px;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 8px;
}

.metric-bar {
  height: 8px;
  width: 100%;
  background: var(--clr-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.metric-bar-fill.accent { background: var(--clr-accent); }
.metric-bar-fill.amber { background: #E5A443; }

.bottleneck-card {
  padding: 24px;
  background: var(--clr-dark);
  color: white;
  border-radius: 24px;
}

.bottleneck-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.analysis-card {
  background: white;
  padding: 32px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}
@media (min-width: 768px) { .analysis-card { padding: 48px; } }

.analysis-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.alert-card {
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.alert-card.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.alert-card.danger h4 { color: #dc2626; }
.alert-card.danger p { color: #7f1d1d; }

.alert-card.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.alert-card.info h4 { color: #2563eb; }
.alert-card.info p { color: #1e3a5f; }

.alert-card h4 {
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.rec-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(27, 27, 27, 0.4);
  margin-bottom: 24px;
}

.rec-list { list-style: none; }

.rec-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.rec-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-item p { font-size: 0.875rem; line-height: 1.6; }

/* Benefit card */
.benefit-card {
  background: white;
  padding: 48px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 25px 50px -12px rgba(27, 27, 27, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -15px rgba(27, 27, 27, 0.12);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--clr-accent);
  margin-bottom: 32px;
  display: block;
  width: 48px;
  height: 48px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefit-card p {
  color: rgba(27, 27, 27, 0.6);
  line-height: 1.7;
}

/* Upload zone (dark section) */
.upload-zone-dark {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.upload-zone-dark:hover { border-color: var(--clr-accent); }

/* Pricing callout */
.pricing-callout {
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 48px;
  padding: 32px;
  text-align: center;
}
@media (min-width: 768px) { .pricing-callout { padding: 80px; } }

.pricing-amount {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Trust / quote */
.trust-quote {
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(27, 27, 27, 0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .trust-quote { font-size: 1.875rem; } }

/* Final CTA */
.final-cta-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 48px;
}

.final-cta-title .accent { color: var(--clr-accent); }

.btn-hero-xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 64px;
  background: var(--clr-dark);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 768px) { .btn-hero-xl { width: auto; } }
.btn-hero-xl:hover { background: var(--clr-accent); transform: scale(1.05); }

.cta-subtext {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(27, 27, 27, 0.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}
@media (min-width: 768px) { .cta-subtext { flex-direction: row; gap: 32px; } }

.cta-subtext span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nuances */
.nuances {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(27, 27, 27, 0.5);
  line-height: 1.7;
}

.nuances p { margin-bottom: 16px; }

/* Icon placeholder (SVG inline replacement for iconify) */
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; flex-shrink: 0; }
.icon-lg { width: 48px; height: 48px; flex-shrink: 0; }
.icon-xl { width: 64px; height: 64px; }
.icon-accent { color: var(--clr-accent); }

/* Upload form (logged-in) */
.upload-form {
  padding: 128px 24px 80px;
}
@media (min-width: 768px) { .upload-form { padding: 128px 96px 80px; } }

.upload-form-inner {
  max-width: 720px;
  margin: 0 auto;
}

.upload-form-card {
  background: white;
  padding: 32px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 25px 50px -12px rgba(27, 27, 27, 0.08);
}
@media (min-width: 768px) { .upload-form-card { padding: 48px; } }

.upload-dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-dropzone:hover { border-color: var(--clr-accent); }

.form-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(27, 27, 27, 0.4);
  margin-bottom: 8px;
  display: block;
}

.form-field-input {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  background: white;
  transition: border-color 0.2s;
}

.form-field-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(200, 93, 68, 0.1);
}

/* ===== Bootstrap-compatible utilities for legacy templates ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0 80px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-lg-10, .col-lg-8, .col-md-8, .col-md-6, .col-md-4 { padding: 0 12px; width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.667%; }
}
@media (min-width: 1024px) {
  .col-lg-8 { width: 66.667%; }
  .col-lg-10 { width: 83.333%; }
}
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 16px; }
.align-items-center { align-items: center; }
.fw-700, .fw-bold { font-weight: 700; }
.text-muted { color: var(--clr-gray-500); }
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-subtitle {
  font-size: 1.125rem;
  color: var(--clr-gray-600);
  line-height: 1.7;
}
.modern-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 24px;
  margin-bottom: 16px;
}
.text-gradient {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
