/* Torvex Studio - stili sito */

:root {
  --bg: #07060e;
  --bg-elevated: #0c0b14;
  --surface: #12121c;
  --surface-2: #1a1a26;
  --surface-3: #222232;
  --fg: #eef0f4;
  --muted: #8b91a3;
  --muted-2: #5c6275;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #2ee6ff;
  --accent-dim: rgba(46, 230, 255, 0.14);
  --accent-glow: rgba(46, 230, 255, 0.35);
  --brand-purple: #9b4dff;
  --brand-gradient: linear-gradient(90deg, #9b4dff 0%, #5b6fff 25%, #2ee6ff 50%, #5b6fff 75%, #9b4dff 100%);
  --brand-gradient-diag: linear-gradient(135deg, #9b4dff 0%, #5b6fff 40%, #2ee6ff 70%, #9b4dff 100%);
  --success: #2ee6a8;
  --danger: #ff6b7d;
  --shadow-panel: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica Neue, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
  --nav-h: 76px;
}

@keyframes gradient-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -2%) scale(1.04); }
  66% { transform: translate(-2%, 3%) scale(0.97); }
}
@keyframes bar-shimmer {
  0% { transform: translateX(-30%); opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0.7; }
}
@keyframes soft-breathe {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(46, 230, 255, 0.28)); }
  50% { filter: drop-shadow(0 0 28px rgba(155, 77, 255, 0.38)); }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 200ms, border-color 200ms, backdrop-filter 200ms;
  border-bottom: 1px solid transparent;
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 77, 255, 0.35), rgba(46, 230, 255, 0.55), rgba(155, 77, 255, 0.35), transparent);
  background-size: 200% 100%;
  animation: gradient-flow 7s linear infinite;
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: transparent;
}
.nav.is-scrolled::after { opacity: 1; }
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-logo {
  height: 48px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  animation: soft-breathe 4.5s ease-in-out infinite;
}
.nav-word { display: none; }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 160ms, background 160ms, box-shadow 160ms;
}
.nav-links a:hover {
  color: var(--fg);
  background: linear-gradient(90deg, rgba(46, 230, 255, 0.1), rgba(155, 77, 255, 0.06));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.nav-cta {
  display: none;
}
@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}
.nav-toggle svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Buttons — aligned with admin */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease),
    box-shadow 200ms var(--ease),
    background-color 180ms ease,
    border-color 180ms ease,
    color 160ms ease,
    filter 180ms ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22) 45%, transparent 70%);
  transform: translateX(-130%) skewX(-16deg);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after { transform: translateX(130%) skewX(-16deg); }
