/* ============================================================
   SITO AL PIATTO — Main Stylesheet
   Palette: Terracotta #C2410C · Ink #1A1410 · Surface #FAF7F2
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  /* color */
  --ink:           #1A1410;
  --ink-soft:      #2B221C;
  --ink-60:        #6B5D52;
  --ink-40:        #9B8E83;
  --surface:       #FAF7F2;
  --surface-2:     #F2ECE2;
  --paper:         #FFFFFF;
  --primary:       #C2410C;
  --primary-deep:  #9A2F08;
  --primary-soft:  #FDE3D3;
  --accent:        #E8B14A;
  --hairline:      #E5DDD2;
  --hairline-dark: rgba(229,221,210,.12);
  --success:       #2F7D5B;
  --danger:        #B23A2A;

  /* radius */
  --r-sm:   8px;
  --r:      14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* shadows (warm-tinted) */
  --sh-1: 0 1px 2px rgba(26,20,16,.06), 0 1px 1px rgba(26,20,16,.04);
  --sh-2: 0 4px 12px rgba(26,20,16,.08), 0 2px 4px rgba(26,20,16,.04);
  --sh-3: 0 16px 40px rgba(26,20,16,.12), 0 4px 12px rgba(26,20,16,.06);
  --sh-glow: 0 20px 60px rgba(194,65,12,.28);

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --nav-h:        72px;
  --container:    1200px;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea, button { font-family: inherit; }

/* ── scroll progress bar ── */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 6px;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 300;
  transition: width 60ms linear;
}

/* ── container ── */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .section-inner { padding: 0 48px; }
}

/* ── reveal ── */
/* .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); } */

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  background: transparent;
  transition: background .3s, backdrop-filter .3s, height .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  height: 60px;
  background: rgba(250,247,242,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) {
  .nav-inner { padding: 0 48px; }
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.nav-brand .dotted-i {
  position: relative;
  display: inline-block;
}
.nav-brand .dotted-i .tittle {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-btn {
  background: var(--primary);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  transition: background .2s, transform .15s, box-shadow .25s;
}
.nav-btn:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194,65,12,.3);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--surface);
  padding: calc(var(--nav-h) + 56px) 24px 96px;
  overflow: hidden;
}
.hero::before {
  /* warm radial spotlight */
  content: '';
  position: absolute;
  inset: -100px -100px auto auto;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 65%);
  opacity: .55;
  pointer-events: none;
}
.hero::after {
  /* paper grain */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .04;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 7fr 5fr; gap: 64px; }
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 28px;
  border: 1px solid rgba(194,65,12,.15);
}
.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47,125,91,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,125,91,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(47,125,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,125,91,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.5vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title .accent-italic {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}

.hero-desc {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--ink-60);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

/* hero stats row */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 36px;
  flex: 1;
  min-width: 120px;
}
.stat:first-child { padding-left: 0; }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 60px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat strong .unit {
  color: var(--primary);
  font-style: italic;
}
.stat strong .minus {
  display: inline-block;
  transform: translateY(0.06em);
  margin-right: 3px;
  font-weight: 500;
  font-size: 0.78em;
}
.stat span {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.4;
}
.stat-sep {
  width: 1px;
  background: var(--hairline);
  align-self: stretch;
}

/* hero device — typewriter mockup (WOW moment) */
.hero-device {
  position: relative;
  perspective: 1400px;
  contain: layout size;
  aspect-ratio: 4 / 3.4;
  width: 100%;
}
.device-browser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3), 0 0 0 1px var(--hairline);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
  cursor: pointer;
}
.device-browser:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.hero-device:hover .device-browser { transform: rotateY(-2deg) rotateX(2deg); }
.device-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}
.device-dots { display: flex; gap: 6px; }
.dd { width: 11px; height: 11px; border-radius: 50%; }
.dd-r { background: #FF5F56; }
.dd-y { background: #FFBD2E; }
.dd-g { background: #27C93F; }
.device-url {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--ink-60);
  height: 26px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-url::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--primary);
  margin-left: 2px;
  animation: caret 1s infinite step-end;
}
@keyframes caret { 50% { opacity: 0; } }
.device-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--surface);
  overflow: hidden;
}
.device-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.device-page.active { opacity: 1; }
.dp-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--paper);
  pointer-events: none;
}
.dp-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}
.dp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26,20,16,.85) 100%);
}
.dp-title {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--paper);
  z-index: 2;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dp-meta {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.dp-chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-60);
}
.dp-chip.dp-chip-primary { background: var(--primary-soft); color: var(--primary-deep); }

