/*
Theme Name: AVXILIA
Theme URI: https://avxilia.com
Author: AVXILIA
Description: Custom WordPress theme – AVXILIA AI & Automation Consultancy
Version: 2.0
Text Domain: avxilia
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* =============================================
   RESET & VARIABLES
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #FFFFFF;
  --off:      #F7F7F5;
  --black:    #0A0A0A;
  --dark:     #111111;
  --mid:      #1C1C1E;
  --purple:   #5B2BE0;
  --purple-l: #7B4FF0;
  --orange:   #F5A623;
  --muted:    #6B7280;
  --border:   #E5E5E3;
  --font-d:   'Manrope', sans-serif;
  --font-s:   'Instrument Serif', serif;
  --max:      1240px;
  --gap:      clamp(20px, 4vw, 64px);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-d);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--purple); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================
   LAYOUT
============================================= */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--off { background: var(--off); }
.section--dark { background: var(--dark); color: var(--white); }

/* =============================================
   TYPE
============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(40px, 5.5vw, 80px); }
h2 { font-size: clamp(28px, 3.5vw, 56px); }
h3 { font-size: clamp(18px, 2vw, 28px); }
h4 { font-size: clamp(15px, 1.4vw, 20px); }

p { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-l); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(91,43,224,0.25); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

/* =============================================
   HEADER
============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.35s ease;
}

#site-header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img {
  height: 150px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }

.nav-cta { padding: 10px 22px !important; font-size: 14px !important; color: #fff !important; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO
============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 180px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(91,43,224,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,43,224,0.08);
  border: 1px solid rgba(91,43,224,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--dark);
}

.hero h1 em {
  font-style: italic;
  font-family: var(--font-s);
  color: var(--purple);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.hero-guarantee {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Chart card */
.hero-chart-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
}

.chart-header {
  margin-bottom: 24px;
}

.chart-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.chart-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.chart-area {
  height: 160px;
  position: relative;
  margin-bottom: 12px;
}

.chart-area svg { width: 100%; height: 100%; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.chart-annotations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.annotation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.annotation-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  margin: 0 12px;
}