.btn > * { position: relative; z-index: 2; }
.btn:hover { transform: translateY(-1px); }
.btn:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 80ms;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.btn--primary {
  background: linear-gradient(165deg, #5ef0ff 0%, #2ee6ff 42%, #1ac8e0 100%);
  color: #041018;
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.28) inset,
    0 6px 18px rgba(46, 230, 255, 0.22);
}
.btn--primary:hover {
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 10px 28px rgba(46, 230, 255, 0.38),
    0 0 0 1px rgba(46, 230, 255, 0.25);
}
.btn--primary:active {
  filter: brightness(0.97);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.12) inset,
    0 2px 8px rgba(46, 230, 255, 0.2);
}
.btn--secondary {
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn--secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
  background: var(--surface-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 8px 20px rgba(0,0,0,0.2);
}
.btn--secondary:active {
  background: var(--surface-3);
  box-shadow: none;
}
.btn--ghost {
  background: transparent;
  color: var(--muted);
  height: auto;
  padding: 0;
  border: none;
  gap: 6px;
  overflow: visible;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover {
  color: var(--accent);
  transform: none;
  box-shadow: none;
}
.btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: orb-drift 14s ease-in-out infinite, glow-pulse 7s ease-in-out infinite;
}
.hero-bg::before {
  width: min(640px, 70vw);
  height: min(640px, 70vw);
  top: 5%;
  right: -8%;
  background: radial-gradient(circle, rgba(46, 230, 255, 0.2) 0%, rgba(46, 230, 255, 0) 70%);
}
.hero-bg::after {
  width: min(560px, 60vw);
  height: min(560px, 60vw);
  bottom: 0;
  left: -10%;
  background: radial-gradient(circle, rgba(155, 77, 255, 0.22) 0%, rgba(155, 77, 255, 0) 70%);
  animation-delay: -5s, -2s;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 65% 55% at 55% 40%, black, transparent);
  opacity: 0.55;
  animation: glow-pulse 12s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  width: min(520px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 0 60px rgba(46, 230, 255, 0.04),
    0 0 80px rgba(155, 77, 255, 0.08);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(46, 230, 255, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 13ch;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 5s linear infinite;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  font-weight: 500;
  max-width: 42ch;
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 440px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.stat {
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 4px;
}
.stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(460px, 70vw);
}
.hero-orb {
  position: absolute;
  width: min(480px, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 77, 255, 0.22) 0%, rgba(46, 230, 255, 0.1) 38%, transparent 68%);
  filter: blur(10px);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero-mark {
  position: relative;
  z-index: 1;
  width: min(440px, 86vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 56px rgba(46, 230, 255, 0.22));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-mark, .hero-bg::before, .hero-bg::after, .hero-grid, .hero-ring,
  .nav-logo, .nav::after, .eyebrow::before, .hero h1 em, .btn::after,
  .mini-panel::before, .cta-box::after, .quote::before, .product-card::before,
  .hero-badge i {
    animation: none !important;
  }
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

.hero-badge {
  position: absolute;
  bottom: 10%;
  left: 2%;
  z-index: 2;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-badge i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px color-mix(in srgb, var(--success) 70%, transparent);
  flex-shrink: 0;
  animation: glow-pulse 1.8s ease-in-out infinite;
}
.hero-badge small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.hero-float {
  position: absolute;
  top: 12%;
  right: 0;
  z-index: 2;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: none;
}
@media (min-width: 920px) {
  .hero-float { display: block; }
}
.hero-float strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Sections common */
section { padding: 100px 0; position: relative; }
.sec-head {
  max-width: 560px;
  margin-bottom: 40px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.sec-head p {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
  max-width: 48ch;
}

/* Logos strip / trust */
.strip {
  padding: 22px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated), color-mix(in srgb, var(--bg) 40%, var(--bg-elevated)));
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}
.strip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}
@media (min-width: 700px) {
  .strip-label { width: auto; text-align: left; margin: 0 12px 0 0; }
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  transition: border-color 160ms, color 160ms, box-shadow 160ms;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--fg);
  box-shadow: 0 0 16px rgba(46, 230, 255, 0.12);
}

/* Products */
.products-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  transition: border-color 200ms, transform 200ms var(--ease), box-shadow 200ms;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 5s linear infinite;
  opacity: 0.55;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 0 1px var(--border-strong), 0 0 28px rgba(46, 230, 255, 0.08);
}
.product-card:hover::before { opacity: 1; }
.product-card--featured {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    linear-gradient(165deg, rgba(46, 230, 255, 0.1), transparent 48%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.product-card--featured::before {
  opacity: 1;
  box-shadow: 0 0 12px rgba(46, 230, 255, 0.35);
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--muted);
}
.product-card:hover .product-icon { color: var(--accent); border-color: var(--border-strong); }
.product-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}

