/* ===== Design tokens ===== */
:root {
  --bg: #070b16;
  --bg-2: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --muted: #94a0b8;
  --brand: #cb0441;
  --brand-2: #ff3d7f;
  --accent: #22e0c4;
  --radius: 18px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo__text { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Background ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(203,4,65,0.25), transparent 55%),
              radial-gradient(circle at 70% 40%, rgba(255,61,127,0.22), transparent 55%);
  filter: blur(40px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  font-family: inherit;
}
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--full { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 8px 30px rgba(203,4,65,0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(203,4,65,0.5); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,11,22,0.75); backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 16px rgba(203,4,65,0.4);
}
.logo__mark--img { object-fit: cover; background: none; padding: 0; }
.logo__text { font-size: 1.15rem; }
.logo__accent { color: var(--muted); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 170px 0 100px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 28px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34,224,196,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,224,196,0); } }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.08; max-width: 900px; }
.gradient-text {
  background: linear-gradient(120deg, var(--brand), var(--accent), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__subtitle { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 640px; margin: 24px 0 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num, .stat__suffix { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; }
.stat__suffix { color: var(--brand); }
.stat__label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.stat__num + .stat__suffix { margin-left: -4px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin: 14px 0; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(203,4,65,0.12), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(203,4,65,0.4); }
.card:hover::before { opacity: 1; }
.card--featured { background: linear-gradient(160deg, rgba(203,4,65,0.12), rgba(255,61,127,0.06)); border-color: rgba(203,4,65,0.3); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(203,4,65,0.2), rgba(255,61,127,0.15));
  border: 1px solid var(--border); color: var(--brand);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.3rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.card__list li { color: var(--text); font-size: 0.9rem; padding-left: 22px; position: relative; }
.card__list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about__text { color: var(--muted); margin: 16px 0 28px; }
.about__text strong { color: var(--text); }
.about__points { display: flex; flex-direction: column; gap: 16px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point__check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(34,224,196,0.15); color: var(--accent); font-weight: 700; font-size: 0.85rem;
}
.point strong { display: block; font-size: 0.98rem; }
.point p { color: var(--muted); font-size: 0.9rem; }

/* Orbit visual */
.about__visual { display: grid; place-items: center; }
.orbit { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }
.orbit__core {
  width: 90px; height: 90px; border-radius: 24px; display: grid; place-items: center;
  overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 50px rgba(203,4,65,0.5); z-index: 2;
}
.orbit__core img { width: 100%; height: 100%; object-fit: cover; }
.orbit__ring { position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.orbit__ring span {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.orbit__ring--1 { width: 170px; height: 170px; animation: spin 8s linear infinite; }
.orbit__ring--2 { width: 240px; height: 240px; animation: spin 14s linear infinite reverse; }
.orbit__ring--2 span { background: var(--brand); box-shadow: 0 0 14px var(--brand); }
.orbit__ring--3 { width: 310px; height: 310px; animation: spin 22s linear infinite; }
.orbit__ring--3 span { background: var(--brand-2); box-shadow: 0 0 14px var(--brand-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Focus ===== */
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.focus__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: border-color .3s, transform .3s var(--ease);
}
.focus__item:hover { border-color: rgba(203,4,65,0.4); transform: translateY(-4px); }
.focus__num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--brand); opacity: 0.5; }
.focus__item h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.focus__item p { color: var(--muted); font-size: 0.95rem; }

/* ===== Team ===== */
.team-grid { display: grid; gap: 24px; }
.team-grid--lead { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.team-grid--dev { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.team-subhead {
  text-align: center; font-size: 1.15rem; color: var(--muted); font-weight: 600;
  margin: 56px 0 4px; text-transform: uppercase; letter-spacing: 0.1em;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: transform .35s var(--ease), border-color .35s;
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(203,4,65,0.4); }
.team-card--sm { padding: 26px 20px; }
.team-card__photo {
  position: relative; width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: linear-gradient(160deg, rgba(203,4,65,0.16), rgba(255,61,127,0.08));
  border: 1px solid var(--border);
}
.team-card--sm .team-card__photo { width: 92px; height: 92px; }
.team-card__photo svg { width: 46px; height: 46px; }
.team-card__photo--img { overflow: hidden; padding: 0; }
.team-card__photo--img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__badge {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--border);
}
.team-card__name { font-size: 1.2rem; margin-bottom: 4px; }
.team-card__role {
  color: var(--brand); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.team-card__bio { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.team-card__social { display: flex; gap: 10px; justify-content: center; }
.team-card__social a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: 0.85rem; transition: color .2s, border-color .2s, background .2s;
}
.team-card__social a:hover { color: var(--text); border-color: rgba(203,4,65,0.5); background: rgba(203,4,65,0.12); }

/* ===== CTA ===== */
.cta {
  position: relative; text-align: center; border-radius: 28px; padding: 64px 32px;
  background: linear-gradient(160deg, rgba(203,4,65,0.1), rgba(255,61,127,0.06));
  border: 1px solid var(--border); overflow: hidden;
}
.cta__glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; background: radial-gradient(circle, rgba(203,4,65,0.3), transparent 60%);
  filter: blur(60px); pointer-events: none;
}
.cta__title { font-size: clamp(1.7rem, 4vw, 2.6rem); position: relative; }
.cta__text { color: var(--muted); margin: 14px auto 32px; max-width: 480px; position: relative; }
.cta__form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin: 0 auto; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  background: rgba(7,11,22,0.6); border: 1px solid var(--border); color: var(--text); transition: border-color .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.cta__form .btn { grid-column: 1 / -1; }
.cta__note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--accent); min-height: 20px; }

/* Screen-reader-only label */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Newsletter ===== */
.newsletter {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 46px 40px; border-radius: 28px;
  background: linear-gradient(120deg, rgba(34,224,196,0.09), rgba(203,4,65,0.09));
  border: 1px solid var(--border);
}
.newsletter__title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newsletter__text { color: var(--muted); font-size: 0.98rem; margin-top: 10px; }
.newsletter__form { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter__form .field { flex: 1 1 220px; }
.newsletter__form .btn { flex: 0 0 auto; }
.newsletter__note { flex: 1 1 100%; font-size: 0.9rem; color: var(--accent); min-height: 20px; margin: 0; }
.newsletter__fineprint { color: var(--muted); font-size: 0.8rem; margin-top: 4px; flex: 1 1 100%; }

/* Stacked variant used on the dedicated newsletter page */
.newsletter--stacked { grid-template-columns: 1fr; text-align: center; max-width: 640px; margin: 0 auto; padding: 56px 32px; }
.newsletter--stacked .newsletter__form { justify-content: center; }
.newsletter--stacked .newsletter__text { margin: 12px auto 26px; max-width: 460px; }

.newsletter-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }

/* ===== Application form (internship) ===== */
.appform {
  position: relative; max-width: 760px; margin: 0 auto;
  display: grid; gap: 26px;
}
.appform__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; display: grid; gap: 22px;
}
.appform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.appform__q { display: grid; gap: 10px; }
.appform__q--full { grid-column: 1 / -1; }
.appform__label { font-weight: 600; font-size: 0.97rem; line-height: 1.45; }
.appform__req { color: var(--brand-2); margin-left: 3px; }
.appform__hint { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; margin-top: 3px; }
.appform select {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  background: rgba(7,11,22,0.6); border: 1px solid var(--border); color: var(--text);
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.appform select:focus { outline: none; border-color: var(--brand); }
.appform select option { background: var(--bg-2); color: var(--text); }

/* Radio / checkbox option lists */
.options { display: grid; gap: 10px; }
.options--inline { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.option {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; font-size: 0.93rem;
  background: rgba(7,11,22,0.45); border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.option:hover { border-color: rgba(203,4,65,0.4); background: rgba(203,4,65,0.06); }
.option input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; cursor: pointer; }
.option:has(input:checked) { border-color: rgba(203,4,65,0.55); background: rgba(203,4,65,0.1); }
.option--declaration { align-items: flex-start; line-height: 1.5; }

.appform__actions { display: grid; gap: 14px; justify-items: center; }
.appform__note { font-size: 0.92rem; color: var(--accent); min-height: 20px; text-align: center; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: var(--bg-2); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; }
.footer__tag { color: var(--muted); font-size: 0.95rem; max-width: 420px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.social { display: flex; gap: 12px; justify-content: center; margin-top: 4px; }
.social__link {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: transform .25s var(--ease), color .25s, border-color .25s, background .25s;
}
.social__link svg { width: 19px; height: 19px; }
.social__link:hover {
  color: #fff; transform: translateY(-3px);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; box-shadow: 0 8px 22px rgba(203,4,65,0.4);
}
.footer__bottom { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__bottom p { color: var(--muted); font-size: 0.85rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .focus, .team-grid--dev, .newsletter-perks { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 26px; padding: 38px 26px; }
  .appform__row { grid-template-columns: 1fr; }
  .team-grid--lead { grid-template-columns: 1fr; max-width: 420px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { order: -1; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 72px; right: 0; left: 0; flex-direction: column; gap: 18px;
    background: rgba(7,11,22,0.97); backdrop-filter: blur(14px); padding: 28px 24px;
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 130px; }
  .hero__stats { gap: 32px; }
  .cta__form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
