/* ===========================================================
   Onepoint Technology Studio — design tokens
   Red   #EE2B2B   Ink #121212   Paper #FDFCFB
   Muted #6F6B66   Line #E8E4DF  Soft  #FFEDEA
   Display: Space Grotesk / Body: Inter
=========================================================== */

:root{
  --red: #EE2B2B;
  --red-dark: #C71F1F;
  --ink: #121212;
  --paper: #FDFCFB;
  --muted: #6F6B66;
  --line: #E8E4DF;
  --soft: #FFEDEA;
  --dark: #121212;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --wrap: 1180px;
  --radius: 20px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ============ NAV ============ */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,252,251,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo{ width: 38px; height: 38px; border-radius: 10px; }

.nav__wordmark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__wordmark em{
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav__links{
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__links a{ color: var(--ink); transition: color .15s ease; }
.nav__links a:hover{ color: var(--red); }

.nav__cta{
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav__cta:hover{ background: var(--red); }

.nav__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span{
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero{
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero__inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red-dark);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero__title{
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 22px;
}

.hero__sub{
  max-width: 52ch;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--primary{
  background: var(--red);
  color: #fff;
}
.btn--primary:hover{ background: var(--red-dark); }

.btn--ghost{
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover{ background: var(--ink); color: var(--paper); }

.hero__mark{
  display: flex;
  justify-content: center;
}
.hero__star{
  width: 100%;
  max-width: 340px;
}

/* ============ TICKER ============ */
.ticker{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
  padding: 14px 0;
}
.ticker__track{
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 26s linear infinite;
}
.ticker__track span{
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--paper);
  opacity: .8;
  white-space: nowrap;
}
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation: none; }
}

/* ============ SECTION shared ============ */
.section{ padding: 96px 0; }
.section--dark{ background: var(--ink); color: var(--paper); }

.section__head{
  max-width: 56ch;
  margin-bottom: 52px;
}
.section__head h2{ font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 12px; }
.section__head p{ color: var(--muted); font-size: 16.5px; }
.section__head--light p{ color: #B9B6B0; }

/* ============ PROGRAMS ============ */
.programs{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.program{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program--lg{
  background: var(--soft);
  border-color: transparent;
}

.program__tag{
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.program--lg .program__tag{ background: var(--red); }

.program h3{ font-size: 22px; }

.program p{ color: var(--muted); font-size: 15px; }

.program__list{
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.program__list li{
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
}
.program__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ============ PATH ============ */
.path{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.path__step{
  padding: 0 28px 0 0;
  border-left: 1px solid rgba(253,252,251,0.15);
  padding-left: 28px;
}
.path__step:first-child{ border-left: none; padding-left: 0; }

.path__num{
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}

.path__step h3{ font-size: 19px; margin-bottom: 10px; color: var(--paper); }
.path__step p{ font-size: 14.5px; color: #B9B6B0; }

/* ============ WHY ============ */
.why__head{ margin-bottom: 48px; }
.why__head h2{ font-size: clamp(30px, 3.4vw, 40px); max-width: 20ch; }

.why__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why__mark{
  display: inline-block;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.why__item h3{ font-size: 18px; margin-bottom: 8px; }
.why__item p{ font-size: 14.5px; color: var(--muted); }

/* ============ CTA ============ */
.cta{
  background: var(--red);
  color: #fff;
  padding: 96px 0;
}
.cta__inner{
  max-width: 640px;
}
.cta h2{ font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.cta > .wrap > p{ opacity: .9; font-size: 16.5px; margin-bottom: 36px; }

.cta__form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cta__form select{ grid-column: 1 / -1; }
.cta__form button{ grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

.cta__form input,
.cta__form select{
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}
.cta__form input::placeholder{ color: rgba(255,255,255,0.75); }
.cta__form select{ color: #fff; }
.cta__form select option{ color: var(--ink); }

.cta__form input:focus,
.cta__form select:focus{
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.16);
}

.cta .btn--primary{
  background: var(--ink);
}
.cta .btn--primary:hover{ background: #000; }

.cta__note{
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer{
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 0;
}
.footer__inner{
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(253,252,251,0.12);
}

.footer__brand{ display: flex; gap: 14px; }
.footer__logo{ width: 40px; height: 40px; border-radius: 11px; }
.footer__brand p{ font-size: 14px; color: #B9B6B0; line-height: 1.5; }

.footer__cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__cols h4{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #B9B6B0;
}
.footer__cols a{
  display: block;
  font-size: 14.5px;
  padding: 6px 0;
  color: var(--paper);
}
.footer__cols a:hover{ color: var(--red); }

.footer__bottom{
  padding: 22px 32px;
  font-size: 13px;
  color: #8A8781;
}

/* ===========================================================
   RESPONSIVE — PC (default above), Laptop, Tablet
=========================================================== */

/* Laptop / small desktop */
@media (max-width: 1180px){
  .wrap{ padding: 0 28px; }
  .programs{ grid-template-columns: 1fr 1fr; }
  .program--lg{ grid-column: 1 / -1; }
  .why__grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 900px){
  .nav__links{
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav__links.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a{ width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child{ border-bottom: none; }
  .nav__cta{ text-align: center; margin-top: 6px; }
  .nav__toggle{ display: flex; }

  .hero{ padding: 56px 0 48px; }
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__mark{ order: -1; max-width: 220px; margin: 0 auto 12px; }

  .section{ padding: 72px 0; }

  .path{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .path__step{ border-left: none; padding-left: 0; }
  .path__step:nth-child(odd){ padding-right: 24px; }

  .why__grid{ grid-template-columns: repeat(2, 1fr); }

  .cta__form{ grid-template-columns: 1fr; }

  .footer__inner{ grid-template-columns: 1fr; gap: 32px; }
  .footer__cols{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* Mobile (bonus — keeps things usable on phones too) */
@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  .programs{ grid-template-columns: 1fr; }
  .why__grid{ grid-template-columns: 1fr; }
  .path{ grid-template-columns: 1fr; }
  .footer__cols{ grid-template-columns: 1fr; }
  .footer__bottom{ padding: 22px 20px; }
  .hero__title{ font-size: 34px; }
}
