:root {
  --bg: #030712;
  --bg-2: #0b1230;
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --glass: rgba(15, 23, 42, 0.55);
  --border: rgba(148, 163, 184, 0.18);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 75% 50%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(124, 58, 237, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 3.5vh, 48px) clamp(20px, 6vw, 96px);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px -4px rgba(59, 130, 246, 0.6);
}

.brand__logo img {
  display: block;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
}

.lang-switch button {
  min-width: 42px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 660px;
  padding: clamp(16px, 4vh, 48px) 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 0 clamp(14px, 2.8vh, 24px);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, min(5.2vw, 7.6vh), 4.4rem);
  line-height: 1.04;
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.accent {
  background: linear-gradient(90deg, var(--brand-2), var(--violet) 55%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}

.lead {
  margin: clamp(14px, 2.8vh, 24px) 0 clamp(20px, 4vh, 36px);
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

/* Action cards */
.actions {
  display: grid;
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 18px 50px -12px rgba(59, 130, 246, 0.45);
  outline: none;
}

.card:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.6), 0 18px 50px -12px rgba(59, 130, 246, 0.45);
}

.card--primary {
  border-color: rgba(96, 165, 250, 0.45);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(124, 58, 237, 0.25)),
    var(--glass);
}

.card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.18);
  color: var(--brand-2);
}

.card--primary .card__icon {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
}

.card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.card__title {
  font-size: 1.08rem;
  font-weight: 700;
}

.card__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card__arrow {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover .card__arrow,
.card:focus-visible .card__arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(16px, 3vh, 28px) 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.footer {
  color: #64748b;
  font-size: 0.85rem;
}

/* Narrow screens: globe sits behind the lower part of the page */
@media (max-width: 959px) {
  .hero {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .eyebrow {
    align-self: center;
  }

  .card {
    text-align: left;
  }

  .actions {
    width: 100%;
  }

  .features {
    justify-content: center;
  }

  .footer {
    text-align: center;
  }
}

@media (max-width: 599px) {
  h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.6rem);
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  .card {
    padding: 14px 16px;
    gap: 14px;
  }

  .card__icon {
    width: 42px;
    height: 42px;
  }

  .card__text {
    font-size: 0.86rem;
  }

  /* Chips repeat the lead text; drop them to keep phones within one screen */
  .features {
    display: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes shimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
