:root {
  color-scheme: light;
  --bg: #f7f2e8;
  --ink: #18292d;
  --muted: #516066;
  --accent: #e26f3d;
  --accent-2: #2a7f7d;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(24, 41, 45, 0.12);
  --shadow: 0 30px 80px rgba(26, 46, 50, 0.16);
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #fdf8f1 0%, #f4eee2 50%, #f0e5d7 100%);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(226, 111, 61, 0.55), transparent 70%);
}

.orb-2 {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(42, 127, 125, 0.55), transparent 70%);
  animation-delay: -6s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  top: 35%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 210, 162, 0.6), transparent 70%);
  animation-delay: -10s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 232, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: #fdf8f1;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  letter-spacing: 1px;
}

.brand-name {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  position: relative;
}

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

.nav-link:hover::after {
  width: 100%;
}

main {
  padding: 40px 8vw 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.hero-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.02;
  margin: 12px 0 16px;
}

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

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 24px;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fffaf5;
  box-shadow: 0 16px 30px rgba(226, 111, 61, 0.3);
}

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

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  min-width: 140px;
  box-shadow: 0 10px 24px rgba(24, 41, 45, 0.1);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  background: var(--card);
  border-radius: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226, 111, 61, 0.4);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 111, 61, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(226, 111, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 111, 61, 0);
  }
}

.panel-body {
  margin-top: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  color: var(--ink);
}

.video-shell {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(24, 41, 45, 0.08);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.video-shell video,
.video-shell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-label {
  font-size: 1rem;
}

.section {
  margin-top: 100px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  max-width: 600px;
}

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

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(24, 41, 45, 0.08);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

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

.pipeline .steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.pipeline li {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
}

.step-count {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: var(--accent);
}

.deploy-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.deploy-note {
  background: rgba(24, 41, 45, 0.08);
  border-radius: 18px;
  padding: 18px;
  font-size: 0.9rem;
}

.note-title {
  margin-top: 0;
  font-weight: 600;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Space Grotesk", monospace;
  color: var(--ink);
}

.footer {
  padding: 40px 8vw 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

/* Developer Section */
.developer-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  margin-top: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.developer-image {
  position: relative;
}

.developer-image img {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 20px 40px rgba(226, 111, 61, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-image img:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 24px 50px rgba(226, 111, 61, 0.25);
}

.developer-image::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: -1;
  opacity: 0.3;
  filter: blur(16px);
}

.developer-info h3 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin: 0 0 8px;
}

.developer-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.developer-bio {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 0 24px;
}

.developer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.developer-links .btn {
  gap: 10px;
}

.developer-links .btn svg {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .developer-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .developer-image {
    justify-self: center;
  }

  .developer-info h3 {
    font-size: 1.6rem;
  }

  .developer-bio {
    max-width: 100%;
  }

  .developer-links {
    justify-content: center;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 820px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-panel {
    order: -1;
  }
}
