/* Samo Academy — samoacademy.uz. Brand: Outfit; Night, Dusk, Deep sky, Sky, Light sky, Cloud, Sun. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #0B2545;
  --dusk: #3C5675;
  --deep-sky: #1F6FD1;
  --sky: #4A9BEF;
  --light-sky: #8EC5FF;
  --cloud: #F4F7FB;
  --sun: #F2A93B;
  --line: #D9E3EF;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: min(1120px, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--night); background: var(--cloud); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: var(--deep-sky); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color 120ms ease, border-color 120ms ease; }
.btn-sun { background: var(--sun); color: var(--night); }
.btn-sun:hover { background: #F6BC63; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--dusk); }

/* ---------- Hero: the night sky over the horizon ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 70% 110%, #1A3A66 0%, var(--night) 60%); color: #fff; padding-bottom: clamp(4.5rem, 12vh, 7rem); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; }
.con { position: absolute; width: clamp(90px, 11vw, 150px); height: clamp(90px, 11vw, 150px); }
.con { --c-line: var(--light-sky); --c-width: 1.1; --c-line-opacity: 0.55; --c-star: #fff; }
.con-chemistry { right: 30%; top: 16%; }
.con-maths { right: 6%; top: 12%; width: clamp(110px, 14vw, 190px); }
.con-business { right: 15%; top: 46%; }
.con-economics { right: 33%; top: 56%; width: clamp(70px, 8vw, 110px); height: clamp(70px, 8vw, 110px); }
.con-biology { right: 2%; top: 58%; }

.top { position: relative; z-index: 1; width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 2rem; padding: 1.5rem 0; }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.logo img { display: block; height: 32px; width: auto; }
.logo-rule { width: 3px; height: 28px; border-radius: 2px; background: var(--light-sky); }
.logo-academy { font-size: 1.3rem; line-height: 1; color: #B7D3F2; letter-spacing: 0.01em; }
.top-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.top-links a { color: #DCE8F7; text-decoration: none; font-weight: 500; }
.top-links a:hover { color: #fff; }
.top-cta { color: var(--night); background: #fff; padding: 0.5rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.top-cta:hover { background: var(--cloud); }

.hero-copy { position: relative; z-index: 1; width: var(--wrap); margin-inline: auto; padding: clamp(4rem, 13vh, 8rem) 0 clamp(3rem, 8vh, 5rem); }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 1.75rem; }
.hero-copy > p { max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #CFDDF0; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* The horizon line, and the sun that rises from behind it once, as in the logo intro */
.horizon { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 6vh, 3.5rem); height: 3px; background: var(--sky); }
.sun { position: absolute; left: calc((100% - min(1120px, 100% - 3rem)) / 2); bottom: 3px; width: 88px; height: 44px; overflow: hidden; }
.sun::before { content: ""; position: absolute; left: 0; top: 0; width: 88px; height: 88px; border-radius: 50%; border: 11px solid var(--sun); animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) 0.3s both; }
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Sections ---------- */
main section { padding: clamp(4rem, 10vh, 6.5rem) 0; }
main h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.section-lede { max-width: 52ch; color: var(--dusk); font-size: 1.15rem; margin-bottom: 3rem; }

/* Subjects: each one's constellation from the sky above */
.subject-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.subject-list li { padding: 1.5rem 1.25rem 1.6rem; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.subject-mark { display: block; width: 64px; height: 64px; margin-bottom: 1.4rem; }
.subject-mark { --c-line: var(--sky); --c-width: 1.6; --c-star: var(--night); }
.subject-list h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.subject-list p { color: var(--dusk); font-size: 0.98rem; line-height: 1.45; }
.later { margin-top: 1.5rem; color: var(--dusk); }

/* How it works: a path that climbs, step by step */
.how { background: #fff; border-block: 1px solid var(--line); }
.path { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; align-items: end; }
.path li { counter-increment: step; position: relative; padding-top: 4.25rem; border-top: 3px solid var(--sky); }
.path li:nth-child(2) { margin-bottom: 1.5rem; }
.path li:nth-child(3) { margin-bottom: 3rem; }
.path li:nth-child(4) { margin-bottom: 4.5rem; border-top-color: var(--sun); }
.path li::before { content: counter(step); position: absolute; top: 1.1rem; left: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--night); color: #fff; font-weight: 600; }
.path li:nth-child(4)::before { background: var(--sun); color: var(--night); }
.path h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.path p { color: var(--dusk); }

/* Samo SAT */
.sat-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: clamp(2rem, 4vw, 3rem); background: #E4EFFC; border-radius: 20px; }
.sat-inner h2 { margin-bottom: 0.6rem; }
.sat-inner p { max-width: 52ch; color: var(--dusk); font-size: 1.1rem; }

/* Launch */
.launch { background: var(--night); color: #fff; text-align: center; }
.launch h2 { margin-bottom: 1rem; }
.launch p { color: #CFDDF0; font-size: 1.15rem; max-width: 44ch; margin: 0 auto 2rem; }
.launch-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }

/* Footer */
.foot { padding: 2.5rem 0 3rem; }
.foot-inner { display: grid; gap: 0.75rem; justify-items: start; color: var(--dusk); font-size: 0.95rem; }
.foot-inner img { height: 24px; width: auto; }
.foot-note { font-size: 0.85rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .subject-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .path li:nth-child(n) { margin-bottom: 0; }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 2.5rem); }
  .top { gap: 1rem; padding: 1.1rem 0; }
  .top-links { display: none; }
  .logo img { height: 26px; }
  .logo-rule { height: 22px; }
  .logo-academy { font-size: 1.1rem; }
  .con-chemistry, .con-economics { display: none; }
  .con-maths { right: -4%; top: 9%; width: 120px; height: 120px; opacity: 0.8; }
  .con-business { right: 4%; top: auto; bottom: 16%; width: 90px; height: 90px; }
  .con-biology { right: auto; left: 52%; top: auto; bottom: 10%; width: 80px; height: 80px; opacity: 0.6; }
  .hero-copy { padding-top: 5.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .subject-list { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .subject-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 1rem; align-items: center; padding: 1rem 1.1rem; }
  .subject-mark { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .path { grid-template-columns: minmax(0, 1fr); row-gap: 2.25rem; }
  .sat-inner .btn, .launch-links li, .launch-links .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun::before { animation: none; }
}
