/* =====================================================
   IMPULSIONE — Premium Landing Page Design System
   UI/UX Pro Max Standard Applied
   ===================================================== */

/* --- Google Fonts Import (Inter + Playfair) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@700;800&display=swap');

/* --- CSS Variables (Design Tokens — Paleta Impulsione) --- */
:root {
  /* Brand Colors */
  --brand-navy: #1e3a5f;
  --brand-gold: #d4af37;
  --brand-charcoal: #2d2d2d;
  --brand-offwhite: #faf8f5;
  --brand-white: #ffffff;

  /* Surface Colors */
  --bg-base: #0e1420;
  --bg-surface: #131e30;
  --bg-card: rgba(30, 58, 95, 0.2);
  --bg-card-hover: rgba(30, 58, 95, 0.38);

  /* Accent: Dourado Impulsione */
  --accent: #d4af37;
  --accent-glow: rgba(212, 175, 55, 0.3);
  --accent-hover: #e8c84a;
  --accent-dark: rgba(212, 175, 55, 0.1);

  /* Text */
  --text-primary: #faf8f5;
  --text-secondary: #9aabbd;
  --text-muted: #5e7289;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(212, 175, 55, 0.45);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-y: 7rem;
  --container-width: 1160px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  /* Subtle noise texture via CSS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

input,
button {
  font-family: var(--font-body);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================== UTILITIES ===================== */
.accent {
  color: var(--accent);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #04100d;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.875rem 2rem;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px var(--accent-glow), 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: var(--transition-slow);
  white-space: nowrap;
}

.primary-button:hover {
  background: var(--accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.primary-button:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  font-size: 1rem;
  padding: 1.1rem 2rem;
  letter-spacing: 0.04em;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.05rem;
}

.glass {
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ===================== TOP BAR ===================== */
.top-bar {
  background: linear-gradient(90deg, #0d1f06, #1a3a08, #0d1f06);
  color: var(--accent);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.55rem 1rem;
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(132, 204, 22, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

.badge {
  display: inline-block;
  background: var(--accent-dark);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
  color: #eef2f7;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* --- Social Proof Strip --- */
.proof-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  max-width: 520px;
}

.proof-item {
  text-align: center;
  flex: 1;
}

.proof-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.proof-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Capture Form --- */
.hero-form-wrap {
  position: sticky;
  top: 90px;
}

.form-card {
  background: rgba(15, 22, 32, 0.85);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: var(--transition-slow);
}

.form-card:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 30px rgba(132, 204, 22, 0.08);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-sub {
  font-size: 0.82rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--accent);
  background: rgba(132, 204, 22, 0.05);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.12);
}

.form-group input.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-microcopy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===================== METHOD SECTION ===================== */
.method-section {
  padding: var(--section-y) 1.5rem;
  background-color: var(--bg-surface);
  position: relative;
}

.method-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.method-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
  font-size: 1rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Last 2 cards centered on their row */
.method-card:nth-child(4),
.method-card:nth-child(5) {
  grid-column: span 1;
}

/* Center the last row of 2 */
.method-grid {
  grid-template-columns: repeat(6, 1fr);
}

.method-card {
  grid-column: span 2;
}

.method-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.method-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: default;
  /* staggered animation base */
  opacity: 0;
  transform: translateY(28px);
}

.method-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.method-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(132, 204, 22, 0.06), transparent 60%);
  opacity: 0;
  transition: var(--transition-slow);
}

.method-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 0 24px rgba(132, 204, 22, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.method-card:hover::before {
  opacity: 1;
}

.method-index {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.25rem;
  transition: var(--transition-fast);
}

.method-card:hover .method-index {
  opacity: 0.55;
}

.method-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: var(--transition-spring);
}

.method-card:hover .method-icon {
  transform: scale(1.15) rotate(-5deg);
}

.method-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-primary);
}

.method-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===================== FINAL CTA ===================== */
.final-cta-section {
  position: relative;
  padding: calc(var(--section-y) * 1.2) 1.5rem;
  text-align: center;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(132, 204, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
}

.final-cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.final-cta-section p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.cta-guarantees {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta-guarantees span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================== FOOTER ===================== */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
}

.footer-copy a:hover {
  color: var(--accent);
}

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-form-wrap {
    position: static;
  }

  .form-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .proof-strip {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 4.5rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .proof-strip {
    flex-direction: column;
    gap: 1.25rem;
  }

  .proof-divider {
    width: 40px;
    height: 1px;
  }

  .method-grid {
    grid-template-columns: 1fr !important;
  }

  .method-card {
    grid-column: span 1 !important;
  }

  .cta-guarantees {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 1.75rem 1.25rem;
  }
}