:root {
  --bg: #0b0d12;
  --bg-2: #0f1220;
  --ink: #e8ecff;
  --muted: #9aa4c7;
  --accent-1: #00e5ff;
  --accent-2: #7b5cff;
  --accent-3: #ff5ad9;
  --accent-4: #34ffd2;
  --card: rgba(18, 22, 36, 0.72);
  --stroke: rgba(255, 255, 255, 0.08);
  --glow: rgba(0, 229, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(900px 400px at 95% 10%, rgba(123, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 420px at 50% 110%, rgba(255, 90, 217, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 229, 255, 0.05) 0,
      rgba(0, 229, 255, 0.05) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}

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

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

.hero {
  padding: 100px 0 60px;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero h1 {
  font-family: "Chakra Petch", "IBM Plex Sans", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: #d3dcff;
}

.hero-card {
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 120px at 80% 0%, rgba(0, 229, 255, 0.25), transparent 70%);
  opacity: 0.7;
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #0a0c12;
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.35);
}

.button.secondary {
  border: 1px solid var(--stroke);
  color: var(--ink);
}

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

.section {
  padding: 60px 0;
}

.section h2 {
  font-family: "Chakra Petch", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0 0 14px;
}

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

.code-panel {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(12, 14, 26, 0.92), rgba(8, 10, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cfd7f6;
  position: relative;
  overflow: hidden;
  counter-reset: code-line;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.code-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(240px 120px at 15% 0%, rgba(0, 229, 255, 0.2), transparent 70%),
    radial-gradient(200px 120px at 90% 20%, rgba(123, 92, 255, 0.16), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.code-panel div {
  position: relative;
  padding-left: 30px;
  white-space: pre;
}

.code-panel div::before {
  content: counter(code-line);
  counter-increment: code-line;
  position: absolute;
  left: 0;
  width: 22px;
  text-align: right;
  color: rgba(154, 164, 199, 0.5);
}

.code-panel .spacer {
  height: 10px;
  padding-left: 0;
}

.code-panel .spacer::before {
  content: "";
}

.code-panel .accent {
  color: var(--accent-4);
}

.code-panel .comment {
  color: rgba(154, 164, 199, 0.85);
}

.gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 24, 40, 0.92), rgba(10, 12, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 140px at 15% 0%, rgba(0, 229, 255, 0.18), transparent 65%),
    radial-gradient(240px 160px at 85% 10%, rgba(123, 92, 255, 0.14), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}

.gallery-card > * {
  position: relative;
  z-index: 1;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.gallery-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.gallery-card .label {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: #e4ebff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 80px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .button {
    text-align: center;
  }
}
