/* ============================================================
   NewLinkFunny — vanilla CSS rebuild
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-soft: #18181b;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.10);
  --white: #ffffff;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --text-faint-2: #71717a;

  --purple: #a855f7;
  --purple-strong: #9333ea;
  --purple-hover: #c084fc;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --amber: #f59e0b;
  --red: #ef4444;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--purple); }
.cyan { color: var(--cyan-light); }
.emerald { color: var(--emerald-light); }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; width: 100%; }
.container--narrow { max-width: 960px; }
.center { text-align: center; }

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* Ambient background orbs */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.ambient__orb--purple {
  top: 40px; left: 5%;
  width: 400px; height: 400px;
  background: rgba(88, 28, 135, 0.30);
}
.ambient__orb--cyan {
  top: 33%; right: 5%;
  width: 450px; height: 450px;
  background: rgba(6, 182, 212, 0.10);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 20px 0;
  transition: padding 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-2xl);
  padding: 12px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__logo {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-strong);
  color: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.brand__logo--sm { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover .brand__logo { transform: scale(1.05); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand__name--sm { font-size: 16px; font-weight: 500; }
.brand__name-accent { color: var(--purple); font-weight: 900; transition: color 0.2s; }
.brand:hover .brand__name-accent { color: var(--purple-hover); }

.nav {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--text-faint-2); transition: color 0.2s; }
.nav a:hover { color: white; }
@media (min-width: 768px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--sm { padding: 10px 20px; font-size: 13px; min-height: 44px; }
.btn--lg { padding: 16px 32px; font-size: 17px; min-height: 48px; }
.btn--xl { padding: 18px 32px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; min-height: 52px; font-weight: 900; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--purple-strong);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.1), 0 4px 6px -2px rgba(168, 85, 247, 0.05);
}
.btn--primary:hover { background: var(--purple); transform: translateY(-1px); }
.btn--primary:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* Section */
.section { position: relative; padding: 80px 0; border-top: 1px solid var(--border); z-index: 10; }
.section--grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: 1;
}
.section > .container { position: relative; z-index: 2; }
.section__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.section__bg-glow--left { top: 50%; left: 25%; width: 320px; height: 320px; background: rgba(168, 85, 247, 0.10); transform: translateY(-50%); }
.section__bg-glow--cyan { top: 30%; right: 10%; width: 400px; height: 400px; background: rgba(6, 182, 212, 0.06); }
.section__bg-glow--center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 320px; height: 320px; background: rgba(168, 85, 247, 0.10); }
.section__bg-glow--purple-bottom { bottom: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: rgba(168, 85, 247, 0.08); }

.section__head { margin-bottom: 64px; max-width: 720px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--split { display: flex; flex-direction: column; gap: 24px; align-items: baseline; justify-content: space-between; }
@media (min-width: 768px) {
  .section__head--split { flex-direction: row; max-width: none; }
  .section__head--split > div { max-width: 720px; }
  .section__head--split > p { max-width: 360px; }
}
.section__head > * + * { margin-top: 12px; }
.section__lede { font-size: 16px; color: var(--text-muted); line-height: 1.65; }

/* Typography */
.display-1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
}
.trustline { font-size: 12px; color: var(--text-faint); padding-top: 8px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge--purple { color: var(--purple); }
.badge--cyan { color: var(--cyan-light); }

/* HERO */
.hero { padding: 96px 0 64px; min-height: 85vh; display: flex; align-items: center; border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
@media (min-width: 768px) { .hero { padding: 144px 0 96px; } }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.hero__copy > * + * { margin-top: 20px; }
.hero__ctas { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; align-items: center; } }

/* SIMULATOR */
.simulator {
  position: relative;
  width: 100%;
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  min-height: 460px;
}
.simulator__orb { position: absolute; width: 160px; height: 160px; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.simulator__orb--purple { top: -48px; right: -48px; background: rgba(168, 85, 247, 0.10); }
.simulator__orb--cyan { bottom: -48px; left: -48px; background: rgba(6, 182, 212, 0.10); }

.simulator__header {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid #27272a;
  padding-bottom: 12px;
  gap: 8px;
  position: relative; z-index: 2;
}
.simulator__status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a1a1aa; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--emerald { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulse 2s ease-in-out infinite; }

.simulator__tabs { display: flex; background: #09090b; padding: 4px; border-radius: 12px; border: 1px solid #27272a; }
.sim-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  transition: all 0.2s;
}
.sim-tab:hover { color: white; }
.sim-tab.is-active { background: var(--purple-strong); color: white; }

.simulator__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 8px 0;
  position: relative; z-index: 2;
}
.sim-panel { display: none; width: 100%; flex-direction: column; align-items: center; gap: 12px; }
.sim-panel.is-active { display: flex; }

/* Canvas game */
.canvas-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid #27272a; overflow: hidden; background: #09090b; }
.canvas-wrap canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.canvas-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #27272a;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px;
  color: var(--purple);
}
.canvas-meta { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 360px; padding: 0 4px; font-size: 12px; }
.canvas-meta .mono { color: #a1a1aa; font-size: 10px; }
.link-mono { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--cyan-light); }
.link-mono:hover { text-decoration: underline; }
.link-mono--purple { color: var(--purple); font-weight: 700; font-size: 12px; }

