/* ============================================
   GOA.ONE — Coming Soon
   Dark cinematic / premium automotive
   ============================================ */

/* ============================================
   ЗАМЕНА ШРИФТОВ — менять только здесь:
   1. строка @import ниже (URL с Google Fonts)
   2. переменные --font-display и --font-mono в :root
   Больше нигде названия шрифтов не встречаются.
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;500;700&family=IBM+Plex+Mono:wght@300;400&display=swap');

:root {
  --bg: #070708;
  --surface: #0d0d0f;
  --text: #e8e6e1;
  --text-dim: #6b6b70;
  --accent: #ff5a1f;
  --accent-dim: rgba(255, 90, 31, 0.35);
  --border: rgba(232, 230, 225, 0.12);
  --font-display: 'Oswald', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}

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

/* ---------- 3D-фон ---------- */

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ---------- Зерно и скан-линия ---------- */

.grain {
  position: fixed;
  inset: -100%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 3%); }
  50%  { transform: translate(3%, -2%); }
  75%  { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.scanline {
  position: fixed;
  left: 0;
  right: 0;
  top: -10%;
  height: 18vh;
  z-index: 51;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 90, 31, 0.04) 50%,
    transparent
  );
  animation: scan 9s linear infinite;
}

@keyframes scan {
  0%   { transform: translateY(-20vh); }
  100% { transform: translateY(130vh); }
}

/* ---------- Прелоадер ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(420px, 80vw);
}

.preloader__label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-dim);
}

.preloader__counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.9;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.preloader__bar {
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Рамка кадра ---------- */

.frame { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

.frame__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
}

.frame__corner--tl { top: 24px; left: 24px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.frame__corner--tr { top: 24px; right: 24px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.frame__corner--bl { bottom: 24px; left: 24px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.frame__corner--br { bottom: 24px; right: 24px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 56px;
  opacity: 0;
}

.header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 14px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%      { opacity: 0.25; box-shadow: none; }
}

/* ---------- Герой ---------- */

.hero {
  position: relative;
  z-index: 20;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.hero__tilt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 0 24px;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--accent);
  opacity: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 7.5vw, 104px);
  line-height: 1.04;
  letter-spacing: 0.015em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__line-inner {
  display: inline-block;
  transform: translateY(110%) rotateX(-55deg);
  transform-origin: top center;
  will-change: transform;
}

.hero__line-inner--accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-dim);
}

.hero__meta {
  display: flex;
  align-items: stretch;
  gap: 28px;
  border: 1px solid var(--border);
  padding: 16px 24px;
  margin-top: 12px;
  opacity: 0;
  background: rgba(13, 13, 15, 0.55);
  backdrop-filter: blur(4px);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__meta-label {
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--text-dim);
}

.hero__meta-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.hero__meta-sep { width: 1px; background: var(--border); }

/* ---------- Подвал ---------- */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 56px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  opacity: 0;
}

.footer__center { color: var(--text); }

/* ---------- Адаптив ---------- */

@media (max-width: 720px) {
  .header { padding: 24px 20px; }
  .footer { padding: 22px 20px; font-size: 8px; letter-spacing: 0.2em; }
  .footer span:first-child { display: none; }
  .hero__meta { gap: 16px; padding: 12px 16px; }
  .hero__meta-value { font-size: 15px; }
  .frame__corner--tl, .frame__corner--tr { top: 14px; }
  .frame__corner--bl, .frame__corner--br { bottom: 14px; }
  .frame__corner--tl, .frame__corner--bl { left: 14px; }
  .frame__corner--tr, .frame__corner--br { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scanline, .dot { animation: none; }
}
