:root {
  color-scheme: light;
  --bg: #f8f6f3;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #495057;
  --accent: #0b7285;
  --accent-2: #8b5cf6;
  --shadow: rgba(15, 23, 42, 0.12);
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "Space Grotesk", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(circle at 20% 20%, #e6f7ff, transparent 55%),
    radial-gradient(circle at 80% 0%, #f3e8ff, transparent 45%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(11, 114, 133, 0.12), rgba(139, 92, 246, 0.1));
  mix-blend-mode: multiply;
}

.orbs span {
  position: fixed;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}

.orbs span:nth-child(1) {
  width: 240px;
  height: 240px;
  background: rgba(11, 114, 133, 0.2);
  top: 10%;
  left: 6%;
}

.orbs span:nth-child(2) {
  width: 180px;
  height: 180px;
  background: rgba(139, 92, 246, 0.22);
  bottom: 8%;
  right: 6%;
  animation-delay: -4s;
}

.orbs span:nth-child(3) {
  width: 120px;
  height: 120px;
  background: rgba(11, 114, 133, 0.18);
  top: 45%;
  right: 18%;
  animation-delay: -8s;
}

.hero {
  padding: 48px 7vw 40px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.lang-toggle {
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 12px 0 16px;
  line-height: 1.05;
}

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

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.button {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 40px rgba(11, 114, 133, 0.25);
}

.button.ghost {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--ink);
}

.button.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 50px var(--shadow);
  display: grid;
  gap: 16px;
}

.card-title {
  font-weight: 600;
  color: var(--accent);
}

.prompt {
  font-family: var(--mono);
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.card-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 80px 7vw;
}

.section.alt {
  background: rgba(255, 255, 255, 0.6);
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

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

.panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px var(--shadow);
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel h3 {
  margin-top: 0;
}

.panel p {
  color: var(--muted);
}

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

.code {
  font-family: var(--mono);
  background: #f1f3f5;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.footer-callout {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.footer {
  padding: 32px 7vw 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.dot {
  padding: 0 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .meta {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