.product-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 18px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.product-price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* System / NUI */
.system {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.system-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .system-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.feature-list .fi {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.feature-list .fi svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.feature-list span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-panel), 0 0 60px rgba(46, 230, 255, 0.05);
  overflow: hidden;
  position: relative;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transform-style: preserve-3d;
}
@media (max-width: 899px) {
  .preview-frame { transform: none; }
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.preview-dots {
  display: flex;
  gap: 6px;
}
.preview-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.preview-chrome span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.preview-body {
  padding: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 77, 255, 0.08), transparent 55%),
    var(--bg);
  min-height: 280px;
}
.mini-panel {
  max-width: 360px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.mini-panel::before {
  content: "";
  display: block;
  height: 2.5px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
  box-shadow: 0 0 14px rgba(46, 230, 255, 0.4);
}
.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mini-head strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mini-head em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.mini-bal {
  padding: 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.mini-bal label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.mini-bal b {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.mini-rows { padding: 8px; }
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.mini-row:hover { background: var(--surface-2); }
.mini-row span { color: var(--muted); }
.mini-row strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
}
.mini-row strong.up { color: var(--success); }
.mini-row strong.dn { color: #ff4d6a; }
.mini-foot {
  padding: 10px 14px 14px;
  display: flex;
  gap: 8px;
}
.mini-foot .btn { flex: 1; height: 36px; font-size: 12px; }

/* Process */
.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

/* About / quote */
.about-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}
.quote {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
}
.quote::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 4.5s linear infinite;
  box-shadow: 0 0 14px rgba(46, 230, 255, 0.35);
}
.quote p {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.quote cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: block;
}
.quote small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pillar:last-child { border-bottom: none; padding-bottom: 0; }
.pillar h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.pillar p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  padding: 0 0 88px;
}
.cta-box {
  position: relative;
  padding: clamp(40px, 7vw, 64px);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-panel), 0 0 80px rgba(46, 230, 255, 0.06);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 15% 40%, rgba(155, 77, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 60% at 90% 50%, rgba(46, 230, 255, 0.14), transparent 50%);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}
.cta-box::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
  box-shadow: 0 0 16px rgba(46, 230, 255, 0.4);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.cta-box p {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  max-width: 42ch;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Contact form */
.contact-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
  }
}
.contact-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.5;
}
.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: border-color 150ms, background 150ms;
}
.contact-links a:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.contact-links svg {
  width: 18px; height: 18px;
  stroke: var(--muted); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-row {
  display: grid;
  gap: 14px;
}
@media (min-width: 520px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 150ms, box-shadow 150ms;
}
.field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px rgba(46, 230, 255, 0.1);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b91a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-note {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
}
.form-success {
  display: none;
  padding: 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--success) 12%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border));
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.form-success.is-show { display: block; }
.form-error {
  display: none;
  padding: 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger) 12%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.form-error.is-show { display: block; }
.form-error a { color: inherit; text-decoration: underline; }

/* Honeypot antispam: fuori schermo invece di display:none, che i bot riconoscono */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: var(--bg-elevated);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  max-width: 28ch;
  line-height: 1.5;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 150ms;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
}
.footer-bottom span {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 320px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms var(--ease);
}
.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin-inline: auto;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-inner {
  display: grid;
  gap: 16px;
  padding: 18px 18px 16px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel), 0 0 40px rgba(46, 230, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.cookie-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
}
.cookie-copy h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cookie-copy p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.cookie-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-actions .btn { height: 40px; padding: 0 14px; font-size: 13px; }
.cookie-actions .btn--ghost {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cookie-actions .btn--ghost:hover { background: var(--surface-2); color: var(--fg); }

.cookie-modal-root {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}
.cookie-modal-root[hidden] { display: none !important; }
.cookie-modal {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  position: relative;
}
.cookie-modal.grad-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--brand-gradient);
  background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
}
.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}
.cookie-modal-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cookie-modal-body { padding: 4px 18px 8px; }
.cookie-modal-lead {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 14px;
}
.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.cookie-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.cookie-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  max-width: 34ch;
}
.cookie-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.cookie-row--locked { cursor: default; opacity: 0.9; }
.cookie-modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 18px;
}
@media (max-width: 560px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; }
}
