/*
Theme Name: Agro-Sync
Theme URI: https://agro-sync.com
Author: Agro-Sync S.L.
Author URI: https://agro-sync.com
Description: Export Compliance Risk Intelligence platform theme for Agro-Sync.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agro-sync
*/

/* ─── VARIABLES ─── */
:root {
  --primary: #C65D3B;
  --primary-light: #d4754a;
  --secondary: #1B4D3E;
  --dark: #2A2A35;
  --light: #FDF8F3;
  --gold: #D4A853;
  --success: #4A7C59;
  --warning: #E8AA42;
  --danger: #9B3D2B;
  --gray-100: #f5f0eb;
  --gray-200: #e8e0d8;
  --gray-400: #9a918a;
  --gray-600: #5c5550;
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,248,243,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42,42,53,.06);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(42,42,53,.08); }
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1.35rem;
  color: var(--dark);
  text-decoration: none;
  display: flex; align-items: center; gap: .6rem;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem; font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links .btn-nav {
  padding: .55rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav-links .btn-nav:hover,
.nav-links .btn-nav.active { background: var(--primary-light); color: #fff; transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  padding: .85rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  padding: .85rem 2rem;
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  padding: 140px clamp(1.5rem, 4vw, 4rem) 60px;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}
.page-label {
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.page-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.12;
  max-width: 700px;
}
.page-header .page-sub {
  color: var(--gray-600);
  font-size: 1.08rem;
  max-width: 520px;
  margin-top: 1.2rem;
}

/* ═══════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding: 120px clamp(1.5rem, 4vw, 4rem) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(198,93,59,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  color: var(--primary);
  background: rgba(198,93,59,.08);
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: .03em;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.visual-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(42,42,53,.06);
  position: relative;
  transition: transform .4s ease;
}
.visual-card:hover { transform: translateY(-3px); }
.visual-card.reactive { border-left: 4px solid var(--danger); }
.visual-card.predictive {
  border-left: 4px solid var(--success);
}
.visual-card.predictive:hover { transform: translateY(-3px); }
.visual-card.reactive:hover { transform: translateY(-3px); }
.card-label {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.reactive .card-label { color: var(--danger); }
.predictive .card-label { color: var(--success); }
.card-status-row {
  display: flex; gap: .75rem; align-items: center;
  margin-bottom: .5rem;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.red { background: var(--danger); }
.status-dot.yellow { background: var(--warning); }
.status-dot.green { background: var(--success); }
.card-status-row span { font-size: .9rem; color: var(--gray-600); }

/* Bow-tie connector */
.bowtie-connector {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .5rem 0;
}
.bowtie-line { width: 40px; height: 2px; background: var(--gray-200); }
.bowtie-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── STATS ─── */
.stats-section {
  padding: 80px clamp(1.5rem, 4vw, 4rem);
  position: relative;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}
.stats-label {
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gray-400);
  margin-bottom: 3rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(2) { transition-delay: .12s; }
.stat-item:nth-child(3) { transition-delay: .24s; }
.stat-item:nth-child(4) { transition-delay: .36s; }
.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-number .unit {
  font-size: .55em;
  color: var(--primary);
  font-weight: 600;
}
.stat-desc {
  font-size: .88rem;
  color: var(--gray-600);
  max-width: 200px;
}

/* ─── SOLUTION PREVIEW ─── */
.solution-section {
  padding: 80px clamp(1.5rem, 4vw, 4rem) 100px;
  background: var(--dark);
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
  margin-top: -40px;
  position: relative;
}
.solution-header {
  max-width: 560px;
  margin-bottom: 4rem;
}
.solution-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.solution-header p { color: rgba(255,255,255,.6); font-size: 1.05rem; }
.solution-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.layer-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background .3s;
}
.layer-card:hover { background: rgba(255,255,255,.08); }
.layer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem;
  width: 40px; height: 3px;
  background: var(--primary);
}
.layer-number {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  color: var(--primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-top: .8rem;
}
.layer-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .75rem;
}
.layer-card p {
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════ */

/* ─── MISSION ─── */
.mission-section {
  padding: 100px clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.mission-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  position: relative;
  padding-left: 2rem;
}
.mission-quote::before {
  content: '';
  position: absolute;
  left: 0; top: .3rem;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--gold));
  border-radius: 4px;
}
.mission-body { padding-top: .5rem; }
.mission-body p {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.mission-body p:last-child { margin-bottom: 0; }

/* ─── INNOVATION ─── */
.innovation-section {
  padding: 80px clamp(1.5rem, 4vw, 4rem) 100px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
  position: relative;
}
.innovation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 40px;
}
.innovation-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.innovation-content p {
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.innovation-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.origin-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.origin-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
}
.origin-icon.petro { background: rgba(212,168,83,.15); color: var(--gold); }
.origin-icon.nuclear { background: rgba(198,93,59,.15); color: var(--primary); }
.origin-icon.agri { background: rgba(74,124,89,.15); color: var(--success); }
.origin-label { font-size: .82rem; color: rgba(255,255,255,.4); font-family: 'DM Mono', monospace; letter-spacing: .05em; }
.origin-text { font-size: .95rem; color: rgba(255,255,255,.75); }
.arrow-down {
  text-align: center;
  color: var(--primary);
  font-size: 1.4rem;
  padding: .3rem 0;
}

