:root {
  --ink: #0B0F1A;
  --ink-soft: #131A2C;
  --paper: #FFFFFF;
  --paper-warm: #F7F8FB;
  --blue: #3EA6FF;
  --blue-deep: #2F6FED;
  --purple: #9B5CFA;
  --grad: linear-gradient(90deg, var(--blue), var(--purple));
  --slate: #6B7385;
  --line: #E2E5EC;
  --line-on-ink: rgba(255,255,255,0.14);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
p { margin: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: float-orb 14s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .glow-orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 0 0 0 rgba(155,92,250,0.5); animation: btn-pulse 2.6s ease-in-out infinite; }
.btn-primary:hover { opacity: 0.92; }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,92,250,0.35); }
  50% { box-shadow: 0 0 22px 4px rgba(155,92,250,0.35); }
}
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark { border-color: var(--line-on-ink); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 16px 30px; font-size: 17px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.site-footer .brand-mark { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--slate); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--ink); }

@media (max-width: 760px) { .main-nav { display: none; } }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--blue-deep); }

/* HERO — TERMINAL */
.hero { background: #05070D; padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero .glow-orb-1 { width: 340px; height: 340px; top: -80px; left: -60px; background: radial-gradient(circle, rgba(62,166,255,0.35), transparent 70%); }
.hero .glow-orb-2 { width: 380px; height: 380px; bottom: -120px; right: -80px; background: radial-gradient(circle, rgba(155,92,250,0.32), transparent 70%); animation-delay: -6s; }
.hero-inner { position: relative; z-index: 1; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }

.terminal {
  width: 100%;
  max-width: 720px;
  background: #0A0D14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(62,166,255,0.06), 0 30px 80px -20px rgba(59,130,246,0.25), 0 0 60px -10px rgba(155,92,250,0.15);
  overflow: hidden;
  animation: terminal-glow 5s ease-in-out infinite;
}
@keyframes terminal-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(62,166,255,0.06), 0 30px 80px -20px rgba(59,130,246,0.25), 0 0 60px -10px rgba(155,92,250,0.15); }
  50% { box-shadow: 0 0 0 1px rgba(155,92,250,0.1), 0 30px 90px -15px rgba(59,130,246,0.35), 0 0 80px -5px rgba(155,92,250,0.25); }
}
@media (prefers-reduced-motion: reduce) { .terminal { animation: none; } }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #10131C;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.terminal-body {
  padding: 28px 26px 32px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.9;
  min-height: 220px;
}
.term-line { color: rgba(255,255,255,0.85); white-space: pre-wrap; word-break: break-word; }
.term-line .prompt { color: var(--blue); }
.term-line.term-out { color: rgba(255,255,255,0.5); }
.cursor { color: var(--purple); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn-outline { border-color: var(--line-on-ink); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* TRUST / MARQUEE */
.trust { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee {
  overflow: hidden;
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: scroll-marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.marquee-logo:hover { border-color: var(--blue); transform: translateY(-1px); }
.marquee-logo img { height: 26px; width: auto; max-width: 140px; object-fit: contain; }
.marquee-empty { color: var(--slate); font-family: var(--font-mono); font-size: 13px; padding: 0 24px; }

/* SERVICES */
.systems { padding: 96px 0; }
.systems h2, .work h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 20ch; margin-bottom: 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--paper);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(59,130,246,0.35);
  z-index: 2;
}
.feature-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  margin-bottom: 16px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--slate); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* SPOTLIGHT (raffle & ticketing) */
.spotlight { background: var(--ink-soft); padding: 96px 0; position: relative; overflow: hidden; }
.spotlight .glow-orb { width: 300px; height: 300px; top: -60px; right: 10%; background: radial-gradient(circle, rgba(155,92,250,0.28), transparent 70%); }
.spotlight-inner { position: relative; z-index: 1; }
.spotlight-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.spotlight h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 16px; max-width: 16ch; }
.spotlight-desc { color: rgba(255,255,255,0.68); font-size: 15.5px; line-height: 1.6; margin-bottom: 24px; max-width: 46ch; }
.spotlight .btn-outline { border-color: var(--line-on-ink); color: #fff; }
.spotlight .btn-outline:hover { background: #fff; color: var(--ink); }

@media (max-width: 860px) { .spotlight-inner { grid-template-columns: 1fr; } }

.ticket {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--paper-warm);
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55);
  overflow: hidden;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.ticket-row-top { color: var(--ink); }
.ticket-no { font-weight: 700; }
.ticket-tag { background: var(--purple); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; }
.ticket-row-bottom { background: var(--ink); color: rgba(255,255,255,0.65); text-transform: uppercase; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 24px; }
.perf::before, .perf::after {
  content: ''; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-soft);
}
.perf::before { left: -33px; }
.perf::after { right: -33px; }
.ticket-body { padding: 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.ticket-line {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}
.ticket-line::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

/* WORK */
.work { background: var(--paper-warm); padding: 96px 0; }
.case-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case { display: flex; align-items: center; gap: 24px; background: var(--paper); padding: 26px 28px; transition: background 0.15s ease; }
.case:hover { background: #fff; }
.case:hover .case-arrow { transform: translateX(4px); color: var(--purple); }
.case-no {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 44px;
}
.case-body { flex: 1; }
.case-body h3 { font-size: 18px; margin-bottom: 6px; }
.case-body p { color: var(--slate); font-size: 14.5px; }
.case-arrow { font-size: 20px; color: var(--slate); transition: transform 0.15s ease, color 0.15s ease; }

@media (max-width: 640px) { .case { flex-wrap: wrap; } }

/* PROCESS */
.process { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--line); }
.process h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 22ch; margin-bottom: 48px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step { position: relative; padding-top: 8px; }
.process-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  margin-bottom: 16px;
}
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { color: var(--slate); font-size: 14px; line-height: 1.55; }

@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

/* INDUSTRIES */
.industries { background: var(--ink); padding: 56px 0; position: relative; overflow: hidden; }
.industries .glow-orb { width: 280px; height: 280px; bottom: -100px; left: 15%; background: radial-gradient(circle, rgba(62,166,255,0.25), transparent 70%); }
.industries-inner { text-align: center; position: relative; z-index: 1; }
.industries .eyebrow-dark { color: var(--purple); }
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.industry-tags span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  padding: 8px 18px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.industry-tags span:hover {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  transform: translateY(-2px);
}

/* CONTACT */
.contact { padding: 100px 0; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 16ch; margin-bottom: 14px; }
.contact-sub { color: var(--slate); max-width: 46ch; margin-bottom: 30px; }

.contact-form { width: 100%; max-width: 480px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-row-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-status { font-size: 14px; min-height: 20px; color: var(--slate); }
.form-status.is-success { color: #2f7a4d; }
.form-status.is-error { color: #c0293e; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-inner .brand { font-size: 16px; }
.footer-inner p { color: var(--slate); font-size: 13.5px; }
