/* ===== Design tokens ===== */
:root {
  --ink: #0d0d0f;
  --ink-soft: #3a3a40;
  --muted: #76767e;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --accent: #1a1a1a;
  --radius: 14px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand-mark {
  background: var(--ink);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 15px;
}
.brand-name { font-weight: 500; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* ===== Hero (full-screen image) ===== */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.pexels.com/photos/3308359/pexels-photo-3308359.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 9, 12, 0.86) 0%,
    rgba(8, 9, 12, 0.62) 45%,
    rgba(8, 9, 12, 0.25) 100%
  );
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px; }
.hero-nextyuva {
  background-image: url('https://images.pexels.com/photos/5555813/pexels-photo-5555813.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero-logo {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  color: #fff;
}
.hero-logo-light { font-weight: 300; opacity: 0.85; }
.hero-logo-wrap {
  width: 380px;
  height: 180px;
  max-width: 80vw;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
}
.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.hero-logo-invert { filter: invert(1) brightness(2); }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
}
.hero-full h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  color: #fff;
}
.hero-lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ===== Strip ===== */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.strip-item:last-child { border-right: 0; }
.strip-num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.strip-label {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 56px;
  max-width: 720px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.grid-2 h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.prose p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.18);
}
.card-icon {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 22px;
}
.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.card-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.card p { color: var(--ink-soft); }
.card-line { }

/* Card with image */
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.card-media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card-media:hover .card-media-img img { transform: scale(1.04); }
.card-media .card-body { padding: 36px 40px 40px; }

/* Emblem inside a card */
.card-emblem {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.step-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.step h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
.step p { color: var(--ink-soft); }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.contact-lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand .brand-mark { font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-brand p {
  flex-basis: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: var(--ink-soft); font-size: 15px; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(1), .strip-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
  .card { padding: 30px; }
}

/* ===== Transparent header over hero ===== */
html { scroll-padding-top: 68px; }
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav a { color: #fff; }
.site-header:not(.scrolled) .nav a:hover { color: rgba(255, 255, 255, 0.75); }
.site-header:not(.scrolled) .brand-mark { background: #fff; color: var(--ink); }
.site-header:not(.scrolled) .nav-cta { background: #fff; color: var(--ink) !important; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

@media (max-width: 860px) {
  .site-header:not(.scrolled) .nav.open a { color: var(--ink-soft); }
  .site-header:not(.scrolled) .nav.open .nav-cta { background: var(--ink); color: #fff !important; }
}

/* ===== Logo image in header ===== */
.brand { align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-logo-color { display: none; }
.site-header.scrolled .brand-logo-white { display: none; }
.site-header.scrolled .brand-logo-color { display: block; }

/* ===== Outline button border fix (.btn reset was overriding it) ===== */
.btn.btn-outline { border-color: rgba(255, 255, 255, 0.5); }
.btn.btn-outline:hover { border-color: #fff; }

/* ===== Hero on phones ===== */
@media (max-width: 640px) {
  .hero-full {
    min-height: 100svh;
    align-items: flex-end;
    background-position: 82% center;
  }
  .hero-nextyuva { background-position: 60% center; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 9, 12, 0.55) 0%,
      rgba(8, 9, 12, 0.7) 45%,
      rgba(8, 9, 12, 0.9) 100%
    );
  }
  .hero-content { padding: 112px 20px 56px; }
  .hero-logo-wrap { width: 200px; height: auto; margin-bottom: 20px; }
  .hero-logo-img { height: auto; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hero-full h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); margin-bottom: 18px; }
  .hero-lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
}
