:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #a9b7ca;
  --line: rgba(255, 255, 255, 0.15);
  --gold: #f4c76b;
  --blue: #69a9ff;
  --green: #72e3b2;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(105, 169, 255, 0.22), transparent 35rem),
    radial-gradient(circle at 80% 15%, rgba(244, 199, 107, 0.14), transparent 30rem),
    linear-gradient(140deg, var(--bg), #020713 70%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  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: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 199, 107, 0.3), rgba(105, 169, 255, 0.18));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

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

nav a {
  text-decoration: none;
}

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

.hero {
  min-height: 68vh;
  display: grid;
  align-content: center;
  padding: 72px 0 96px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.primary {
  background: var(--gold);
  color: #172033;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.split-section,
.feature-panel,
.projects,
.contact {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 32px;
  padding: 34px;
}

.card-stack {
  display: grid;
  gap: 14px;
}

.info-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.info-card {
  padding: 22px;
  color: var(--text);
  font-weight: 750;
}

.feature-panel,
.projects,
.contact {
  padding: 34px;
}

.feature-panel p,
.contact p {
  max-width: 760px;
}

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

.project-card {
  padding: 24px;
}

.project-card p {
  margin-bottom: 0;
}

.contact {
  display: block;
}

.site-footer {
  padding: 28px 0 42px;
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 72px;
  }

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

  .split-section,
  .feature-panel,
  .projects,
  .contact {
    padding: 24px;
    border-radius: 24px;
  }
}
