/* ==========================================================================
   Perazzetti Group — Design System
   ========================================================================== */

:root {
  /* Palette */
  --bg:           #0a0e17;
  --bg-soft:      #0f1422;
  --bg-card:      #131a2a;
  --bg-elevated:  #182134;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);

  --text:         #eef2fb;
  --text-muted:   #9aa6be;
  --text-dim:     #6b7790;

  --accent:       #4f9cff;
  --accent-2:     #00e0b8;
  --accent-soft:  rgba(79, 156, 255, 0.12);

  --gradient: linear-gradient(135deg, #4f9cff 0%, #00e0b8 100%);
  --gradient-text: linear-gradient(120deg, #7fb8ff 0%, #00e0b8 100%);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Background glow --------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 80% -5%, rgba(79, 156, 255, 0.14), transparent 60%),
    radial-gradient(600px 500px at 5% 10%, rgba(0, 224, 184, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Layout helpers ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 96px 0; position: relative; z-index: 1; }
.section--tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }

.lead { font-size: 1.18rem; color: var(--text-muted); }

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

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--gradient);
  color: #03121e;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px -10px rgba(79, 156, 255, 0.6);
}
.btn--primary:hover { box-shadow: 0 18px 40px -10px rgba(79, 156, 255, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 23, 0.9);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { display: flex; flex-direction: column; line-height: 1.12; }
.logo-word { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.logo-br { font-family: var(--mono); color: var(--accent); font-weight: 500; margin: 0 2px; transition: color 0.25s; }
.logo-dot { font-family: var(--mono); color: var(--accent-2); font-weight: 600; font-size: 0.88em; }
.brand:hover .logo-br { color: var(--accent-2); }
.mark-sub { color: var(--text-dim); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; display: block; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 12px; }
.nav-links a.btn--primary,
.nav-links a.btn--primary:hover { color: #03121e; background: var(--gradient); }
.nav-links a.btn--ghost,
.nav-links a.btn--ghost:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 9px;
  cursor: pointer; color: var(--text);
}
.nav-toggle svg { display: block; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 120px 0 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 156, 255, 0.25);
  color: var(--accent);
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* Hero visual (code panel) */
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual .bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.hero-visual .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3450; display:block;}
.hero-visual .bar i:nth-child(1){ background:#ff5f57; }
.hero-visual .bar i:nth-child(2){ background:#febc2e; }
.hero-visual .bar i:nth-child(3){ background:#28c840; }
.hero-visual .bar span { margin-left:10px; font-family:var(--mono); font-size:0.78rem; color:var(--text-dim); }
.hero-visual pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.85;
  padding: 22px;
  color: var(--text-muted);
  overflow-x: auto;
}
.hero-visual .k { color: #c792ea; }
.hero-visual .s { color: var(--accent-2); }
.hero-visual .c { color: var(--text-dim); }
.hero-visual .f { color: var(--accent); }

/* Stats ------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat .num {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* Cards / grid ------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 156, 255, 0.2);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card .tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 14px; display: block;
}

.card--feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
  opacity: 0; transition: opacity 0.3s;
}
.card--feature:hover::before { opacity: 1; }

/* List with checks -------------------------------------------------------- */
.check-list li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 11px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list .ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-size: 0.7rem; margin-top: 3px;
}
.check-list strong { color: var(--text); font-weight: 600; }

/* Steps / process --------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  padding: 28px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: var(--line-strong); transform: translateX(4px); }
.step .n {
  counter-increment: step;
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(79, 156, 255, 0.2);
  display: grid; place-items: center; color: var(--accent);
}
.step .n::before { content: "0" counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* Split section ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Pricing / packages ------------------------------------------------------ */
.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: rgba(79, 156, 255, 0.4);
  background: linear-gradient(180deg, rgba(79,156,255,0.06), var(--bg-card) 40%);
}
.price-card .ribbon {
  align-self: flex-start;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gradient); color: #04121f; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.price-card .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px; }
.price-card .price span { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; }
.price-card .price-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; }
.price-card ul { margin: 0 0 26px; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* Quote / testimonial ----------------------------------------------------- */
.quote {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px;
}
.quote blockquote { font-size: 1.25rem; line-height: 1.6; color: var(--text); margin-bottom: 24px; }
.quote blockquote::before { content: "“"; color: var(--accent); font-size: 2.4rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px;}
.quote .author { display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); display:grid; place-items:center; color:#04121f; font-weight:700;}
.quote .author .name { font-weight: 600; }
.quote .author .role { color: var(--text-dim); font-size: 0.88rem; }

/* CTA band ---------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, rgba(79,156,255,0.10), rgba(0,224,184,0.07));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* Forms ------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit; font-size: 0.97rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--text-dim); }
.form-success {
  display: none;
  background: rgba(0, 224, 184, 0.08);
  border: 1px solid rgba(0, 224, 184, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px; color: var(--accent-2); font-weight: 500;
}
.form-success.show { display: block; }

/* Contact layout ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-info .info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-item .ico { color: var(--accent); flex: none; }
.contact-info .info-item .label { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-info .info-item .val { color: var(--text); font-weight: 500; }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero .lead { max-width: 620px; margin: 18px auto 0; }
.breadcrumb { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

/* Logo strip -------------------------------------------------------------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; opacity: 0.6; }
.logo-strip span { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text-muted); }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid p { color: var(--text-muted); font-size: 0.95rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.88rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color 0.2s, color 0.2s; }
.footer-bottom .socials a:hover { border-color: var(--accent); color: var(--accent); }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 16px; gap: 4px;
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 15px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote { padding: 28px; }
}