/* Music visualizer */
.viz { height: 112px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; width: 100%; max-width: 320px; padding: 0 16px; }
.viz__bar {
  width: 12px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #6b21a8, var(--cyan), var(--emerald-light));
  transition: height 0.1s ease-out;
}
.deck {
  display: flex; align-items: center; gap: 8px;
  background: #09090b; border: 1px solid #27272a;
  border-radius: 16px; padding: 12px;
  width: 100%; max-width: 360px;
}
.deck__play {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-strong); color: white;
  transition: all 0.2s;
}
.deck__play:hover { background: var(--purple); }
.deck__play.is-playing { background: var(--cyan); color: black; box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); }

.deck__label { flex: 1; padding: 0 8px; text-align: left; }
.deck__title { font-size: 13px; font-weight: 600; color: white; }
.deck__sub { font-size: 10px; color: #a1a1aa; text-transform: uppercase; }
.mood-toggles { display: flex; gap: 4px; }
.mood {
  padding: 4px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: -0.02em; font-weight: 700;
  background: #18181b; border: 1px solid #27272a; color: #71717a;
  transition: all 0.2s;
}
.mood:hover { color: #d4d4d8; }
.mood.is-active { background: rgba(168, 85, 247, 0.2); border-color: var(--purple); color: #d8b4fe; }

/* Storyboard */
.storyboard {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #27272a;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(88, 28, 135, 0.6), #09090b);
  transition: background 0.3s;
  width: 100%; max-width: 420px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.storyboard__copy > * + * { margin-top: 12px; }
.storyboard__caption { font-size: 10px; font-weight: 700; color: var(--amber); letter-spacing: 0.1em; display: block; }
.storyboard__dialogue {
  font-family: var(--font-display); font-weight: 500;
  color: white; font-size: 17px; line-height: 1.5; font-style: italic;
}
.storyboard__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(39, 39, 42, 0.6); padding-top: 12px; margin-top: 16px; }
.storyboard__visual { font-size: 10px; color: #a1a1aa; }
.storyboard__dots { display: flex; gap: 6px; }
.sb-dot { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; transition: all 0.2s; }
.sb-dot.is-active { background: var(--purple-hover); width: 16px; border-radius: 4px; }

.simulator__footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(39, 39, 42, 0.8);
  padding-top: 12px;
  font-size: 10px; color: #71717a;
  position: relative; z-index: 2;
}

/* SERVICES */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.svc-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 380px;
  transition: all 0.3s;
  box-shadow: var(--shadow-2xl);
}
.svc-card:hover { border-color: rgba(168, 85, 247, 0.5); background: var(--bg-card-hover); }
.svc-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.svc-card__icon {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid;
  background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.svc-card__icon--purple { border-color: rgba(168, 85, 247, 0.3); color: var(--purple); }
.svc-card__icon--cyan { border-color: rgba(6, 182, 212, 0.3); color: var(--cyan-light); }
.svc-card__icon--amber { border-color: rgba(245, 158, 11, 0.3); color: var(--amber); }
.svc-card:hover .svc-card__icon--purple { border-color: var(--purple); }
.svc-card:hover .svc-card__icon--cyan { border-color: var(--cyan); }
.svc-card:hover .svc-card__icon--amber { border-color: var(--amber); }

.svc-card__tag {
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid;
}
.svc-card__tag--purple { background: rgba(168, 85, 247, 0.10); color: var(--purple); border-color: rgba(168, 85, 247, 0.20); }
.svc-card__tag--cyan { background: rgba(6, 182, 212, 0.10); color: var(--cyan-light); border-color: rgba(6, 182, 212, 0.20); }
.svc-card__tag--amber { background: rgba(245, 158, 11, 0.10); color: var(--amber); border-color: rgba(245, 158, 11, 0.20); }

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 12px;
}
.svc-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.svc-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.svc-card li { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.svc-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.svc-card__cta {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
  min-height: 44px;
}
.svc-card:hover .svc-card__cta { background: var(--purple-strong); border-color: var(--purple); color: white; }

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .pf-card--large { grid-column: span 2; grid-row: span 2; }
  .pf-card--tall { grid-row: span 2; }
  .pf-card--wide { grid-column: span 2; }
}

.pf-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 220px;
}
.pf-card:hover { border-color: rgba(168, 85, 247, 0.5); background: var(--bg-card-hover); }
.pf-card__art {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
  opacity: 0.4;
  transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.pf-card:hover .pf-card__art { opacity: 0.6; }
.pf-card__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}
.pf-card__content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.pf-card__head {
  display: flex; align-items: center; justify-content: space-between;
}
.pf-card__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--cyan-light); font-weight: 600; text-transform: uppercase; }
.pf-card__cat { background: var(--bg); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted); padding: 2px 6px; border-radius: 4px; }
.pf-card h3 {
  font-family: var(--font-display); font-weight: 900;
  color: white;
  font-size: 19px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.pf-card:hover h3 { color: var(--purple-hover); }
.pf-card__desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-card__foot {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.pf-card__metric { color: var(--emerald-light); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.pf-card__metric::before {
  content: "★"; color: var(--emerald-light); font-size: 10px;
}
.pf-card__inspect { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; font-weight: 600; }
.pf-card:hover .pf-card__inspect { color: var(--purple-hover); }

/* Portfolio art variants */
.pf-art--neon { background: linear-gradient(to bottom right, rgba(88,28,135,0.4), rgba(88,28,135,0.1), transparent); }
.pf-art--chroma { background: linear-gradient(to top right, rgba(8,51,68,0.4), #0a0a0c, transparent); }
.pf-art--solar { background: linear-gradient(to bottom, rgba(120,53,15,0.3), #0f172a, transparent); }
.pf-art--block { background: linear-gradient(to right, rgba(6,78,59,0.3), #0f172a); }
.pf-art--ambient { background: linear-gradient(to bottom right, rgba(30,58,138,0.3), #0f172a); }
.pf-art--omega { background: linear-gradient(to top right, rgba(131,24,67,0.3), #0f172a); padding: 16px; font-family: var(--font-mono); font-size: 9px; color: rgba(236, 72, 153, 0.2); overflow: hidden; line-height: 1.3; }

.pf-art--chroma .pf-bars { display: flex; align-items: center; gap: 4px; }
.pf-art--chroma .pf-bars span { width: 6px; border-radius: 4px; background: rgba(6, 182, 212, 0.3); animation: pulse 2s infinite; }

.pf-art--solar { padding: 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pf-art--solar .pf-solar { width: 40px; height: 40px; border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--amber); font-family: var(--font-mono); font-size: 10px; }
.pf-art--solar .pf-bar { height: 4px; width: 96px; background: var(--border-strong); border-radius: 2px; }

.pf-art--block { padding: 24px; flex-wrap: wrap; gap: 8px; justify-content: center; display: flex; }
.pf-art--block .pf-tile { height: 24px; width: 24px; border-radius: 4px; border: 1px solid rgba(16, 185, 129, 0.2); background: rgba(16, 185, 129, 0.05); }

.pf-art--ambient .pf-ring { width: 64px; height: 64px; border-radius: 50%; border: 1px dashed rgba(59, 130, 246, 0.2); animation: spin 8s linear infinite; }

.pf-art--neon { padding: 16px; }
.pf-art--neon .pf-neon-row { display: flex; gap: 4px; justify-content: flex-end; }
.pf-art--neon .pf-dot { width: 16px; height: 16px; border-radius: 50%; }
.pf-art--neon .pf-dot:nth-child(1) { background: rgba(168, 85, 247, 0.2); }
.pf-art--neon .pf-dot:nth-child(2) { background: rgba(168, 85, 247, 0.1); }
.pf-art--neon .pf-skew { width: 100%; height: 50%; border-bottom: 2px dashed rgba(168, 85, 247, 0.3); transform: skewY(12deg); margin-top: auto; }

/* Logos */
.logos { border-top: 1px solid var(--border); padding-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.logos__caption { color: var(--text-faint); font-size: 12px; letter-spacing: 0.1em; }
.logos__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 24px;
  opacity: 0.5; transition: opacity 0.3s;
}
.logos__row:hover { opacity: 0.85; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  padding: 8px 16px; border-radius: 12px;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.logo-pill:hover { color: white; border-color: var(--purple); }
.logo-pill svg { color: var(--purple); animation: spin 6s linear infinite; }

/* PROCESS */
.process-wrap { position: relative; }
.process-line {
  display: none;
  position: absolute;
  top: 56px; left: 48px; right: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--purple), var(--cyan), var(--emerald-light));
  opacity: 0.2;
  z-index: 0;
}
@media (min-width: 1024px) { .process-line { display: block; } }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 0.3s;
}
.process-card:hover { border-color: rgba(168, 85, 247, 0.5); background: var(--bg-card-hover); }
.process-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.process-card__icon {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid;
  display: inline-flex; align-items: center; justify-content: center;
}
.process-card__icon--purple { background: rgba(168, 85, 247, 0.10); border-color: rgba(168, 85, 247, 0.20); color: var(--purple); }
.process-card__icon--cyan { background: rgba(6, 182, 212, 0.10); border-color: rgba(6, 182, 212, 0.20); color: var(--cyan-light); }
.process-card__icon--emerald { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.20); color: var(--emerald-light); }
.process-card__num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-faint); transition: color 0.2s; }
.process-card:hover .process-card__num { color: var(--purple); }
.process-card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 17px; color: white;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.process-card p { font-size: 12px; color: var(--text-muted); line-height: 1.65; }

.guarantee {
  margin-top: 24px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.10);
  display: flex; align-items: flex-start; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--emerald-light);
  line-height: 1.45;
}
.guarantee svg { flex-shrink: 0; }

.trust-bar {
  margin-top: 48px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; gap: 16px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .trust-bar { flex-direction: row; } }
.trust-bar__msg { display: flex; align-items: center; gap: 12px; }
.trust-bar__ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.20);
  color: var(--cyan-light);
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-bar p { font-size: 12px; color: #d4d4d8; }

/* TESTIMONIALS */
.testimonial-card {
  position: relative;
  margin: 0 auto;
  padding: 56px 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-2xl);
  transition: all 0.3s;
}
@media (min-width: 768px) { .testimonial-card { padding: 56px; } }
.testimonial-card:hover { background: var(--bg-card-hover); border-color: rgba(168, 85, 247, 0.5); }

.quote-mark { position: absolute; top: -24px; left: -24px; width: 128px; height: 128px; color: rgba(255, 255, 255, 0.05); transform: rotate(180deg); pointer-events: none; }
.testimonial-card__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; }
.stars { display: flex; gap: 4px; }
.stars svg { color: var(--amber); fill: var(--amber); }
.testimonial-card blockquote {
  font-family: var(--font-display); font-weight: 900;
  color: white;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.testimonial-card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 24px; }
.author { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--purple-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.author h4 { font-family: var(--font-display); font-weight: 700; color: white; font-size: 16px; }
.author p { font-size: 12px; color: var(--text-muted); }
.t-nav { display: none; gap: 8px; }
@media (min-width: 640px) { .t-nav { display: flex; } }
.t-nav button { padding: 8px; border-radius: 12px; border: 1px solid var(--border-strong); color: var(--text-muted); transition: all 0.2s; }
.t-nav button:hover { color: white; background: var(--bg-card); }

.dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--border-strong); transition: all 0.2s; }
.dots button:hover { background: rgba(255, 255, 255, 0.2); }
.dots button.is-active { background: var(--purple); width: 32px; }
.mini-note { font-size: 10px; color: var(--text-faint); margin-top: 20px; }

/* CONTACT */
.section--contact { padding: 96px 0; scroll-margin-top: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .contact-copy { position: sticky; top: 96px; }
}
.contact-copy > * + * { margin-top: 24px; }

.alert {
  padding: 16px;
  background: rgba(88, 28, 135, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.20);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.alert__head { font-size: 12px; font-weight: 700; color: var(--purple); }
.alert p { font-size: 13px; color: #d4d4d8; line-height: 1.55; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: white; }
.stat__lbl { font-size: 12px; color: var(--text-faint); text-transform: uppercase; }

.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}
@media (min-width: 768px) { .form-panel { padding: 32px; } }
.form-panel form { display: flex; flex-direction: column; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 700; color: var(--text-muted);
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: white;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #4b5563; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.30);
}
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.fine { font-size: 11px; color: var(--text-faint); text-align: center; letter-spacing: -0.01em; }
.error-box {
  padding: 14px; background: rgba(127, 29, 29, 0.20);
  border: 1px solid rgba(239, 68, 68, 0.20);
  color: #f87171;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.success { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; animation: fadeIn 0.4s ease-out; }
.success__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 185, 129, 0.10); border: 1px solid rgba(16, 185, 129, 0.20); color: var(--emerald-light); display: inline-flex; align-items: center; justify-content: center; }
.success h3 { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: white; text-transform: uppercase; }
.success__body { font-size: 14px; color: var(--text-muted); max-width: 480px; line-height: 1.5; }
.success__receipt { padding: 16px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px; text-align: left; font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; max-width: 480px; width: 100%; }
.success__receipt strong { color: #d4d4d8; }

/* FOOTER */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0; position: relative; z-index: 10; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 5fr 7fr; } }
.site-footer__brand > * + * { margin-top: 16px; }
.muted-sm { font-size: 12px; color: var(--text-muted); line-height: 1.65; max-width: 380px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.socials a:hover { color: white; border-color: rgba(168, 85, 247, 0.50); }

.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 640px) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); } }
.col-label { display: block; font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.site-footer__cols ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__cols a { font-size: 12px; color: var(--text-muted); transition: color 0.2s; }
.site-footer__cols a:hover { color: white; }

.site-footer__legal { padding-top: 32px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--text-faint); }
@media (min-width: 640px) { .site-footer__legal { flex-direction: row; } }
.legal__secure { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); }
.legal__secure svg { color: rgba(16, 185, 129, 0.8); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 50; }
@media (min-width: 768px) { .cookie-banner { left: 24px; right: 24px; max-width: 720px; margin: 0 auto; } }
.cookie-banner__inner {
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 640px) { .cookie-banner__inner { flex-direction: row; justify-content: space-between; } }
.cookie-banner p { font-size: 13px; color: var(--text-muted); }
.cookie-banner a { color: var(--cyan-light); text-decoration: underline; }
.cookie-banner > .cookie-banner__inner > div { display: flex; gap: 8px; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal__panel {
  position: relative;
  width: 100%; max-width: 640px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}
.modal__orb { position: absolute; top: 0; right: 0; width: 160px; height: 160px; border-radius: 50%; background: rgba(168, 85, 247, 0.10); filter: blur(48px); pointer-events: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.modal__close { padding: 6px; border-radius: 8px; color: var(--text-muted); transition: all 0.2s; }
.modal__close:hover { background: var(--bg-card); color: white; }
.modal__panel h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 30px);
  color: white;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}
.modal__impact {
  padding: 14px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.20);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
.modal__body { display: flex; flex-direction: column; gap: 12px; color: #d4d4d8; font-size: 14px; line-height: 1.65; }
.modal__actions { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .modal__actions { flex-direction: row; } .modal__actions .btn { flex: 1; } }

/* hidden attribute always wins */
[hidden] { display: none !important; }

/* Utilities & animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.spin-slow { animation: spin 4s linear infinite; }
.pulse { animation: pulse 2s ease-in-out infinite; }
