:root {
  --bg: #07111f;
  --surface: #0d1a2b;
  --surface-2: #10233a;
  --text: #f8fafc;
  --muted: #9fb0c5;
  --line: rgba(255,255,255,.12);
  --accent: #4ea1ff;
  --accent-2: #7dd3fc;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(78,161,255,.13), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #091522 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  font-weight: 700;
  letter-spacing: -.04em;
}

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

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

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow,
.section-label {
  margin: 0 0 22px;
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 8vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.07em;
}

h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #06111f;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.hero-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    var(--surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.card-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.orb-one {
  width: 280px;
  height: 280px;
  top: -70px;
  right: -60px;
  background: rgba(78,161,255,.35);
}

.orb-two {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -90px;
  background: rgba(125,211,252,.16);
}

.status-pill {
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7,17,31,.72);
  backdrop-filter: blur(16px);
  color: var(--muted);
  font-size: .85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45d483;
  box-shadow: 0 0 0 6px rgba(69,212,131,.12);
}

.code-card {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: min(80%, 360px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7,17,31,.82);
  color: #d7e3f3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .95rem;
  line-height: 1.8;
  backdrop-filter: blur(18px);
}

.code-card span {
  color: #c084fc;
}

.code-card em {
  color: #7dd3fc;
  font-style: normal;
}

.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.projects {
  display: block;
}

.projects .section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

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

.project-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}

.project-number {
  display: inline-block;
  margin-bottom: 65px;
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 700;
}

.project-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

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

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-2);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-card {
    min-height: 400px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    height: 72px;
  }

  .nav {
    gap: 16px;
    font-size: .8rem;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 84px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero-card {
    min-height: 330px;
  }

  .code-card {
    right: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
    font-size: .8rem;
  }

  .section,
  .contact-section {
    padding: 86px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
