/* ── FONTS ── */
@font-face {
  font-family: 'Ailerons';
  src: url('/fonts/Ailerons-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #000000;
  --bg: #0a0a0a;
  --bg-alt: #0f0f0f;
  --surface: #141414;
  --border: #1e1e1e;
  --text: #e0e0e0;
  --text-dim: #888888;
  --accent: #ffeacc;
  --accent-soft: 255, 200, 130;
  --accent-hot: 255, 140, 50;
  --accent-glow: rgba(255, 140, 50, 0.55);
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

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

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

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

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

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: 'Ailerons', var(--font-display), sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.nav__links {
  list-style: none; display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.04em;
  color: var(--text-dim); transition: color 0.3s;
  text-transform: uppercase;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--accent) !important; color: #2a1505 !important;
  padding: 8px 20px; border-radius: 4px; font-weight: 500 !important;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s !important;
  box-shadow: 0 0 18px rgba(var(--accent-hot), 0.4);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(var(--accent-hot), 0.6);
}

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.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 ── */
.hero {
  position: relative; min-height: 100vh; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: var(--black);
}
.hero__particles {
  position: absolute; inset: 0; pointer-events: none;
}
.particle {
  position: absolute; bottom: -10px;
  background: var(--accent);
  border-radius: 50%;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: var(--particle-opacity, 0.3); }
  90% { opacity: var(--particle-opacity, 0.3); }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}
.hero__content {
  position: relative; z-index: 1; text-align: center;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0;
  animation: fade-in-up 1s ease-out;
}
.hero__logo {
  width: 100%; height: 100vh;
  object-fit: cover;
}
.hero__stars {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.hero__stars canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
.hero__bottom {
  position: absolute; bottom: 80px; left: 0; right: 0;
  z-index: 3; text-align: center;
  animation: fade-in-up 1.2s ease-out 0.3s both;
}
.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-dim); max-width: 520px; margin: 0 auto 0;
  font-weight: 300; font-style: italic; letter-spacing: 0.01em;
}

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bob 2s ease-in-out infinite;
}
.hero__scroll a { color: var(--text-dim); transition: color 0.3s; }
.hero__scroll a:hover { color: var(--accent); }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 14px 32px; font-size: 0.85rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 4px; transition: all 0.3s; cursor: pointer;
  border: none; font-family: var(--font-body);
}
.btn--primary {
  background: var(--accent); color: #2a1505;
  box-shadow: 0 0 24px rgba(var(--accent-hot), 0.35),
              0 0 60px rgba(var(--accent-hot), 0.15);
}
.btn--primary:hover {
  background: #fff6e2; transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(var(--accent-hot), 0.6),
              0 0 80px rgba(var(--accent-hot), 0.25);
}
.btn--outline {
  border: 1px solid var(--border); color: var(--text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(var(--accent-hot), 0.25);
}
.btn--lg { padding: 16px 40px; font-size: 0.9rem; }

/* ── SECTIONS ── */
.section { padding: 120px 0; }
.section--dark { background: var(--bg-alt); }
.section--cta {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
}

.section__label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 500; margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(var(--accent-hot), 0.7),
               0 0 24px rgba(var(--accent-hot), 0.4);
}
.section__title {
  font-family: 'Ailerons', var(--font-display), sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section__subtitle {
  font-size: 1.05rem; color: var(--text-dim); max-width: 600px;
  line-height: 1.7; font-weight: 300;
}
.section--cta .section__subtitle,
#live .section__subtitle { margin: 0 auto 48px; }

/* ── ABOUT ── */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; margin-top: 48px; align-items: start;
}
.about__lead {
  font-size: 1.15rem; color: var(--white); line-height: 1.7;
  margin-bottom: 16px; font-weight: 300;
}
.about__text p { color: var(--text-dim); line-height: 1.8; font-weight: 300; }

.about__values { display: flex; flex-direction: column; gap: 24px; }

.value-card {
  padding: 28px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s;
}
.value-card:hover {
  border-color: rgba(255,140,50,0.3);
  transform: translateY(-2px);
}
.value-card__icon {
  color: var(--accent); margin-bottom: 12px;
}
.value-card h3 {
  font-size: 1rem; font-weight: 500; color: var(--white);
  margin-bottom: 6px;
}
.value-card p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; }

/* ── SERVICES ── */
.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 48px;
}
.service-card {
  padding: 36px 28px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.4s, transform 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.4s; transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(255,140,50,0.2);
  transform: translateY(-4px);
}
.service-card__number {
  font-family: var(--font-display); font-size: 2.5rem;
  color: rgba(255,140,50,0.15); line-height: 1; margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.05rem; font-weight: 500; color: var(--white);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; line-height: 1.7; }

/* ── MODELS ── */
.models__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.model-card {
  padding: 40px 32px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); transition: border-color 0.3s, transform 0.3s;
}
.model-card:hover {
  border-color: rgba(255,140,50,0.2);
  transform: translateY(-3px);
}
.model-card--featured {
  border-color: var(--accent);
  background: linear-gradient(170deg, rgba(255,140,50,0.08) 0%, var(--surface) 60%);
}
.model-card__label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); font-weight: 500; margin-bottom: 16px;
}
.model-card h3 {
  font-size: 1.2rem; font-weight: 500; color: var(--white);
  margin-bottom: 12px;
}
.model-card p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; line-height: 1.7; }

.models__note {
  margin-top: 40px; padding: 20px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(255,140,50,0.04);
  border-radius: 0 6px 6px 0;
}
.models__note p { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; }

/* ── LIVE ── */
.live__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 780px; margin: 0 auto;
}
.live-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); font-size: 0.95rem; color: var(--text);
  font-weight: 300;
  transition: border-color 0.3s, transform 0.2s;
}
.live-item:hover {
  border-color: rgba(255,140,50,0.3);
  transform: translateX(4px);
}
.live-item:last-child { grid-column: 1 / -1; justify-content: center; }
.live-item__icon { color: var(--accent); flex-shrink: 0; }

/* ── CONTACT ── */
.contact__actions { margin-top: 40px; }

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer__logo { height: 40px; width: auto; opacity: 0.5; }
.footer__copy { font-size: 0.8rem; color: var(--text-dim); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.revealed { opacity: 1; transform: translateY(0); }

/* stagger children */
.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.model-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.model-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.value-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.value-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.live-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.live-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.live-item.reveal:nth-child(4) { transition-delay: 0.24s; }
.live-item.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .models__grid { grid-template-columns: 1fr; }
  .live__grid { grid-template-columns: 1fr; }
  .live-item:last-child { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 28px; width: 100%; transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__links--open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }

  .services__grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero__bottom { bottom: 60px; }
  .hero__logo {
    object-fit: contain;
    object-position: center;
    height: 100vh;
    transform: scale(1.8);
  }
}

/* ── SELECTION ── */
::selection { background: var(--accent); color: var(--black); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
