:root {
  --bg: #f6f3ee;
  --bg-soft: #ffffff;
  --bg-contrast: #ebe6dc;
  --panel: #ffffff;
  --panel-2: #f4efe6;
  --text: #1b1f1e;
  --muted: #4a5651;
  --accent: #f47f2a;
  --accent-2: #2aa7a1;
  --accent-3: #f2c14e;
  --line: #d9d3c8;
  --success: #3fbf7f;
  --danger: #e05858;
  --shadow: 0 20px 60px rgba(18, 24, 22, 0.12);
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 4px;
  --max-w: 1180px;
  --font-head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(244, 127, 42, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(42, 167, 161, 0.16), transparent 55%),
    linear-gradient(180deg, #fbf8f3 0%, #f6f3ee 40%, #f0ebe2 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

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

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

.container {
  width: min(92vw, var(--max-w));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

main > .section:first-of-type {
  padding-top: 0;
}

.section-tight {
  padding: 60px 0;
}

.bg-image {
  position: relative;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.bg-image > .container {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 16px;
  line-height: 1.1;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent-3);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  padding: 14px 26px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #ff9c5a);
  color: #111;
  box-shadow: 0 12px 30px rgba(244, 127, 42, 0.35);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(5, 9, 8, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(244, 127, 42, 0.5);
  animation: btn-glow 0.6s ease-out forwards;
}

@keyframes btn-glow {
  0% { box-shadow: 0 16px 36px rgba(244, 127, 42, 0.4); }
  50% { box-shadow: 0 20px 48px rgba(244, 127, 42, 0.55); }
  100% { box-shadow: 0 18px 40px rgba(244, 127, 42, 0.5); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(252, 249, 244, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #101411;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  position: relative;
  transition: color 250ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 250ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4.1rem);
}

.hero p {
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 230, 0.95));
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 10%, rgba(244, 127, 42, 0.2), transparent 70%);
  pointer-events: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.kpi {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.kpi strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-item {
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 230, 0.95));
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(2, 6, 5, 0.55);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.step {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(244, 127, 42, 0.2);
  color: var(--accent-3);
  font-weight: 700;
  margin-bottom: 12px;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.role-tab {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.role-tab.active {
  background: rgba(244, 127, 42, 0.2);
  color: var(--text);
  border-color: rgba(244, 127, 42, 0.4);
}

.role-panel {
  display: none;
}

.role-panel.active {
  display: block;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.dashboard-preview {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-preview .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.badge {
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(42, 167, 161, 0.2);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.8rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.preview-tile {
  background: rgba(250, 247, 242, 0.95);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--line);
  min-height: 80px;
}

.preview-tile strong {
  display: block;
  margin-bottom: 6px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: rgba(244, 127, 42, 0.18);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-3);
}

.sbe-section {
  background: linear-gradient(120deg, rgba(42, 167, 161, 0.18), rgba(244, 127, 42, 0.12));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.sbe-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.diagram-step {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.diagram-step::after {
  content: "\2192";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-3);
  font-size: 1.2rem;
}

.diagram-step:last-child::after {
  content: "";
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
}

.pricing-card.highlight {
  border-color: rgba(244, 127, 42, 0.5);
  box-shadow: 0 30px 60px rgba(244, 127, 42, 0.15);
}

.price {
  font-size: 2.4rem;
  font-family: var(--font-head);
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(244, 127, 42, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.video-placeholder {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 230, 0.95));
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 2px solid rgba(244, 127, 42, 0.6);
  display: grid;
  place-items: center;
  margin: 16px auto;
}

.form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  color: var(--text);
}

input, textarea, select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(244, 127, 42, 0.4);
  border-color: transparent;
}

.error-text {
  color: var(--danger);
  font-size: 0.85rem;
}

.form-status {
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 600;
}

.form-status.success {
  background: rgba(63, 191, 127, 0.2);
  color: #9ae5c1;
  border: 1px solid rgba(63, 191, 127, 0.35);
}

.form-status.error {
  background: rgba(224, 88, 88, 0.2);
  color: #ffb0b0;
  border: 1px solid rgba(224, 88, 88, 0.35);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.img-credit {
  font-size: 0.78rem;
  color: rgba(74, 86, 81, 0.75);
}

.cta-band {
  background: linear-gradient(120deg, rgba(244, 127, 42, 0.2), rgba(42, 167, 161, 0.2));
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger > * {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.in-view > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in-view > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in-view > *:nth-child(3) { transition-delay: 160ms; }
.stagger.in-view > *:nth-child(4) { transition-delay: 240ms; }
.stagger.in-view > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in-view > *:nth-child(6) { transition-delay: 400ms; }
.stagger.in-view > *:nth-child(7) { transition-delay: 480ms; }
.stagger.in-view > *:nth-child(8) { transition-delay: 560ms; }
.stagger.in-view > *:nth-child(9) { transition-delay: 640ms; }

@media (max-width: 960px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .diagram-step::after {
    display: none;
  }
}