/* ─── TEAM ─── */
.team-section {
  padding: 100px clamp(1.5rem, 4vw, 4rem);
}
.team-section .section-label,
.roadmap-section .section-label {
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.team-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3.5rem;
  max-width: 500px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.team-member { text-align: center; }
.member-photo {
  display: block;
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  object-fit: cover;
  object-position: top center;
}
.member-photo-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1.2rem;
}
.member-photo-placeholder.bg-primary { background: var(--primary); }
.member-photo-placeholder.bg-dark { background: var(--dark); }
.member-photo-placeholder.bg-secondary { background: var(--secondary); }
.member-photo-placeholder.bg-gold { background: var(--gold); }
.member-role {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .35rem;
}
.member-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .6rem;
}
.member-desc {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ─── ROADMAP ─── */
.roadmap-section {
  padding: 80px clamp(1.5rem, 4vw, 4rem) 100px;
  background: var(--gray-100);
  position: relative;
}
.roadmap-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gray-200);
}
.roadmap-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3.5rem;
}
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 2px;
  background: var(--gray-200);
}
.phase {
  position: relative;
  padding: 0 2rem;
}
.phase:first-child { padding-left: 0; }
.phase:last-child { padding-right: 0; }
.phase-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--gray-100);
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}
.phase:nth-child(1) .phase-dot { background: var(--primary); }
.phase:nth-child(2) .phase-dot { background: var(--gold); }
.phase:nth-child(3) .phase-dot { background: var(--secondary); }
.phase-label {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: .3rem;
}
.phase h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .75rem;
}
.phase p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   HOW IT WORKS PAGE
   ═══════════════════════════════════════ */

/* ─── STEPS ─── */
.steps-section {
  padding: 80px clamp(1.5rem, 4vw, 4rem) 100px;
}
.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 32px;
  width: 2px;
  background: var(--gray-200);
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.step.visible { opacity: 1; transform: none; }
.step:last-child { padding-bottom: 0; }
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.step:nth-child(1) .step-number { background: var(--primary); }
.step:nth-child(2) .step-number { background: var(--gold); }
.step:nth-child(3) .step-number { background: var(--secondary); }
.step:nth-child(4) .step-number { background: var(--dark); }
.step-content { padding-top: .5rem; }
.step-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .75rem;
}
.step-content p {
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.step-visual {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  max-width: 560px;
}

/* Risk gauge */
.gauge-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.gauge {
  width: 120px; height: 120px;
  position: relative;
}
.gauge svg { transform: rotate(-90deg); }
.gauge circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.gauge .bg { stroke: var(--gray-200); }
.gauge .fill-green { stroke: var(--success); stroke-dasharray: 220 339; }
.gauge .fill-yellow { stroke: var(--warning); stroke-dasharray: 180 339; }
.gauge .fill-red { stroke: var(--danger); stroke-dasharray: 300 339; }
.gauge-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.gauge-score {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--dark);
  line-height: 1;
}
.gauge-sub {
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.gauge-legend {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--gray-600);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Market cards */
.market-cards {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.market-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.market-tag.blocked {
  background: rgba(155,61,43,.08);
  color: var(--danger);
  border: 1px solid rgba(155,61,43,.15);
}
.market-tag.ok {
  background: rgba(74,124,89,.08);
  color: var(--success);
  border: 1px solid rgba(74,124,89,.15);
}
.market-tag.suggested {
  background: rgba(212,168,83,.08);
  color: #8a6d20;
  border: 1px solid rgba(212,168,83,.2);
}

/* Time comparison */
.time-compare {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.time-block { text-align: center; }
.time-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.time-value.old { color: var(--gray-400); text-decoration: line-through; }
.time-value.new { color: var(--success); }
.time-label {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: .3rem;
}
.time-arrow {
  font-size: 1.5rem;
  color: var(--primary);
}

/* ─── USE CASE ─── */
.usecase-section {
  padding: 0 clamp(1.5rem, 4vw, 4rem) 100px;
}
.usecase-card {
  background: var(--dark);
  border-radius: 12px;
  padding: 3rem clamp(2rem, 4vw, 4rem);
  max-width: 800px;
  position: relative;
  overflow: hidden;
}
.usecase-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(198,93,59,.15) 0%, transparent 70%);
  pointer-events: none;
}
.usecase-label {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.usecase-card p {
  color: rgba(255,255,255,.8);
  font-size: 1.08rem;
  line-height: 1.75;
}
.usecase-card strong { color: #fff; font-weight: 600; }

/* ═══════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════ */

.pricing-section {
  padding: 60px clamp(1.5rem, 4vw, 4rem) 40px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: 100px;
  letter-spacing: .03em;
}
.card-tier {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .35rem;
}
.card-audience {
  font-size: .85rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: .3rem;
}
.price-currency {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-400);
}
.price-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.price-range { font-size: .88rem; color: var(--gray-400); }
.price-period { font-size: .88rem; color: var(--gray-400); margin-bottom: 2rem; }
.card-divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 2rem;
}
.card-features li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  color: var(--gray-600);
}
.check {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.dash {
  color: var(--gray-400);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.btn-pricing {
  display: block;
  width: 100%;
  padding: .85rem;
  text-align: center;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s, border-color .2s;
}
.btn-pricing.primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.btn-pricing.primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-pricing.outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-200);
}
.btn-pricing.outline:hover { border-color: var(--primary); color: var(--primary); }

