/* ============================================================
   TOKENS
============================================================ */
:root {
  --navy: #0A2540;
  --navy-2: #0D2E4E;
  --accent: #1A73E8;
  --accent-h: #1255B8;
  --slate: #4A5568;
  --muted: #718096;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-off: #F7FAFC;
  --bg-dark: #060F1C;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --r: 0px;
  /* sharp corners throughout */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 64px;
  --container: 1200px;
}

/* ============================================================
   RESET
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
  cursor: pointer;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 15, 28, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.nav-back:hover {
  color: #fff;
}

/* ============================================================
   HERO — mockup faithful
============================================================ */
.hero {
  background: #0D1B2E;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture matching mockup */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Faint column lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.022) 0px,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 120px);
  pointer-events: none;
}

.hero-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Badge pill */
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.45rem 1rem;
  margin-bottom: 1.25rem;
}

/* Giant Inter Black name — matches mockup weight exactly */
.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.92;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Four CTAs — business-card actions, 2x2 grid */
.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  max-width: 460px;
}

.btn-hero-primary,
.btn-hero-outline,
.btn-hero-white {
  justify-content: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: #1A8FE3;
  color: #FFFFFF;
  border: 2px solid #1A8FE3;
  transition: background 0.2s, transform 0.15s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-primary:hover {
  background: #1470C0;
  border-color: #1470C0;
  transform: translateY(-1px);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-hero-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: #FFFFFF;
  color: var(--navy);
  border: 2px solid #FFFFFF;
  transition: background 0.2s, transform 0.15s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-white:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

/* Photo panel */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Blue corner bracket bottom-right — matches mockup exactly */
.hero-bracket {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 64px;
  height: 64px;
  border-bottom: 3px solid #1A8FE3;
  border-right: 3px solid #1A8FE3;
  pointer-events: none;
}

/* Bottom strip inside hero — keeps footer within the single screen */
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.hero-foot a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.hero-foot a:hover {
  color: #fff;
}

/* ============================================================
   SHARED SECTION LABEL SYSTEM (matches mockup's "04 / INTERESTS" style)
============================================================ */
.sec-label-row {
  margin-bottom: 2rem;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.sec-slash {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 400;
}

.sec-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sec-line {
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  margin-left: 0.25rem;
}

/* Shared heading + subtitle used by about and interests */
.page-h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 0;
}

/* ============================================================
   ABOUT
============================================================ */
.about,
.product {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.product-section {
  padding-top: calc(var(--nav-h) + 5rem);
}

.about-header {
  margin-bottom: 2.5rem;
}

.about-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-text-col p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text-col .btn {
  margin-top: 0.25rem;
}

.about-details-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-detail-block h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-primary {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.detail-secondary {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.15rem;
}

.detail-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tags span {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 0.28rem 0.7rem;
  background: var(--bg-off);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.skill-tags span:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-pills span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--bg-off);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
}

/* CTA row directly under the product header */
.product-cta-row {
  margin-top: 1.5rem;
}

/* Three-column value-prop strip */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-prop {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.value-prop svg {
  color: var(--accent);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.value-prop h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.value-prop p {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Feature checklist — replaces skill-tag pills for full-length feature names */
.feature-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

.feature-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* Stat / trust callout */
.stat-block {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.stat-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg-dark);
  padding: 4rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  display: flex;
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

/* ============================================================
   RESPONSIVE — TABLET ≤1024px
============================================================ */
@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    padding: 3.5rem 2rem 2.5rem;
    gap: 2.5rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-photo-wrap {
    max-width: 300px;
  }

  .hero-photo {
    height: 360px;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .value-props {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤768px
============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .product-section {
    padding-top: calc(var(--nav-h) + 2.5rem);
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  .nav-logo-img {
    height: 32px;
    width: 32px;
  }

  .nav-back {
    font-size: 0.76rem;
  }

  /* Let the hero size to its content on phones instead of forcing 100vh —
     avoids iOS address-bar cutoff and the large centered gap left once
     the desktop portrait is hidden. */
  .hero {
    min-height: 100vh;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 2.25rem 1.5rem 2rem;
    gap: 0;
  }

  /* Small circular avatar above the name instead of the full desktop portrait */
  .hero-visual {
    order: -1;
    justify-content: flex-start;
    margin-top: auto;
    margin-bottom: 1.5rem;
  }

  .hero-photo-wrap {
    max-width: 96px;
  }

  .hero-photo {
    height: 96px;
    width: 96px;
    border-radius: 50%;
  }

  .hero-bracket {
    display: none;
  }

  .hero-badge {
    margin-bottom: 1rem;
  }

  .hero-name {
    font-size: 3.25rem;
    margin-bottom: 1.15rem;
  }

  .hero-bio {
    margin-bottom: 1.75rem;
  }

  .hero-ctas {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 0.6rem;
  }

  .btn-hero-primary,
  .btn-hero-outline,
  .btn-hero-white {
    padding: 0.85rem 1.25rem;
  }

  .hero-foot {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 1.25rem 1.5rem;
  }

  .feature-checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-wrap {
    padding: 2rem 1.25rem 1.75rem;
  }

  .hero-badge {
    font-size: 0.66rem;
    padding: 0.4rem 0.85rem;
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .hero-bio {
    font-size: 0.92rem;
  }

  .btn-hero-primary,
  .btn-hero-outline,
  .btn-hero-white {
    font-size: 0.82rem;
    padding: 0.8rem 1rem;
  }

  .hero-foot {
    font-size: 0.72rem;
  }
}