:root {
  color-scheme: dark;
  --bg: #030504;
  --panel: rgba(13, 17, 14, 0.84);
  --panel-strong: rgba(24, 22, 16, 0.9);
  --ink: #f1f6e8;
  --muted: #a8b3a1;
  --green: #22f58a;
  --green-deep: #085936;
  --amber: #d49a45;
  --paper: #c28b4e;
  --line: rgba(205, 168, 91, 0.22);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(34, 245, 138, 0.18), transparent 31rem),
    radial-gradient(circle at 12% 86%, rgba(212, 154, 69, 0.12), transparent 24rem),
    linear-gradient(145deg, #010302 0%, #07120d 46%, #050403 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
}

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

button {
  font: inherit;
}

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

.cursor-glow {
  --x: 50vw;
  --y: 22vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at var(--x) var(--y), rgba(34, 245, 138, 0.13), transparent 21rem);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, 0.07) 9px 10px);
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 5, 4, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.brand,
.top-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #05120b;
  background: linear-gradient(135deg, var(--green), #f1d08a);
  box-shadow: 0 0 28px rgba(34, 245, 138, 0.34);
  font-size: 0.78rem;
}

.top-links {
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-links a {
  min-height: 36px;
  padding: 0.55rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-links a:hover {
  color: var(--ink);
  border-color: rgba(34, 245, 138, 0.44);
  transform: translateY(-2px);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 84px);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 10vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(34, 245, 138, 0.18);
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.9vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions,
.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.terminal-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button {
  padding: 0.92rem 1.12rem;
}

.button:hover,
.terminal-actions a:hover {
  border-color: rgba(34, 245, 138, 0.55);
  background: rgba(34, 245, 138, 0.1);
  box-shadow: 0 0 26px rgba(34, 245, 138, 0.14);
  transform: translateY(-2px);
}

.button.primary {
  color: #04130a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #f0cb7c);
}

.button.ghost {
  color: var(--green);
}

.hero-visual {
  perspective: 1000px;
}

.tilt-card {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: end center;
  overflow: hidden;
  border: 1px solid rgba(212, 154, 69, 0.28);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 245, 138, 0.2), transparent 13rem),
    linear-gradient(160deg, rgba(27, 25, 18, 0.95), rgba(4, 8, 7, 0.98));
  box-shadow: var(--shadow), inset 0 0 80px rgba(34, 245, 138, 0.08);
  transform-style: preserve-3d;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.tilt-card::before,
.tilt-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.tilt-card::before {
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.tilt-card::after {
  left: 9%;
  right: 9%;
  bottom: 6%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(34, 245, 138, 0.32), transparent 68%);
  filter: blur(14px);
}

.tilt-card img {
  position: relative;
  z-index: 1;
  width: min(88%, 430px);
  max-height: 510px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.62));
  animation: float 5.5s ease-in-out infinite;
}

.status-chip {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 2;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(34, 245, 138, 0.4);
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
}

.banner-strip {
  overflow: hidden;
  margin: 1rem 0 3.25rem;
  border: 1px solid rgba(212, 154, 69, 0.32);
  border-radius: 28px;
  background: #020302;
  box-shadow: var(--shadow);
}

.banner-strip img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.ticker-tape {
  display: flex;
  gap: 1.4rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid rgba(34, 245, 138, 0.2);
  background: rgba(34, 245, 138, 0.08);
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-tape div {
  display: flex;
  min-width: max-content;
  gap: 1.4rem;
  padding: 1rem 0;
  animation: tape 18s linear infinite;
}

.ticker-tape span {
  white-space: nowrap;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.feature,
.terminal {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature {
  min-height: 245px;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border-radius: 26px;
}

.feature-number {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--green);
  font-weight: 900;
}

.feature h2,
.terminal h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.feature p,
.terminal p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.terminal {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(3rem, 8vw, 5.5rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(34, 245, 138, 0.1), transparent 45%),
    var(--panel-strong);
}

.terminal-actions {
  grid-column: 1 / -1;
}

.terminal-actions a {
  padding: 0.85rem 1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-13px);
  }
}

@keyframes tape {
  to {
    transform: translateX(calc(-100% - 1.4rem));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  .top-links {
    max-width: 220px;
  }

  .hero,
  .terminal {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .tilt-card {
    min-height: 500px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    position: static;
    flex-direction: column;
  }

  .top-links {
    max-width: none;
    justify-content: flex-start;
  }

  .top-links a {
    font-size: 0.82rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .hero-actions,
  .terminal-actions,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .terminal-actions a {
    width: 100%;
  }

  .tilt-card {
    min-height: 420px;
    border-radius: 24px;
  }
}

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