:root {
  --bg: #070b15;
  --text: #ffffff;
  --muted: rgba(255,255,255,.88);
  --cyan: #31e9ff;
  --pink: #ff4fd8;
  --yellow: #ffd84a;
  --purple: #8b5cf6;
  --panel: rgba(10, 14, 27, .62);
  --border: rgba(255,255,255,.18);
  --shadow: 0 18px 55px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 20%, rgba(49,233,255,.15), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255,79,216,.18), transparent 32%),
    linear-gradient(145deg, #0a0f20 0%, #120b22 52%, #07121b 100%);
}

.retro-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
}

.glow {
  position: fixed;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .24;
  pointer-events: none;
  z-index: -2;
  animation: floatGlow 8s ease-in-out infinite alternate;
}
.glow-a { top: 14%; left: -90px; background: var(--cyan); }
.glow-b { right: -100px; bottom: 8%; background: var(--pink); animation-delay: -3s; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 18px 10px;
  background: linear-gradient(to bottom, rgba(5,8,16,.82), transparent);
  pointer-events: none;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 48px;
  pointer-events: auto;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: min(42vw, 180px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.brand-fallback {
  display: none;
  font-weight: 1000;
  letter-spacing: .06em;
  font-size: 1.15rem;
  text-shadow: 0 0 18px rgba(49,233,255,.6);
}
.brand.is-fallback .brand-logo { display: none; }
.brand.is-fallback .brand-fallback { display: inline-block; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://i.ibb.co/ksV5q77T/314f883b-f500-4dd7-b108-5addf1f47053.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  animation: heroDrift 14s ease-in-out infinite alternate;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,7,14,.30) 0%, rgba(4,7,14,.38) 36%, rgba(4,7,14,.90) 78%, rgba(4,7,14,.98) 100%),
    linear-gradient(90deg, rgba(4,7,14,.20), transparent 42%, rgba(4,7,14,.20));
}

.hero-content {
  width: 100%;
  padding: 104px 16px calc(20px + env(safe-area-inset-bottom));
}
.content-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 24px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17,24,39,.54), rgba(7,10,20,.78));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: riseIn .7s ease both;
}
.brand-kicker {
  margin-bottom: 9px;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(49,233,255,.75);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.05rem, 10vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 1000;
  text-wrap: balance;
  background: linear-gradient(90deg, #fff 0%, var(--yellow) 36%, #fff 66%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 7px 22px rgba(0,0,0,.35));
}
.hero-description {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(.96rem, 3.8vw, 1.12rem);
  line-height: 1.62;
  font-weight: 750;
  text-wrap: pretty;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 22px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: .06em;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease;
  user-select: none;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn-primary {
  color: #11131a;
  background: linear-gradient(135deg, var(--yellow), #ff8a3d 48%, #ff5dc8 100%);
  box-shadow: 0 14px 34px rgba(255,140,61,.30), 0 0 28px rgba(255,79,216,.16);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(255,140,61,.42), 0 0 34px rgba(255,79,216,.26); }
.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, rgba(49,233,255,.16), rgba(139,92,246,.20));
  border-color: rgba(49,233,255,.45);
  box-shadow: 0 12px 30px rgba(49,233,255,.10);
}
.btn-secondary:hover { border-color: rgba(49,233,255,.72); filter: brightness(1.08); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.015) translate3d(0,0,0); }
  to { transform: scale(1.045) translate3d(0,-6px,0); }
}
@keyframes floatGlow {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(28px,-20px,0) scale(1.12); }
}

@media (min-width: 700px) {
  .site-header { padding-left: 32px; padding-right: 32px; }
  .hero { align-items: center; }
  .hero-content { padding: 118px 34px 42px; }
  .content-card { margin-left: max(0px, calc((100vw - 1180px)/2)); padding: 34px; }
  .cta-row { grid-template-columns: minmax(180px, 1.15fr) minmax(160px, .85fr); }
  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(4,7,14,.90) 0%, rgba(4,7,14,.68) 34%, rgba(4,7,14,.20) 66%, rgba(4,7,14,.28) 100%),
      linear-gradient(to top, rgba(4,7,14,.68), transparent 52%);
  }
}

@media (min-width: 1100px) {
  .hero-bg { background-position: center center; }
  .content-card { width: min(620px, 46vw); }
}

@media (max-width: 699px) {
  .hero-bg { background-position: center top; }
  .hero-content { padding-top: 42svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
