:root {
  --bg: #0b111c;
  --bg-soft: #101827;
  --surface: #ffffff;
  --surface-muted: #f4f7fb;
  --text: #111827;
  --muted: #5b6472;
  --line: rgba(17, 24, 39, 0.12);
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --green: #10b981;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(9, 15, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: #2f3746;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: min(820px, calc(100svh - 112px));
  padding: clamp(44px, 7vw, 76px) clamp(18px, 6vw, 88px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 17, 28, 0.96), rgba(15, 23, 42, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 92px);
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #08111f;
  background: #fff;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  color: #fff;
  background: var(--bg);
}

.profile-visual {
  position: relative;
  min-width: 0;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.portrait {
  position: relative;
  display: block;
  width: min(86vw, 390px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin: 0;
  background: #0f172a;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.portrait figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.92);
}

.portrait figcaption strong,
.portrait figcaption span {
  display: block;
}

.portrait figcaption strong {
  font-size: 22px;
  line-height: 1.15;
}

.portrait figcaption span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 750;
}

.signal-grid {
  position: absolute;
  inset: 50px 0 20px auto;
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-auto-rows: 54px;
  gap: 12px;
  opacity: 0.9;
}

.signal-grid span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(220px, 320px);
  gap: 18px;
  align-items: stretch;
}

.profile-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-card.accent {
  color: #fff;
  border-color: transparent;
  background: var(--bg-soft);
}

.profile-card h3,
.detail-copy h3 {
  margin: 0 0 22px;
  font-size: 25px;
  line-height: 1.2;
}

.info-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 6px;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  color: #202938;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.metric-list li {
  padding: 14px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-list strong,
.metric-list span {
  display: block;
}

.metric-list strong {
  font-size: 22px;
  line-height: 1;
}

.metric-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.25;
}

.profile-card p,
.detail-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.65;
}

.phone-preview,
.screenshot-strip figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-preview img,
.screenshot-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-preview {
  max-height: 520px;
}

.evidence-section {
  background: #fff;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.cover-preview {
  aspect-ratio: 16 / 9;
}

.screenshot-strip figure {
  max-height: 620px;
}

.detail-copy {
  max-width: 680px;
}

.detail-copy p {
  color: var(--muted);
  margin-bottom: 28px;
}

.focus-section {
  background: var(--surface-muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.focus-item {
  min-height: 290px;
  padding: 28px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #fff;
}

.item-number {
  display: block;
  margin-bottom: 56px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.focus-item h3,
.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
}

.focus-item p,
.timeline-item p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.workflow-section {
  color: #fff;
  background: var(--bg);
}

.workflow-section .section-heading h2 {
  color: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  display: flex;
  gap: 18px;
  min-height: 220px;
  padding: 30px;
  background: #101827;
}

.timeline-item span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #08111f;
  background: var(--cyan);
  font-weight: 900;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(18px, 5vw, 56px);
  padding: clamp(32px, 6vw, 64px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.92), rgba(37, 99, 235, 0.92)),
    linear-gradient(90deg, var(--cyan), var(--green));
}

.contact-copy {
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-copy .eyebrow,
.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 88px);
  color: #626b7a;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .profile-visual {
    min-height: 420px;
  }

  .signal-grid {
    right: 0;
    grid-template-columns: repeat(3, 42px);
    grid-auto-rows: 42px;
  }

  .section-heading,
  .profile-grid,
  .focus-grid,
  .timeline,
  .screenshot-strip {
    grid-template-columns: 1fr;
  }

  .phone-preview,
  .screenshot-strip figure {
    max-width: 320px;
  }

  .screenshot-strip .cover-preview {
    max-width: 100%;
  }

  .focus-item {
    min-height: auto;
  }

  .item-number {
    margin-bottom: 34px;
  }

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

@media (max-width: 560px) {
  .hero {
    justify-items: start;
  }

  .hero-copy,
  .hero-actions {
    width: 100%;
    max-width: min(calc(100vw - 60px), 330px);
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.98;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 26px;
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .profile-card {
    padding: 24px 20px;
  }

  .info-list dd {
    font-size: 17px;
  }

  .hero-meta {
    width: 100%;
    max-width: min(calc(100vw - 60px), 330px);
  }

  .hero-meta span {
    width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    max-width: min(calc(100vw - 60px), 330px);
  }

  .lead {
    font-size: 17px;
    max-width: min(calc(100vw - 60px), 330px);
  }

  .profile-visual {
    width: 100%;
    max-width: min(calc(100vw - 60px), 330px);
    min-height: 360px;
    justify-self: center;
  }

  .portrait {
    width: min(72vw, 270px);
    max-width: 100%;
  }

  .signal-grid {
    display: none;
  }

  .profile-card,
  .timeline-item {
    min-height: auto;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }
}