/* page palettes */
.dp-1 .dp-hero { background-image: linear-gradient(135deg, #D97757 0%, #8B3A28 100%); }
.dp-2 .dp-hero { background-image: linear-gradient(135deg, #3F5E45 0%, #1F3826 100%); }
.dp-3 .dp-hero { background-image: linear-gradient(135deg, #1A1A2E 0%, #3A2E4A 100%); }
.dp-4 .dp-hero { background-image: linear-gradient(135deg, #F5C6D6 0%, #C97B9A 100%); }

/* "guarda esempio" CTA on device */
.device-cta {
  position: absolute;
  bottom: -18px;
  left: -18px;
  z-index: 3;
  background: var(--primary);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2), 0 0 0 1px rgba(26,20,16,.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  animation: float 6s ease-in-out infinite;
}
.device-cta:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
.device-cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: all .25s cubic-bezier(.2,.8,.3,1);
  white-space: nowrap;
  position: relative;
  will-change: transform;
}
.btn-primary {
  background: var(--primary);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(194,65,12,.28);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--paper);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }
.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   TICKER STRIP
   ============================================================ */
.ticker {
  background: var(--ink);
  color: var(--surface);
  padding: 22px 0;
  position: relative;
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  overflow: hidden;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--ink), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: rgba(250,247,242,.75);
  white-space: nowrap;
}
.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section-light    { background: var(--surface); }
.section-paper    { background: var(--paper); }
.section-alt      { background: var(--surface-2); }
.section-dark     { background: var(--ink); color: var(--surface); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2.5s infinite;
}
.section-dark .eyebrow { color: var(--accent); }
.section-dark .eyebrow::before { background: var(--accent); }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: inherit;
  margin-bottom: 16px;
  line-height: 1.05;
}
.section-header h2 .accent-italic {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}
.section-header p {
  font-size: 18px;
  color: var(--ink-60);
  line-height: 1.55;
}
.section-dark .section-header p { color: rgba(250,247,242,.65); }

/* ============================================================
   PORTFOLIO CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s, border-color .3s;
  box-shadow: var(--sh-1);
  position: relative;
}
.card:nth-child(2) { transform: rotate(-1deg); }
.card:nth-child(2):hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--sh-3);
  border-color: rgba(194,65,12,.35);
}
.card-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.preview-pizzeria  { background: linear-gradient(140deg, #D2691E 0%, #8B3A1A 100%); }
.preview-trattoria { background: linear-gradient(140deg, #3F5E45 0%, #1F3826 100%); }
.preview-ristorante{ background: linear-gradient(140deg, #1A1A2E 0%, #5A3E4A 100%); }
.preview-gelateria { background: linear-gradient(140deg, #FFC1D8 0%, #B8A4F4 55%, #7DD3FC 100%); }

.mini-chrome {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.mini-dots { display: flex; gap: 4px; }
.mini-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.mini-url {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
  z-index: 2;
  transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
.mockup-rows {
  position: absolute;
  bottom: 70px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: .85;
}
.mockup-rows span {
  height: 6px;
  background: rgba(255,255,255,.35);
  border-radius: 3px;
}
.card:hover .mockup-title { transform: translateY(-12px); }
.card:hover .mockup-rows { transform: translateY(-12px); transition: transform .4s; }

.card-body {
  padding: 24px 26px 26px;
}
.card-style {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card-top h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}
.card-body p {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.6;
  margin-bottom: 14px;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .25s;
}
.card:hover .card-link { gap: 8px; }

/* ============================================================
   WHY US — BENTO
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-cell {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.bento-cell:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.bento-cell:hover .bento-icon { transform: rotate(6deg) scale(1.05); }
.bento-cell.bento-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--paper) 0%, var(--primary-soft) 130%);
}
.bento-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 20px;
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.bento-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.bento-hero h3 { font-size: 30px; }
.bento-cell p {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.6;
}

/* clock decoration in bento-hero */
.bento-clock {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 84px;
  height: 84px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: .25;
}
.bento-clock::before,
.bento-clock::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
}
.bento-clock::before {
  width: 3px;
  height: 28px;
  margin-left: -1.5px;
  transform: rotate(40deg);
}
.bento-clock::after {
  width: 3px;
  height: 18px;
  margin-left: -1.5px;
  transform: rotate(-15deg);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-wrap {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 64px;
  align-items: center;
}
.testimonial-main {
  position: relative;
  padding: 20px 0 20px 60px;
}
.testimonial-main::before {
  content: '\201C';
  font-family: var(--font-display);
  position: absolute;
  top: -40px;
  left: -10px;
  font-size: 220px;
  line-height: 1;
  color: var(--primary);
  opacity: .18;
  font-weight: 500;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 32px;
  min-height: 180px;
  transition: opacity .35s ease;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
}
.author-info strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.author-info span {
  font-size: 14px;
  color: var(--ink-60);
}

.testimonial-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thumb {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .3s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}
.thumb:hover { border-color: rgba(194,65,12,.35); }
.thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194,65,12,.12);
  transform: scale(1.02);
}
.thumb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}
.thumb-text {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process {
  position: relative;
}
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.process-line {
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--hairline);
  z-index: 0;
}
.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 1s ease-out;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(194,65,12,.3);
  border: 4px solid var(--surface);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .35s, border-color .3s, box-shadow .35s;
  position: relative;
}
.price-card:not(.featured):hover {
  border-color: rgba(194,65,12,.4);
  transform: translateY(-4px);
}
.price-card.featured {
  background: var(--paper);
  border: 2px solid var(--primary);
  transform: scale(1.04);
  box-shadow: var(--sh-glow);
  z-index: 2;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  animation: breathe 3s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes breathe {
  0%,100% { transform: translateX(-50%) scale(1); }
  50%     { transform: translateX(-50%) scale(1.04); }
}
.price-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.price-tag .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-tag .per {
  font-size: 14px;
  color: var(--ink-60);
}
.price-desc {
  font-size: 14px;
  color: var(--ink-60);
  margin-bottom: 24px;
  line-height: 1.5;
}
.price-divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0 0 24px;
}
.price-features {
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.price-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-cta {
  width: 100%;
}

.guarantee {
  margin-top: 48px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.guarantee-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
}
.guarantee p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--surface);
}
.guarantee p strong {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition: padding-left .25s ease, color .2s;
}
.faq-item.open .faq-question,
.faq-question:hover { padding-left: 8px; color: var(--primary); }
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, transform .35s cubic-bezier(.2,.8,.3,1);
  color: var(--primary);
}
.faq-question:hover .faq-toggle { background: var(--primary-soft); border-color: var(--primary); }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--primary); color: var(--paper); border-color: var(--primary); }
.faq-toggle svg { width: 14px; height: 14px; stroke-width: 2.5; }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.8,.3,1);
}
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer {
  overflow: hidden;
}
.faq-answer p {
  padding: 0 0 24px;
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.65;
  max-width: 92%;
}

