:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-secondary: rgba(9, 18, 34, 0.7);
  --panel: rgba(13, 24, 44, 0.78);
  --panel-strong: rgba(16, 28, 51, 0.92);
  --border: rgba(150, 185, 255, 0.18);
  --text: #edf3ff;
  --muted: #aab9d8;
  --accent: #7c9cff;
  --accent-strong: #91f0ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(145, 240, 255, 0.16), transparent 26%),
    linear-gradient(160deg, #050b15 0%, #07111f 40%, #0a1526 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.background-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.glow-left {
  top: -6rem;
  left: -6rem;
  background: rgba(124, 156, 255, 0.45);
}

.glow-right {
  right: -5rem;
  bottom: 4rem;
  background: rgba(145, 240, 255, 0.3);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero,
.section,
.footer {
  backdrop-filter: blur(20px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 78vh;
  padding: 2rem;
  border-radius: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 240, 255, 0.24);
  background: rgba(145, 240, 255, 0.08);
  color: #dffaff;
  font-size: 0.9rem;
  font-weight: 600;
}

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

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-role {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #d5e2ff;
  max-width: 56rem;
}

.hero-lead,
.section-copy p,
.feature-card p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #9f83ff);
  color: white;
  box-shadow: 0 18px 30px rgba(124, 156, 255, 0.28);
}

.button-primary:hover {
  box-shadow: 0 22px 36px rgba(124, 156, 255, 0.36);
}

.button-secondary {
  border: 1px solid rgba(170, 185, 216, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(145, 240, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.social-card,
.feature-card,
.stack-group,
.contact-panel {
  border: 1px solid rgba(170, 185, 216, 0.15);
  background: var(--panel);
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5.25rem;
  padding: 1rem;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
}

.social-card strong,
.social-card small {
  display: block;
}

.social-card small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-card:hover,
.feature-card:hover,
.stack-group:hover,
.contact-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(145, 240, 255, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.22), rgba(145, 240, 255, 0.12));
  flex-shrink: 0;
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-card,
.contact-image-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image-card {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section {
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
}

.section-copy {
  max-width: 44rem;
  margin-bottom: 1.4rem;
}

.section-copy.narrow {
  max-width: 36rem;
}

.section-copy h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.stack-group {
  border-radius: 22px;
  padding: 1.3rem;
}

.feature-card h3,
.stack-group h3,
.contact-copy h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.12);
  border: 1px solid rgba(124, 156, 255, 0.18);
  color: #e8efff;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  border-radius: 28px;
  padding: 1.2rem;
}

.contact-image-card {
  min-height: 100%;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(170, 185, 216, 0.18);
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(145, 240, 255, 0.3);
}

.footer {
  margin-top: 1.5rem;
  border-radius: 22px;
  padding: 1rem 1.25rem;
  text-align: center;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), 100%);
    padding-top: 0.5rem;
  }

  .hero,
  .section,
  .footer {
    border-radius: 24px;
    padding: 1.3rem;
  }

  .social-grid,
  .feature-grid,
  .stack-groups,
  .contact-links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }

  .section-copy h2 {
    font-size: 2rem;
  }
}
