:root {
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --card: rgba(15, 28, 48, 0.75);
  --line: rgba(103, 232, 249, 0.18);
  --text: #e8f1ff;
  --muted: #a7bad8;
  --accent: #32d8ff;
  --accent-2: #7c5cff;
  --glow: 0 0 30px rgba(50, 216, 255, 0.25);
  --radius: 22px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(50, 216, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #040b15 0%, #07111f 45%, #050d18 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  pointer-events: none;
  opacity: 0.5;
}

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

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(4, 11, 21, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(50,216,255,0.22), rgba(124,92,255,0.28));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "</>";
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.04em;
  color: var(--text);
  transform: translateY(-1px);
}

.brand-text {
  min-width: 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo .script {
  color: #ffffff;
}

.logo .world {
  background: linear-gradient(90deg, var(--accent), #8ddcff 35%, #b79cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(50, 216, 255, 0.18);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.25s ease;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(50,216,255,0.18), rgba(124,92,255,0.28));
  box-shadow: var(--glow);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
}

.hero {
  padding: 84px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #d8f6ff;
  background: rgba(50,216,255,0.08);
  border: 1px solid rgba(50,216,255,0.15);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 span {
  background: linear-gradient(90deg, #ffffff 0%, #b7eeff 35%, #ad9bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.stat,
.panel,
.card,
.contact-box {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(50,216,255,0.24), transparent 70%);
  filter: blur(8px);
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 14px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.panel-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.codebox {
  border-radius: 18px;
  background: rgba(3, 9, 17, 0.86);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 18px;
  font-family: Consolas, Monaco, monospace;
  color: #d9e8ff;
  line-height: 1.8;
  font-size: 0.92rem;
  overflow: auto;
}

.codebox .kw { color: #8ddcff; }
.codebox .fn { color: #b79cff; }
.codebox .str { color: #9fe89f; }
.codebox .cm { color: #6f87a8; }

.floating-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #dff9ff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
}

section {
  padding: 26px 0 18px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 78ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(50,216,255,0.18);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(50,216,255,0.16), rgba(124,92,255,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.25rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-box {
  padding: 28px 32px;
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.7;
}

.list-item b {
  color: var(--text);
}

.bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
  box-shadow: 0 0 12px rgba(50,216,255,0.4);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.contact-link strong {
  color: var(--text);
  font-size: 0.96rem;
}

footer {
  padding: 40px 0 60px;
  color: var(--muted);
}

.footer-box {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .nav {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 52px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .logo {
    white-space: normal;
  }

  .contact-box {
    padding: 24px 22px;
  }

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

.about-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
}

.about-image img {
  width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Mobile */
@media (max-width: 900px) {
  .about-layout {
    flex-direction: column;
  }

  .about-image img {
    width: 180px;
  }
}