:root {
  --bg: #080b12;
  --surface: #0e131d;
  --surface-light: #141b28;
  --text: #f4f6f8;
  --muted: #98a1b2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8cf5c7;
  --accent-blue: #78a9ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #06130e; background: var(--accent); }

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
}
.ambient-one { top: -20rem; right: -12rem; background: #496fff; }
.ambient-two { top: 65vh; left: -24rem; background: #38e0a0; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 50%;
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  height: 64px;
  padding: 0 .65rem 0 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 11, 18, .72);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(8, 11, 18, .92); box-shadow: 0 16px 50px rgba(0,0,0,.28); }
.brand { display: inline-flex; gap: .65rem; align-items: center; font: 600 .95rem "Manrope", sans-serif; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #07130e;
  background: var(--accent);
  font-size: .72rem;
  font-weight: 700;
}
.nav { display: flex; gap: 2rem; color: var(--muted); font-size: .9rem; }
.nav a, .text-link, .back-top { transition: color .2s ease; }
.nav a:hover, .text-link:hover, .back-top:hover { color: var(--accent); }
.header-cta {
  padding: .72rem 1rem;
  border-radius: 12px;
  color: var(--bg);
  background: var(--text);
  font-size: .86rem;
  font-weight: 600;
}

.section { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.hero {
  display: grid;
  min-height: 92vh;
  padding-top: 10rem;
  padding-bottom: 6rem;
  align-items: center;
  grid-template-columns: 1.15fr .85fr;
  gap: 5rem;
}
.eyebrow {
  display: flex;
  margin: 0 0 1.5rem;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(140,245,199,.1);
}
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; line-height: 1.03; letter-spacing: -.045em; }
h1 { max-width: 820px; font-size: clamp(3.2rem, 6.7vw, 6.4rem); font-weight: 600; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 610px; margin: 2rem 0 0; color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; margin-top: 2.4rem; align-items: center; gap: 1.6rem; }
.button {
  display: inline-flex;
  padding: .9rem 1.15rem;
  align-items: center;
  gap: 1.8rem;
  border-radius: 12px;
  font-weight: 600;
}
.button-primary { color: #07130e; background: var(--accent); }
.text-link { color: var(--muted); font-weight: 600; }

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 470px;
  justify-self: end;
}
.hero-visual::before {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,169,255,.12), transparent 66%);
  content: "";
}
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { inset: 10%; animation: rotate 22s linear infinite; }
.orbit-two { inset: 25%; border-style: dashed; animation: rotate 14s linear reverse infinite; }
.orbit::after {
  position: absolute; top: 15%; left: 8%;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent);
  content: "";
}
.core {
  position: absolute; inset: 35%;
  display: grid; place-items: center;
  border: 1px solid rgba(140,245,199,.4);
  border-radius: 50%;
  background: rgba(14,19,29,.8);
  box-shadow: 0 0 80px rgba(140,245,199,.12);
}
.core strong { color: var(--accent); font-size: 1.3rem; transform: rotate(90deg); }
.core-label { color: var(--muted); font-size: .67rem; letter-spacing: .18em; }
.tech-chip {
  position: absolute;
  min-width: 58px;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14,19,29,.88);
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  text-align: center;
  font: 600 .72rem "Manrope", sans-serif;
}
.chip-aws { top: 8%; left: 24%; }
.chip-api { top: 35%; right: 0; }
.chip-ai { right: 20%; bottom: 10%; }
.chip-ios { left: 0; bottom: 28%; }
.visual-caption { position: absolute; right: 0; bottom: 0; margin: 0; color: var(--muted); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

.marquee-wrap { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.marquee { display: flex; width: max-content; padding: 1rem 0; align-items: center; gap: 2rem; color: #c5cbd5; animation: marquee 30s linear infinite; }
.marquee span { font: 500 .78rem "Manrope", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.marquee i { color: var(--accent); font-style: normal; }

.about, .focus, .stack { padding-block: 9rem; }
.section-label { display: flex; margin-bottom: 4rem; align-items: center; gap: 1rem; color: var(--muted); font-size: .77rem; letter-spacing: .12em; text-transform: uppercase; }
.section-label span { color: var(--accent); }
.section-label p { margin: 0; }
.section-label::after { height: 1px; background: var(--line); content: ""; flex: 1; }
.about-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6rem; }
.about h2 { font-size: clamp(2.7rem, 5vw, 5rem); }
.about h2 span { color: #555e6c; }
.about-text { padding-top: .5rem; }
.about-text p { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.06rem; }

.focus { padding-top: 3rem; }
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.focus-card {
  display: flex;
  min-height: 420px;
  padding: 1.7rem;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.focus-card:hover { transform: translateY(-5px); border-color: rgba(140,245,199,.36); background: var(--surface-light); }
.card-featured { grid-row: span 2; min-height: 856px; background: radial-gradient(circle at 20% 80%, rgba(140,245,199,.13), transparent 45%), var(--surface); }
.card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.card-arrow { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); font-size: 1rem; }
.card-kicker { margin: 0 0 .9rem; color: var(--accent); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.focus-card h3 { max-width: 560px; font-size: clamp(2rem, 4vw, 4.2rem); }
.focus-card:not(.card-featured) h3 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.focus-card p:not(.card-kicker) { max-width: 560px; margin: 1.2rem 0 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list span { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: #bdc4cf; font-size: .72rem; }

.stack { padding-top: 7rem; }
.stack-content { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6rem; }
.stack-intro { margin: 0; color: var(--muted); font-size: 1.15rem; }
.stack-list div { display: flex; padding: 1.5rem 0; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); }
.stack-list div:last-child { border-bottom: 1px solid var(--line); }
.stack-list span { color: var(--muted); font-size: .8rem; }
.stack-list strong { text-align: right; font: 500 1rem "Manrope", sans-serif; }

.contact {
  width: min(calc(100% - 2rem), 1320px);
  margin-bottom: 1rem;
  padding-block: 9rem;
  border: 1px solid rgba(140,245,199,.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 100%, rgba(140,245,199,.16), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(120,169,255,.1), transparent 28%),
    var(--surface);
  text-align: center;
}
.contact-inner { width: min(calc(100% - 3rem), 800px); margin-inline: auto; }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-size: clamp(3.8rem, 9vw, 8rem); }
.contact-inner > p:not(.eyebrow) { max-width: 570px; margin: 2rem auto; color: var(--muted); }
.contact-links { display: flex; margin-top: 3rem; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.contact-links a { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease, background .2s ease; }
.contact-links a:hover { border-color: var(--accent); background: rgba(140,245,199,.06); }

footer {
  display: flex;
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
  padding: 2.5rem 0;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .78rem;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .14s; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { width: min(100%, 430px); justify-self: center; }
  .about-content, .stack-content { grid-template-columns: 1fr; gap: 3rem; }
  .focus-grid { grid-template-columns: 1fr; }
  .card-featured { grid-row: auto; min-height: 540px; }
}

@media (max-width: 640px) {
  .site-header { top: .55rem; width: calc(100% - 1rem); height: 58px; }
  .nav { display: none; }
  .header-cta { padding: .6rem .75rem; }
  .section { width: min(calc(100% - 2rem), var(--max)); }
  .hero { min-height: auto; padding-top: 8.5rem; padding-bottom: 4rem; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-lead { font-size: .98rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-visual { margin-top: 1.5rem; }
  .about, .focus, .stack { padding-block: 6rem; }
  .section-label { margin-bottom: 2.5rem; }
  .about h2 { font-size: 2.7rem; }
  .focus-card, .card-featured { min-height: 460px; padding: 1.35rem; }
  .stack-list div { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .stack-list strong { text-align: left; }
  .contact { padding-block: 6rem; }
  .contact h2 { font-size: clamp(3.5rem, 19vw, 5.6rem); }
  footer { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