/* Transaction fees */
.fees-section {
  padding: 40px clamp(1.5rem, 4vw, 4rem) 40px;
}
.fees-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.fees-left h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .3rem;
}
.fees-left p { font-size: .92rem; color: var(--gray-600); }
.fees-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}
.fees-price span {
  font-size: .85rem;
  font-weight: 400;
  color: var(--gray-400);
}

/* Kit Digital */
.kit-section {
  padding: 40px clamp(1.5rem, 4vw, 4rem) 100px;
}
.kit-card {
  background: var(--secondary);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.kit-badge {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
.kit-text h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .3rem;
}
.kit-text p { font-size: .9rem; color: rgba(255,255,255,.6); }

/* CTA section */
.cta-section {
  padding: 80px clamp(1.5rem, 4vw, 4rem) 100px;
  text-align: center;
}
.cta-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--gray-600);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════ */

.contact-section {
  padding: 60px clamp(1.5rem, 4vw, 4rem) 100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group .required { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--light);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198,93,59,.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239a918a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.btn-submit {
  width: 100%;
  padding: .95rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-1px); }
.form-note {
  font-size: .82rem;
  color: var(--gray-400);
  margin-top: .8rem;
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.show { display: block; }
.form-success .success-icon {
  width: 56px; height: 56px;
  background: rgba(74,124,89,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.5rem;
  color: var(--success);
}
.form-success h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .5rem;
}
.form-success p { color: var(--gray-600); }
.contact-info { padding-top: 1rem; }
.info-block { margin-bottom: 2.5rem; }
.info-label {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-400);
  margin-bottom: .6rem;
}
.info-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}
.info-value a { color: var(--primary); text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.info-detail {
  font-size: .92rem;
  color: var(--gray-600);
  margin-top: .3rem;
}
.map-hint {
  margin-top: 3rem;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.map-hint::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  opacity: .5;
}
.map-hint::after {
  content: '';
  position: absolute;
  bottom: -30px; right: 10px;
  width: 80px; height: 80px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  opacity: .3;
}
.map-hint p {
  font-size: .92rem;
  color: var(--gray-600);
  position: relative;
  z-index: 2;
}
.map-hint strong { color: var(--dark); }
.spain-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: .3rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-200);
}
.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .88rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: .82rem; color: var(--gray-400); }

/* ─── WP ADMIN BAR OFFSET ─── */
.admin-bar .nav { top: 32px; }
.admin-bar .nav-links { top: calc(72px + 32px); }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .nav-links { top: calc(72px + 46px); }
}

/* ─── MAX-WIDTH on ultra-wide ─── */
@media (min-width: 1440px) {
  .hero,
  .stats-section,
  .solution-section > *,
  .mission-section,
  .innovation-grid,
  .team-section,
  .roadmap-section > *,
  .steps-section > *,
  .pricing-section > *,
  .fees-section > *,
  .kit-section > *,
  .cta-section,
  .contact-section,
  .usecase-section > *,
  .footer {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding-top: 100px; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-layers { grid-template-columns: 1fr; }
  .mission-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .innovation-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-timeline { grid-template-columns: 1fr; gap: 2.5rem; }
  .roadmap-timeline::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: var(--light);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 2rem 1.5rem;
    gap: 0;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links .btn-nav {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem 1.4rem;
    border-bottom: none;
  }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .team-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 1.5rem; }
  .step-number { width: 48px; height: 48px; font-size: 1rem; }
  .steps-wrapper::before { left: 24px; }
  .gauge-container { flex-direction: column; align-items: flex-start; }
  .time-compare { flex-wrap: wrap; }
  .market-cards { flex-direction: column; }
  .fees-card { flex-direction: column; text-align: center; }
  .kit-card { flex-direction: column; text-align: center; }
  .contact-form { padding: 1.5rem; }
  .footer { flex-direction: column; gap: 1.5rem; text-align: center; justify-content: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; }
}
