:root {
  --bg: #f3efe6;
  --ink: #191919;
  --muted: #6e6a63;
  --accent: #1f6f54;
  --accent-strong: #14543f;
  --accent-warm: #f4a340;
  --surface: #ffffff;
  --stroke: rgba(25, 25, 25, 0.12);
  --shadow: 0 24px 60px rgba(25, 25, 25, 0.12);
  --radius: 18px;
}

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

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

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

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 163, 64, 0.18), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(31, 111, 84, 0.2), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(31, 111, 84, 0.18), transparent 45%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.7;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(244, 163, 64, 0.35);
  top: 12%;
  left: 6%;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(31, 111, 84, 0.28);
  top: 55%;
  left: 72%;
  animation-delay: -5s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: rgba(25, 25, 25, 0.15);
  top: 70%;
  left: 20%;
  animation-delay: -9s;
}

.gridline {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.08) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.2;
  mask-image: radial-gradient(circle at top left, black 30%, transparent 70%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 230, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25, 25, 25, 0.05);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  gap: 12px;
}

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

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(25, 25, 25, 0.12);
}

.btn.solid {
  background: var(--accent);
  color: #fff;
}

.btn.outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn.ghost {
  border-color: var(--stroke);
  background: transparent;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  padding: 80px 6vw 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 20px 0 16px;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 84, 0.12);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

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

.hero-note {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-panel .panel-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
}

.panel-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.panel-metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.panel-metric strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.panel-code {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 80px 6vw 40px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 12px;
}

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

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

.feature-card,
.security-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 30px rgba(25, 25, 25, 0.08);
}

.feature-card h3,
.security-card h4 {
  margin: 0 0 12px;
}

.feature-card p,
.security-card p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px dashed rgba(25, 25, 25, 0.2);
}

.step span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--accent-strong);
}

.step h4 {
  margin: 12px 0 8px;
}

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

.code-block {
  background: #131313;
  color: #f4f2ee;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.code-title {
  font-weight: 700;
  margin-bottom: 12px;
}

pre {
  margin: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.code-grid h4 {
  margin-bottom: 6px;
}

.code-grid p {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: calc(var(--radius) + 8px);
  padding: 40px;
  background: var(--accent-strong);
  color: #fff;
}

.cta h2 {
  margin: 0 0 10px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta .btn.outline {
  border-color: #fff;
  color: #fff;
}

.site-footer {
  padding: 32px 6vw 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }
}
