/* Old Rookies — Tema negro */
:root {
  --bg: #050505;
  --bg-elev: #0c0c0c;
  --surface: #141414;
  --surface-hover: #1c1c1c;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #0080f0;
  --accent-hover: #2f9dff;
  --radius: 14px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container--narrow {
  max-width: 820px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand img {
  height: 60px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch__btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch__btn.active {
  background: var(--accent);
  color: #000;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 16px;
  max-width: 560px;
}

/* ---------- About ---------- */
.about {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__content p {
  color: var(--muted);
  margin-top: 18px;
  max-width: 540px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.project-card__tagline {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card__desc {
  color: var(--muted);
}

.project-card__platforms {
  margin-top: auto;
  padding-top: 10px;
}

.project-card__available {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

.platform-badge svg {
  color: var(--accent);
}

.project-card__links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel__viewport {
  width: 100%;
  height: 100%;
}

.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__media {
  width: 100%;
  height: 100%;
  background: #000;
}

img.carousel__media {
  object-fit: cover;
}

img.carousel__media--contain {
  object-fit: contain;
}

video.carousel__media {
  object-fit: contain;
  background: #000;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}

.carousel__arrow:hover {
  background: rgba(0, 0, 0, 0.85);
}

.carousel__arrow--prev {
  left: 12px;
}

.carousel__arrow--next {
  right: 12px;
}

.carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.15s ease;
}

.carousel__dot.is-active {
  background: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  text-align: center;
}

.contact .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.contact__email {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  transition: color 0.15s ease;
}

.contact__email:hover {
  color: var(--accent);
}

.contact__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo {
  height: 32px;
  width: auto;
}

.footer__copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer__legal a:hover {
  color: var(--text);
}

/* ---------- Legal ---------- */
.legal {
  padding: 72px 0;
}

.legal__back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal__back:hover {
  color: var(--text);
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1;
}

.legal__intro {
  color: var(--muted);
  margin-top: 16px;
}

.legal__section {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.legal__section-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legal__body {
  padding: 28px;
}

.legal__body h2 {
  display: none;
}

.legal__body h3 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
}

.legal__body h3:first-child {
  margin-top: 0;
}

.legal__body p,
.legal__body ul {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

.legal__body ul {
  padding-left: 20px;
}

.legal__body a {
  color: var(--accent);
}

.legal__body strong {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 12px 0;
  }

  .hero {
    padding: 80px 0 72px;
  }

  section {
    padding: 64px 0;
  }

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

  .header-inner {
    height: 68px;
  }

  .brand img {
    height: 48px;
  }
}
