:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-strong: #f0f6ff;
  --line: #dbe8fb;
  --text: #0f172a;
  --muted: #526278;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --accent-dark: #059669;
  --glow: rgba(37, 99, 235, 0.25);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #fafdff 0%, var(--bg) 36%, #eef5ff 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  z-index: -2;
}

.orb-a {
  width: 350px;
  height: 350px;
  left: -90px;
  top: -120px;
  background: rgba(37, 99, 235, 0.22);
}

.orb-b {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -20px;
  background: rgba(16, 185, 129, 0.2);
}

.site-header {
  width: min(1200px, calc(100% - 28px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, white);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 10px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 23px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f2f8ff;
  object-fit: contain;
  padding: 3px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
}

.portal-main {
  width: min(1200px, calc(100% - 28px));
  margin: 20px auto 54px;
  display: grid;
  gap: 20px;
}

.hero {
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--line) 80%, white);
  background:
    radial-gradient(circle at 76% 18%, rgba(37, 99, 235, 0.18), transparent 44%),
    linear-gradient(135deg, #ffffff 0%, #f5f9ff 56%, #eef5ff 100%);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -72px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #244e9d;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(34px, 5.3vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  margin: 14px 0 0;
  max-width: 58ch;
  line-height: 1.65;
  color: var(--muted);
  font-size: clamp(15px, 2.1vw, 18px);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  color: #3f5270;
  font-size: 13px;
  font-weight: 700;
}

.hero-showcase {
  position: relative;
  min-height: 280px;
}

.showcase-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.card-main {
  padding: 20px;
  max-width: 390px;
}

.card-main h3 {
  margin: 8px 0 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.card-main ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.card-main li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  background: var(--surface);
}

.card-main li span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.card-main li strong {
  font-size: 16px;
  font-family: "Outfit", "Manrope", sans-serif;
}

.card-float {
  position: absolute;
  padding: 14px;
  width: min(240px, 70%);
}

.card-a {
  right: 0;
  top: 24px;
}

.card-b {
  right: 30px;
  bottom: 0;
}

.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 800;
  color: #56709e;
}

.card-float strong {
  margin-top: 8px;
  display: block;
  font-size: 20px;
  font-family: "Outfit", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.card-float small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 600;
}

.stats-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-strip article {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.stats-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.stats-strip strong {
  display: block;
  margin-top: 8px;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section {
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 19ch;
}

.section-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.feature-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 8px 0 0;
  line-height: 1.58;
  color: var(--muted);
}

.flow-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.flow-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  padding: 16px;
}

.flow-step {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
}

.flow-card h3 {
  margin: 10px 0 0;
  font-size: 24px;
  font-family: "Outfit", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.flow-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.pricing-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.price-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 16px;
  min-height: 206px;
  display: grid;
  align-content: start;
  gap: 10px;
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--primary) 46%, var(--line));
  background: linear-gradient(165deg, #ffffff 0%, #edf4ff 100%);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.2);
}

.price-card.compact {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: linear-gradient(165deg, #ffffff 0%, #f0fffa 100%);
}

.featured-badge {
  margin: 0;
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
}

.plan-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.plan-price {
  margin: 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.plan-price::after {
  content: " EUR";
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  margin-left: 6px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.plan-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto 34px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-footer strong {
  display: block;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer small {
  color: #667791;
  font-weight: 600;
}

.btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

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

.btn-login {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary) 0%, #3073ef 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.btn-login:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2d67d8 100%);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary) 0%, #3073ef 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2d67d8 100%);
}

.btn-secondary {
  color: #18396b;
  background: rgba(255, 255, 255, 0.94);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
}

.btn-secondary:hover {
  background: #eef4ff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.delay-1 {
  transition-delay: 90ms;
}

.reveal.delay-2 {
  transition-delay: 180ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.interactive-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.interactive-card:hover {
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.14);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--line));
}

@media (min-width: 860px) {
  .site-nav {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: end;
    padding: 38px 34px;
  }

  .stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section {
    padding: 28px 24px;
  }
}

@media (max-width: 859px) {
  .site-header {
    padding: 10px;
    top: 8px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .btn-login {
    min-height: 42px;
    padding: 9px 13px;
  }

  .hero {
    padding: 24px 18px;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .hero-showcase {
    min-height: 320px;
  }

  .card-main {
    max-width: 100%;
  }

  .card-float {
    width: min(240px, 72%);
  }

  .card-a {
    top: auto;
    bottom: 82px;
    right: 0;
  }

  .card-b {
    right: 18px;
    bottom: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
