@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #08111f;
  --bg-soft: #0d1929;
  --panel: rgba(17, 30, 48, 0.78);
  --panel-strong: #122238;
  --text: #f6f8fb;
  --muted: #aab7c8;
  --line: rgba(255,255,255,.1);
  --blue: #5d9cff;
  --blue-strong: #2f78e8;
  --blue-soft: rgba(93,156,255,.14);
  --shadow: 0 30px 80px rgba(0,0,0,.32);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(49,111,193,.18), transparent 34%),
    radial-gradient(circle at 15% 30%, rgba(24,74,129,.12), transparent 32%),
    linear-gradient(180deg, #08111f 0%, #091320 55%, #08111f 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8,17,31,.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue), var(--blue-strong));
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 10px 30px rgba(47,120,232,.24);
}

.brand-name {
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }

.site-header > .button { justify-self: end; }

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

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 68px;
  padding-top: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #86b8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #6da9ff;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 7.5vw, 104px);
  line-height: .92;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  background: linear-gradient(180deg, #7eb5ff, #3978bf);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 32px;
  color: #c7d2df;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

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

.button-primary {
  background: linear-gradient(145deg, #6ca9ff, #347de8);
  color: white;
  box-shadow: 0 14px 30px rgba(47,120,232,.24);
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  color: #dce6f2;
  background: rgba(255,255,255,.035);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.availability {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #64d99a;
  box-shadow: 0 0 0 0 rgba(100,217,154,.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(100,217,154,.5); }
  70% { box-shadow: 0 0 0 9px rgba(100,217,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(100,217,154,0); }
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71,132,220,.18), transparent 68%);
  filter: blur(4px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(100,165,255,.14);
  border-radius: 50%;
}

.orbit-a { width: 410px; height: 410px; }
.orbit-b { width: 540px; height: 540px; opacity: .5; }

.system-card,
.mini-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(20,38,61,.9), rgba(10,24,41,.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-main {
  width: min(100%, 460px);
  padding: 26px;
  border-radius: 24px;
}

.card-kicker {
  margin-bottom: 22px;
  color: #7faeea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-node {
  padding: 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.flow-node span {
  display: inline-block;
  min-width: 38px;
  margin-right: 10px;
  color: #73aaff;
  font-size: 12px;
  font-weight: 800;
}

.flow-node strong {
  font-size: 15px;
}

.flow-node small {
  display: block;
  margin: 6px 0 0 51px;
  color: var(--muted);
}

.flow-line {
  width: 1px;
  height: 14px;
  margin-left: 35px;
  background: linear-gradient(#5f9df0, transparent);
}

.mini-card {
  position: absolute;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
}

.mini-card-a { right: -10px; top: 60px; }
.mini-card-b { left: -18px; bottom: 25px; }

.mini-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: #8bb9ff;
  font-size: 18px;
}

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

.mini-card strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.mini-card small {
  color: var(--muted);
  font-size: 11px;
}

.section-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-heading.narrow {
  max-width: 780px;
  margin-bottom: 46px;
}

.section-heading.narrow p {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.profile-copy {
  color: #c4cfdb;
  font-size: 18px;
}

.profile-copy p:last-child { margin-bottom: 0; }

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

.case-card {
  position: relative;
  overflow: hidden;
  min-height: 550px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)),
    rgba(11,24,40,.76);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #75adff, transparent 80%);
  opacity: .8;
}

.case-meta {
  color: #7faeea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255,255,255,.12);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.06em;
}

.case-card h3 {
  margin: 42px 0 20px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.case-card p {
  color: #b9c5d3;
  font-size: 15px;
}

.case-highlight {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(105,167,255,.14);
  border-radius: 15px;
  background: rgba(78,139,222,.07);
}

.case-highlight strong,
.case-highlight span {
  display: block;
}

.case-highlight strong {
  margin-bottom: 5px;
  color: #87b7fb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.case-highlight span {
  color: #dce6f2;
  font-size: 14px;
}

.skills-section {
  border-top: 1px solid var(--line);
}

.skills-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
}

.skill-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107,169,255,.2);
  border-radius: 11px;
  background: var(--blue-soft);
  color: #8ebaff;
  font-size: 12px;
  font-weight: 800;
}

.skill-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.skill-cloud {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aebccc;
  background: rgba(255,255,255,.02);
  font-size: 13px;
}

.timeline-section {
  border-top: 1px solid var(--line);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin-top: 58px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 178px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(#4c8eea, rgba(255,255,255,.07));
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 56px 1fr;
  align-items: start;
  padding: 0 0 38px;
}

.timeline-date {
  padding-top: 2px;
  color: #86b8ff;
  font-size: 13px;
  font-weight: 700;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: #6faaff;
  box-shadow: 0 0 0 7px rgba(79,144,232,.1);
}

.timeline-content {
  padding: 0 0 0 16px;
}

.timeline-content h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  padding-top: 70px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
  padding: 48px;
  border: 1px solid rgba(110,171,255,.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(74,141,236,.18), transparent 34%),
    linear-gradient(145deg, rgba(19,39,64,.94), rgba(10,23,39,.96));
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.contact-card p {
  max-width: 760px;
  margin-bottom: 0;
  color: #bdc9d7;
  font-size: 17px;
}

.contact-actions {
  justify-content: flex-end;
}

.footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #748398;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17,30,48,.94);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: .25s ease;
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding-top: 100px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .section-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .case-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand-name { display: none; }

  .section {
    width: calc(100% - 28px);
    padding: 78px 0;
  }

  .hero {
    padding-top: 74px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .orbit-a { width: 320px; height: 320px; }
  .orbit-b { width: 400px; height: 400px; }

  .card-main {
    width: calc(100% - 12px);
  }

  .mini-card-a {
    right: 0;
    top: 18px;
  }

  .mini-card-b {
    left: 0;
    bottom: 30px;
  }

  .case-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: auto;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 32px 1fr;
    gap: 0;
  }

  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 6px 14px;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }

  .timeline-content {
    grid-column: 2;
    grid-row: 2;
    padding-left: 14px;
  }

  .contact-card {
    padding: 28px;
  }

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

  .contact-actions .button {
    width: 100%;
  }

  .footer {
    width: calc(100% - 28px);
    flex-direction: column;
  }
}

@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;
  }
}
