:root {
  --ink: #14040f;
  --ink-2: #1f0619;
  --ink-3: #2a0922;
  --bolt: #9b1fb0;
  --bolt-deep: #6d0f82;
  --pink: #ff8db8;
  --lilac: #c79be3;
  --violet: #b58cf0;
  --text: #fbeef8;
  --muted: rgba(251, 238, 248, .7);
  --faint: rgba(251, 238, 248, .45);
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .05);
  --gradient: linear-gradient(100deg, var(--pink) 0%, var(--lilac) 55%, var(--violet) 100%);
  --radius: 18px;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: .95; letter-spacing: .01em; }

h2 { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5rem); }

h3 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }

p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--text); color: var(--ink); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arrow-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: 0 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }

.button-primary {
  background: linear-gradient(120deg, var(--bolt), #c02fa0 60%, var(--pink));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(190, 50, 180, .8);
}
.button-primary:hover { box-shadow: 0 14px 40px -10px rgba(255, 141, 184, .8); }

.button-ghost { border-color: rgba(251, 238, 248, .35); color: var(--text); background: rgba(20, 4, 15, .35); backdrop-filter: blur(6px); }
.button-ghost:hover { border-color: var(--pink); }

.button-small { min-height: 40px; padding: 0 1.1rem; font-size: .85rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--pink); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  transition: background .3s ease, border-color .3s ease, height .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(20, 4, 15, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 400 1.6rem/1 var(--display); letter-spacing: .06em; text-decoration: none;
}
.wordmark span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bolt-mark { width: 26px; height: 26px; fill: var(--bolt); filter: drop-shadow(0 0 8px rgba(190, 60, 220, .8)); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--muted); transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--text); padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255, 141, 184, .5); background: rgba(155, 31, 176, .25);
}
.site-nav .nav-cta:hover { background: rgba(155, 31, 176, .5); }

.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 5rem;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 30%, #3a0d30 0%, var(--ink) 70%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(20, 4, 15, .75) 100%),
    linear-gradient(to bottom, transparent 70%, var(--ink) 100%);
}
.hero-inner { max-width: 900px; text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.hero-logo { width: clamp(160px, 22vw, 240px); height: auto; filter: drop-shadow(0 0 30px rgba(155, 31, 176, .6)); }
.hero h1 { font-family: var(--display); font-size: clamp(3.8rem, 12vw, 9.5rem); line-height: .86; }
.hero-lede { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .4rem; }

.scroll-cue {
  position: absolute; bottom: 1.8rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(251, 238, 248, .4); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--pink); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* Sections */
.section {
  --section-pad: clamp(5rem, 11vw, 8.5rem);
  padding: var(--section-pad) 0; position: relative;
  /* Land just below the compact 64px header rather than above the section's own padding. */
  scroll-margin-top: calc(64px + 1.5rem - var(--section-pad));
}
.section-wrap { width: min(1200px, 100% - clamp(2.5rem, 8vw, 6rem)); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1rem; }
.section-intro { color: var(--muted); font-size: 1.06rem; max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac);
}
.eyebrow span {
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.6rem; padding: 0 .5rem;
  border-radius: 999px; border: 1px solid rgba(199, 155, 227, .4); color: var(--pink); letter-spacing: .05em;
}

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }

.work-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(255, 141, 184, .45); box-shadow: 0 30px 60px -30px rgba(155, 31, 176, .7); }