.annotation-label { color: rgba(255,255,255,0.5); font-weight: 500; }
.annotation-value { font-weight: 700; }
.ann-manual .annotation-bar { background: #EF4444; }
.ann-manual .annotation-value { color: #EF4444; }
.ann-auto .annotation-bar { background: #22C55E; }
.ann-auto .annotation-value { color: #22C55E; }

/* =============================================
   STATEMENT BAND
============================================= */
.statement-band {
  background: var(--dark);
  padding: clamp(56px, 7vw, 100px) 0;
  text-align: center;
}

.statement-band h2 {
  color: #fff;
  font-size: clamp(26px, 3.5vw, 52px);
  max-width: 900px;
  margin: 0 auto 16px;
}

.statement-band h2 span { color: var(--purple-l); }

.statement-band p {
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}

/* =============================================
   FEATURES 3-COL
============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: rgba(91,43,224,0.3);
  box-shadow: 0 8px 32px rgba(91,43,224,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(91,43,224,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p { font-size: 14px; }

/* =============================================
   CASI STUDIO
============================================= */
.case-hero-section {
  padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 4vw, 56px);
}

.case-hero-section h2 {
  max-width: 700px;
  margin-bottom: 12px;
}

.cases-list { margin-top: 48px; }

/* Featured case */
.case-featured {
  background: var(--dark);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  margin-bottom: 24px;
}

.case-featured-body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-tag {
  display: inline-block;
  background: rgba(91,43,224,0.25);
  color: #A78BFA;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.case-featured h3 {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 36px);
  margin-bottom: 16px;
  line-height: 1.15;
}

.case-featured p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-bottom: 32px;
}

.case-metrics {
  display: flex;
  gap: 32px;
}

.case-metric-num {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  color: var(--purple-l);
  letter-spacing: -0.04em;
  line-height: 1;
}

.case-metric-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Terminal panel */
.case-terminal {
  background: #0D0D0F;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.terminal-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.terminal-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}
.progress-fill.manual { background: #EF4444; width: 92%; }
.progress-fill.auto { background: #22C55E; width: 18%; }

.terminal-log {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
}

.log-dot { color: #22C55E; margin-right: 8px; }
.log-line { color: rgba(255,255,255,0.45); }
.log-line .hi { color: #22C55E; }
.log-line .hi-b { color: #60A5FA; }

/* Secondary cases grid */
.cases-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-card {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.25s;
}

.case-card:hover {
  border-color: rgba(91,43,224,0.25);
  box-shadow: 0 8px 32px rgba(91,43,224,0.06);
}

.case-card h3 {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.case-card p { font-size: 14px; margin-bottom: 20px; }

.case-checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.case-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.case-check svg { color: var(--purple); flex-shrink: 0; }

/* =============================================
   METODO
============================================= */
.method-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.method-intro h2 { margin-bottom: 16px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.step-card {
  background: var(--white);
  padding: clamp(28px, 3vw, 48px) clamp(24px, 2.5vw, 40px);
}

.step-num-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--off);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 20px;
  transition: all 0.25s;
}

.step-card:hover .step-num-badge {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.step-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--dark); }
.step-card p { font-size: 14px; line-height: 1.65; }

/* =============================================
   INTEGRAZIONI
============================================= */
.integrations-section { text-align: center; }
.integrations-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.integrations-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.integration-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.2s;
}

.integration-pill:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.integration-pill svg { opacity: 0.5; }

.integrations-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* =============================================
   FAQ
============================================= */
.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
}

.faq-item {
  border-bottom: 1.5px solid var(--border);
}

.faq-item:first-child { border-top: 1.5px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-d);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
}

.faq-q:hover { color: var(--purple); }

.faq-icon {
  width: 28px; height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--muted);
  transition: all 0.25s;
}

.faq-item.open .faq-icon {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 40px 22px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* =============================================
   CTA FINALE
============================================= */
.cta-section {
  background: var(--dark);
  border-radius: 24px;
  padding: clamp(56px, 7vw, 100px) clamp(32px, 5vw, 80px);
  text-align: center;
  margin: 0 var(--gap);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(91,43,224,0.3) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 60px);
  max-width: 800px;
  margin: 0 auto 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 17px;
  position: relative;
}

.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  position: relative;
}

/* =============================================
   TEAM
============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.team-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.25s;
}

.team-card:hover {
  border-color: rgba(91,43,224,0.25);
  box-shadow: 0 8px 32px rgba(91,43,224,0.06);
}

.team-initials {
  width: 52px; height: 52px;
  background: rgba(91,43,224,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.team-card h3 { font-size: 18px; margin-bottom: 4px; color: var(--dark); }
.team-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.team-bio { font-size: 14px; line-height: 1.65; }

/* =============================================
   CONTATTI
============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--off);
  border: 1.5px solid var(--border);
  color: var(--dark);
  font-family: var(--font-d);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--purple); }

.form-group textarea { height: 130px; resize: vertical; }

.contact-info { padding-top: 8px; }

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 40px; }

.contact-blocks { display: flex; flex-direction: column; gap: 28px; }

.contact-block h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-block a,
.contact-block p {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}
.contact-block a:hover { color: var(--purple); }

/* =============================================
   PAGE HERO
============================================= */
.page-hero {
  padding-top: 140px;
  padding-bottom: 64px;
  border-bottom: 1.5px solid var(--border);
}
.page-hero .eyebrow { display: flex; }
.page-hero h1 { max-width: 820px; margin-bottom: 20px; }
.page-hero p { font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; }

/* =============================================
   SINGLE CASO STUDIO
============================================= */
.case-single-hero {
  padding-top: 140px;
  padding-bottom: 64px;
  border-bottom: 1.5px solid var(--border);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.2s;
}
.case-back:hover { color: var(--purple); }

.case-body-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 64px 0;
  align-items: start;
}

.case-content h2 { font-size: clamp(22px, 2.5vw, 36px); margin: 48px 0 20px; }
.case-content h2:first-child { margin-top: 0; }
.case-content p { font-size: 16px; line-height: 1.75; margin-bottom: 18px; }

.case-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-box {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.sidebar-box h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.sidebar-metrics { display: flex; flex-direction: column; gap: 18px; }

.sidebar-metric-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.04em;
  line-height: 1;
}

.sidebar-metric-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* =============================================
   FOOTER
============================================= */
#site-footer {
  border-top: 1.5px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img { height: 28px; width: auto; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple); }

.footer-copy { font-size: 12px; color: var(--muted); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 640px; }
  .hero-chart-card { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-body-grid { grid-template-columns: 1fr; }
  .case-sidebar { position: static; }
  .case-featured { grid-template-columns: 1fr; }
  .case-terminal { display: none; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .cases-secondary { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; }
  .nav-burger { display: flex; z-index: 101; }

  .cta-section { margin: 0; border-radius: 0; }
}