/* ============================================================
   CONTACT (FINAL CTA)
   ============================================================ */
.contact {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194,65,12,.35) 0%, transparent 65%);
  pointer-events: none;
}
.contact-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 56px;
  box-shadow: var(--sh-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.1;
}
.contact-left h2 .accent-italic { font-style: italic; color: var(--primary); font-weight: 400; }
.contact-left > p {
  color: var(--ink-60);
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
}
.contact-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.contact-bullets svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  position: relative;
}
.form-group label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 15px;
  color: var(--ink-40);
  pointer-events: none;
  transition: transform .25s ease, color .25s, font-size .25s;
  background: transparent;
  padding: 0 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
}
.form-group select { appearance: none; cursor: pointer; padding-right: 36px; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(194,65,12,.12);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select.has-value + label {
  transform: translate(-4px, -22px) scale(.85);
  color: var(--primary);
  background: var(--surface);
}
.btn-success { color: var(--paper); }
.form-micro {
  font-size: 12px;
  color: var(--ink-60);
  text-align: center;
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--surface);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-inner { padding: 0 48px; }
}
.footer-brand .nav-brand { color: var(--surface); font-size: 26px; }
.footer-brand .nav-brand .tittle { background: var(--primary); }
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(250,247,242,.6);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250,247,242,.7);
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 64px;
  padding: 24px 24px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: rgba(250,247,242,.45);
}
.footer-bottom .made {
  font-family: var(--font-display);
  font-style: italic;
}

.footer-signature {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
  text-align: center;
  line-height: .9;
  margin-top: 48px;
  padding: 0 16px;
  user-select: none;
  pointer-events: none;
}
.footer-signature .accent-italic { font-style: italic; color: var(--primary-deep); opacity: .8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-device { max-width: 520px; margin: 0 auto; }
  .testimonials-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
}

@media (max-width: 860px) {
  .cards-grid       { grid-template-columns: 1fr 1fr; }
  .bento            { grid-template-columns: 1fr 1fr; }
  .bento-cell.bento-hero { grid-column: span 2; }
  .pricing-grid     { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: scale(1); order: -1; }
  .process-track    { grid-template-columns: 1fr; gap: 36px; }
  .process-line     { display: none; }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250,247,242,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--sh-2);
  }
  .nav-links.open { display: flex; }
  .nav-link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-btn {
    text-align: center;
    padding: 14px;
    margin-top: 8px;
    border-radius: var(--r-pill);
  }

  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 16px; min-width: 0; }

  .cards-grid       { grid-template-columns: 1fr; }
  .bento            { grid-template-columns: 1fr; }
  .bento-cell.bento-hero { grid-column: span 1; }
  .footer-inner     { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .contact-card     { padding: 32px 24px; }
  .device-cta {
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    font-size: 11px;
    padding: 7px 14px;
    gap: 5px;
    animation: none;
  }
  .device-cta:hover { transform: translateX(-50%) translateY(-2px); }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; }
  .device-cta { animation: none; }
}
