:root {
  --bg: #040814;
  --surface: rgba(14, 24, 46, 0.8);
  --surface-strong: #101b35;
  --text: #e8f0ff;
  --muted: #b5c3de;
  --brand: #35c2d5;
  --brand-deep: #1b8ea1;
  --accent: #ffbe6f;
  --border: #263b61;
  --shadow: 0 14px 34px rgba(2, 6, 18, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #0d3350 0%, transparent 44%),
    radial-gradient(circle at 90% 15%, #3f2a53 0%, transparent 40%),
    radial-gradient(circle at 50% 110%, #0f1e3d 0%, transparent 48%),
    var(--bg);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(154, 212, 255, 0.75) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(129, 255, 237, 0.45) 1.4px, transparent 2.2px);
  background-size: 190px 190px, 260px 260px, 320px 320px;
  background-position: 22px 30px, 120px 85px, 10px 170px;
  animation: twinkleSlow 6.8s ease-in-out infinite;
}

body::after {
  z-index: -2;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 1) 1.5px, transparent 2.2px),
    radial-gradient(circle, rgba(180, 227, 255, 0.9) 1.2px, transparent 1.8px);
  background-size: 360px 360px, 240px 240px;
  background-position: 130px 50px, 40px 150px;
  animation: twinkleFast 3.8s ease-in-out infinite;
}

.wrapper {
  width: min(1060px, 92vw);
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(30px);
  opacity: 0.35;
}

.bg-glow-one {
  background: #2ca5d8;
  top: -30px;
  left: -80px;
}

.bg-glow-two {
  background: #7f5cff;
  bottom: -50px;
  right: -90px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: clamp(170px, 22vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(94, 197, 255, 0.22));
}

.top-nav {
  display: flex;
  gap: 1rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.top-nav a.current {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-strong);
}

.lang-switch button {
  border: 0;
  padding: 0.45rem 0.7rem;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

.hero {
  padding: 4.6rem 0 2.8rem;
}

.page-hero {
  padding-top: 2.4rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
  margin: 0.35rem 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  max-width: 14ch;
}

.slogan {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin: 0.6rem 0;
}

.hero-copy {
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.section {
  padding: 2.5rem 0;
}

.section-head p {
  margin: 0;
}

.section-head h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.1rem;
}

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

.card,
.step,
.contact-box {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 16px;
}

.card,
.step {
  padding: 1rem;
}

.card p,
.step p,
#contact .section-head p {
  color: var(--muted);
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.1rem;
}

.step span {
  display: inline-block;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.contact-box {
  margin-top: 1.1rem;
  padding: 1.1rem;
}

.playful-note {
  border-left: 6px solid var(--accent);
}

.about-highlight {
  position: relative;
  border: 1px solid #3a5f95;
  background: linear-gradient(135deg, rgba(21, 39, 71, 0.92), rgba(16, 31, 57, 0.82));
  padding-left: 1.25rem;
}

.about-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #63e5ff, #4bb5ff 45%, #a284ff);
}

.about-highlight h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.about-highlight h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #d7f7ff 0%, #7de3ff 60%, #67bbff 100%);
  box-shadow: 0 0 0 6px rgba(103, 187, 255, 0.14), 0 0 20px rgba(125, 227, 255, 0.4);
}

.about-highlight p {
  color: #c6d8f4;
}

.agentic-highlight {
  border-color: #2e6c7e;
  background: linear-gradient(135deg, rgba(10, 42, 52, 0.9), rgba(11, 33, 48, 0.84));
}

.agentic-highlight::before {
  background: linear-gradient(180deg, #74fff2, #46cde2 50%, #6ca8ff);
}

.agentic-highlight h3::before {
  background: radial-gradient(circle, #d8fffb 0%, #74fff2 60%, #5ec5ff 100%);
  box-shadow: 0 0 0 6px rgba(116, 255, 242, 0.14), 0 0 22px rgba(116, 255, 242, 0.42);
}

.language-note {
  margin-top: 0.85rem;
  color: #d1e3ff;
  font-weight: 600;
}

.mobile-page .top-nav {
  display: none;
}

.mobile-stack {
  padding-bottom: 1rem;
}

.mobile-desktop-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: #92dfff;
  text-decoration: none;
  font-weight: 600;
}

.mobile-desktop-link:hover {
  text-decoration: underline;
}

.mail-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-deep);
  margin-bottom: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  padding: 0.6rem 0.7rem;
  background: #0d1730;
  color: var(--text);
}

.site-footer {
  padding: 1.8rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

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

@keyframes twinkleSlow {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  50% {
    opacity: 0.75;
    transform: translateY(-3px);
  }
}

@keyframes twinkleFast {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  45% {
    opacity: 0.95;
    transform: translateY(-2px);
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: min(70vw, 240px);
  }

  .mobile-page .site-header {
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap;
  }

  .mobile-page .brand-logo {
    width: min(58vw, 220px);
  }

  .mobile-page .hero {
    padding-top: 1.2rem;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