.work-frame { margin: .9rem .9rem 0; border-radius: 12px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.frame-bar, .frame-dots { display: flex; align-items: center; gap: 6px; }
.frame-bar { padding: .55rem .75rem; background: rgba(255, 255, 255, .05); font-size: .72rem; color: var(--faint); }
.frame-bar i, .frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.frame-bar i:first-child, .frame-dots i:first-child { background: #ff6f91; }
.frame-bar i:nth-child(2), .frame-dots i:nth-child(2) { background: #ffc66d; }
.frame-bar i:nth-child(3), .frame-dots i:nth-child(3) { background: var(--violet); }
.frame-bar span { margin-left: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.frame-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.frame-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease, opacity .4s ease; }
.work-card:hover .frame-view img { transform: scale(1.03); }
.frame-view iframe {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0;
  transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; background: #fff;
}
.frame-view.is-live iframe { opacity: 1; }
.frame-view.is-live img { opacity: 0; }
.frame-view.is-live::after {
  content: "LIVE"; position: absolute; top: .6rem; right: .6rem;
  padding: .2rem .5rem; border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .1em;
  background: rgba(20, 4, 15, .8); color: var(--pink); border: 1px solid rgba(255, 141, 184, .5);
}

.work-body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.work-tag { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.work-body > p:not(.work-tag) { color: var(--muted); font-size: .95rem; }
.work-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: .6rem; }

/* Services */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service-card {
  padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass);
  display: grid; gap: .7rem; align-content: start; transition: border-color .3s ease, background .3s ease;
}
.service-card:hover { border-color: rgba(199, 155, 227, .45); background: rgba(155, 31, 176, .1); }
.service-card svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  fill: none; stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(155, 31, 176, .22); border: 1px solid rgba(255, 141, 184, .25);
}
.service-card p { color: var(--muted); font-size: .95rem; }

/* Pricing */
.pricing .section-head { margin-bottom: 1.5rem; }
.price-headline { font-size: clamp(3.4rem, 10vw, 8rem); line-height: .9; }
.price-note { margin-top: 1.4rem; color: var(--faint); font-size: .85rem; }

/* About */
.about { background: radial-gradient(ellipse at 90% 50%, rgba(155, 31, 176, .18), transparent 60%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-grid h2 { margin-top: 1rem; }
.about-copy { display: grid; gap: 1.2rem; color: var(--muted); font-size: 1.06rem; }
.about-copy a { color: var(--pink); font-weight: 700; }
.about-points { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .9rem; }
.about-points li {
  position: relative; overflow: hidden; display: grid; gap: .15rem; padding: 1rem 1.2rem;
  border-left: 2px solid var(--bolt); background: var(--glass); border-radius: 0 12px 12px 0;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.about-points li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 141, 184, .18) 50%, transparent 70%);
  transform: translateX(-100%);
}
.about-points li:hover {
  transform: translateX(8px); border-color: var(--pink); background: rgba(155, 31, 176, .14);
  box-shadow: -6px 0 20px -6px rgba(255, 141, 184, .6);
}
.about-points li:hover::after { transform: translateX(100%); transition: transform .7s ease; }
.about-points li:hover strong { color: var(--pink); }
.about-points strong { color: var(--text); transition: color .3s ease; }
.about-points span { font-size: .95rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--ink) 0%, #230720 100%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 1.2rem; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; max-width: 440px; }
.contact-email { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--pink); text-decoration: none; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 5px; }

.contact-form {
  display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(20, 4, 15, .6); color: var(--text);
  font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pink) 50%), linear-gradient(135deg, var(--pink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-row select option { background: var(--ink-2); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 141, 184, .2); }
.form-honeypot { position: absolute; left: -9999px; }
.character-count { justify-self: end; font-size: .75rem; color: var(--faint); }
.form-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { color: var(--faint); font-size: .85rem; }
.turnstile-wrap { min-height: 65px; }

/* Footer */
.site-footer {
  display: grid; justify-items: center; gap: .6rem; text-align: center;
  padding: 3rem 1.25rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .9rem;
}
.footer-logo { width: 140px; height: auto; margin-top: .8rem; }

/* Preview dialog */
.preview-dialog {
  width: min(1320px, 96vw); height: min(900px, 92vh); max-width: none; max-height: none;
  padding: 0; border: 1px solid rgba(255, 141, 184, .3); border-radius: 16px;
  background: var(--ink-2); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
}
.preview-dialog[open] { display: flex; flex-direction: column; animation: pop .25s ease; }
.preview-dialog::backdrop { background: rgba(10, 2, 8, .8); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }

.preview-toolbar {
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.preview-url {
  flex: 1; min-width: 0; padding: .4rem .9rem; border-radius: 999px; background: rgba(20, 4, 15, .7);
  font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-devices { display: flex; padding: 3px; border-radius: 999px; background: rgba(20, 4, 15, .7); }
.preview-devices button {
  border: 0; background: none; color: var(--muted); font: 600 .78rem/1 var(--body);
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
}
.preview-devices button[aria-pressed="true"] { background: var(--bolt); color: #fff; }
.preview-open { font-size: .82rem; font-weight: 700; color: var(--pink); text-decoration: none; white-space: nowrap; }
.preview-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.preview-close:hover { border-color: var(--pink); }

.preview-stage { flex: 1; display: grid; place-items: center; padding: 1rem; overflow: auto; background: radial-gradient(ellipse at center, #2a0922, var(--ink)); }
.preview-device {
  position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden;
  background: #fff; transition: width .35s ease, height .35s ease;
}
.preview-device[data-device="tablet"] { width: min(820px, 100%); }
.preview-device[data-device="mobile"] { width: 390px; max-width: 100%; height: min(844px, 100%); border-radius: 26px; box-shadow: 0 0 0 8px #0c0209; }
.preview-device iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.preview-status {
  position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; z-index: 2;
  padding: .45rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(20, 4, 15, .88); color: var(--text); border: 1px solid rgba(255, 141, 184, .4);
  transition: opacity .3s ease;
}
.preview-status[hidden] { display: block; opacity: 0; pointer-events: none; }
.preview-status a { color: var(--pink); }

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

/* Responsive */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .preview-devices { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(20, 4, 15, .6); cursor: pointer;
  }
  .nav-toggle-bar { width: 18px; height: 2px; background: var(--text); transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem;
    background: rgba(20, 4, 15, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid rgba(255, 141, 184, .5); }

  .form-pair, .service-grid { grid-template-columns: 1fr; }
  .preview-toolbar { gap: .6rem; }
  .preview-toolbar .frame-dots { display: none; }
  .preview-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
