/* Infoplay — premium dark design system (laser-horizon edition) */
:root {
  --color-bg:        #05060a;
  --color-bg-2:      #090b12;
  --color-surface:   rgba(255, 255, 255, 0.025);
  --color-border:    rgba(255, 255, 255, 0.08);
  --color-border-2:  rgba(255, 255, 255, 0.14);
  --color-text:      #eef1fa;
  --color-muted:     #9aa4c0;
  --color-primary:   #22d3ee;
  --color-secondary: #8b5cf6;
  --color-accent:    #ec4899;
  --grad: linear-gradient(100deg, var(--color-primary), var(--color-secondary) 55%, var(--color-accent));
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #262e4d var(--color-bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #262e4d; border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::selection { background: rgba(139, 92, 246, 0.4); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* film grain — keeps large dark areas from banding */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); }
img, canvas { max-width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: #04121a; padding: 0.6rem 1rem;
  border-radius: 0 0 12px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin: 0 0 0.7rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(5, 6, 10, 0.66);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  max-width: var(--max-width); margin: 0 auto; padding: 0.8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem;
  color: var(--color-text); text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.9);
  display: inline-block;
}
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none; margin: 0; padding: 1rem 1.25rem 1.5rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(5, 6, 10, 0.97);
  border-bottom: 1px solid var(--color-border);
  display: none; flex-direction: column; gap: 0.4rem;
}
.nav-menu.is-open { display: flex; }
.nav-menu a {
  display: block; padding: 0.55rem 0.4rem;
  color: var(--color-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border-radius: 8px; transition: color var(--transition);
}
.nav-menu a:hover { color: var(--color-text); }
.nav-cta {
  background: #fff; color: #0a0c14 !important; font-weight: 600;
  text-align: center; border-radius: 999px; padding: 0.5rem 1.2rem !important;
  transition: box-shadow var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { box-shadow: 0 0 24px rgba(139, 92, 246, 0.55); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.8rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-family: var(--font-heading);
  letter-spacing: 0.01em; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn-primary {
  background: #fff; color: #0a0c14;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 40px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 50px rgba(236, 72, 153, 0.45); }
.btn-ghost {
  color: var(--color-text); border: 1px solid var(--color-border-2);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  background: #05060a;
}
#aurora { position: absolute; inset: 0; width: 100%; height: 100%; animation: canvasIn 2.2s ease both; }
@keyframes canvasIn { from { opacity: 0; } to { opacity: 1; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 38%, transparent 40%, rgba(3, 4, 7, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 6.5rem 1.25rem 5rem; max-width: 960px; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow { animation: riseIn 0.9s ease 0.15s both; }
.hero-title   { animation: riseIn 0.9s ease 0.3s both; }
.hero-sub     { animation: riseIn 0.9s ease 0.5s both; }
.hero-actions { animation: riseIn 0.9s ease 0.7s both; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border); border-radius: 999px; padding: 0.42rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-title {
  font-size: clamp(2.5rem, 7.8vw, 5rem);
  font-weight: 700; letter-spacing: -0.04em; margin: 1.3rem 0 1rem;
  text-shadow: 0 4px 40px rgba(5, 6, 10, 0.8);
}
.rotator-wrap { display: inline-block; }
.rotator {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: inline-block; transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotator.is-out { opacity: 0; transform: translateY(0.35em); }
.hero-sub { color: var(--color-muted); max-width: 600px; margin: 0 auto 2.4rem; font-size: clamp(1.02rem, 2.6vw, 1.16rem); }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--color-muted); animation: floaty 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--color-text); }
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.motion-toggle {
  position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--color-muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border); cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.motion-toggle:hover { color: var(--color-text); border-color: var(--color-border-2); }
.motion-toggle .icon-play { display: none; }
.motion-toggle.is-paused .icon-play { display: block; }
.motion-toggle.is-paused .icon-pause { display: none; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg-2); }
.stats-grid {
  max-width: var(--max-width); margin: 0 auto; padding: 2.2rem 1.25rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; text-align: center;
}
.stat + .stat { border-left: 1px solid transparent; }
.stat-num {
  display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.1rem); letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 5rem; }
.work, .services { max-width: var(--max-width); margin: 0 auto; padding: 5.5rem 1.25rem 3rem; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p { color: var(--color-muted); }
.section-head .eyebrow { margin-bottom: 0.7rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.8rem; }
.chip {
  font: 600 0.88rem var(--font-body); color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.chip:hover { color: var(--color-text); border-color: var(--color-border-2); }
.chip.is-active { color: #0a0c14; background: #fff; border-color: transparent; }

/* ---------- Project cards — large, image-first ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-2);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), opacity 0.3s ease;
  will-change: transform;
  isolation: isolate;
}
.card:hover {
  border-color: hsla(var(--h, 240), 70%, 62%, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px hsla(var(--h, 240), 80%, 60%, 0.12);
}
.card.is-hidden { display: none; }
/* pointer-tracking spotlight */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%),
              hsla(var(--h, 240), 90%, 65%, 0.12), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
}
.card:hover::before { opacity: 1; }
/* big, fully visible screenshot */
.card-media {
  position: relative; padding-top: 58%;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: #0b0e1a;
}
.card-media .card-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s ease;
}
.card:hover .card-media .card-bg { transform: scale(1.04); }
.card-body { padding: 1.45rem 1.6rem 1.55rem; }
.card-body h3 { margin-bottom: 0.45rem; font-size: 1.4rem; }
.card-body p { color: var(--color-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.1rem; }
.card-link { color: var(--color-text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-link { color: #fff; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.card-visit {
  color: var(--color-primary); font-weight: 600; font-size: 0.88rem;
  font-family: var(--font-heading); white-space: nowrap;
  transition: transform var(--transition);
}
.card:hover .card-visit { transform: translateX(3px); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.tags li {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--color-muted); border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.18rem 0.6rem; border-radius: 999px;
}
.live-badge {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 700 0.68rem var(--font-heading); letter-spacing: 0.14em;
  color: #34d399; background: rgba(5, 6, 10, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 0.28rem 0.65rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* CTA tile, same size and shape as the project cards */
.card-cta {
  background:
    radial-gradient(120% 130% at 15% 110%, rgba(236, 72, 153, 0.16), transparent 55%),
    radial-gradient(120% 130% at 85% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--color-bg-2);
  border-style: dashed; border-color: var(--color-border-2);
}
.card-cta .card-cta-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; height: 100%; min-height: 380px; padding: 2.4rem 2rem;
}
.card-cta h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.card-cta p { max-width: 460px; margin-bottom: 0; }
.card-cta:hover { border-color: hsla(285, 80%, 65%, 0.7); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.service {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.7rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.service:hover { border-color: var(--color-border-2); transform: translateY(-3px); background: rgba(255, 255, 255, 0.04); }
.service-icon { width: 40px; height: 40px; color: var(--color-primary); margin-bottom: 0.9rem; }
.service p { color: var(--color-muted); font-size: 0.93rem; margin: 0; }

/* ---------- Proof / How we work ---------- */
.proof {
  background:
    radial-gradient(ellipse 70% 90% at 20% 120%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 90% at 85% -20%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--color-bg-2);
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.proof-inner { max-width: 820px; margin: 0 auto; padding: 5.5rem 1.25rem; text-align: center; }
.proof-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.proof-text { color: var(--color-muted); font-size: 1.08rem; margin: 0; }
.proof-text strong { color: var(--color-text); }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -55%; transform: translateX(-50%);
  width: 130%; height: 100%;
  background: radial-gradient(ellipse 50% 55% at 50% 100%, rgba(139, 92, 246, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; padding: 6rem 1.25rem; }
.cta-inner p { color: var(--color-muted); margin-bottom: 2rem; }
.cta-note { font-size: 0.9rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-bg-2); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 2.6rem 1.25rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.footer-brand p { color: var(--color-muted); font-size: 0.9rem; margin: 0.5rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--color-muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-text); }
.footer-note { color: #566083; font-size: 0.82rem; margin: 0; }

/* ---------- Start page / forms ---------- */
.page-hero {
  padding: 8.5rem 1.25rem 3rem; text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% -20%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--color-bg);
}
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.page-hero p { color: var(--color-muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.page-hero strong { color: var(--color-text); }

.form-wrap { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.25rem 5.5rem; }
.form-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field .opt { color: var(--color-muted); font-weight: 400; font-size: 0.82rem; }
.req::after { content: " *"; color: var(--color-accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--color-text);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 0.72rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: #55618a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.field select { -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa7c7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
.field select option { background: #0b0e1a; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; margin-top: 0.6rem; }
.form-actions .btn { width: 100%; }
.form-note { color: var(--color-muted); font-size: 0.85rem; margin: 0.9rem 0 0; }
.form-status { text-align: center; padding: 2.5rem 1rem; }
.form-status h2 { margin-bottom: 0.6rem; }
.form-status p { color: var(--color-muted); max-width: 480px; margin: 0 auto; }
.form-success h2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.form-error h2 { color: #f87171; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex; flex-direction: row; align-items: center;
    background: none; border: 0; padding: 0; gap: 0.4rem;
  }
  .nav-menu a { padding: 0.45rem 0.85rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; min-width: 320px; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
