:root {
  --ink: #0a1733;
  --ink-2: #13224a;
  --ink-3: #1e3163;
  --paper: #f4f1ea;
  --paper-2: #ebe6d9;
  --gold: #b8893a;
  --gold-deep: #8a6424;
  --eu-blue: #003399;
  --eu-yellow: #FFCC00;
  --signal-red: #a8331c;
  --signal-green: #2d5a3f;
  --rule: rgba(10, 23, 51, 0.12);
  --rule-strong: rgba(10, 23, 51, 0.35);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper-like background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10, 23, 51, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ===== TOP OFFICIAL STRIP ===== */
.official-strip {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
  z-index: 10;
}
.official-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.official-strip .eu-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.official-strip .stars {
  color: var(--eu-yellow);
  letter-spacing: 0.05em;
  font-size: 10px;
}
.official-strip .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 8px #4ade80;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  padding: 18px 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  /* The logo is now always an <a>; strip the default anchor chrome
     so the brand reads as a wordmark, not a link. Hover gives a
     subtle gold tint on the text so the affordance is still visible. */
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.logo:hover { color: var(--gold-deep); }
.logo-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  padding: 4px;
}
.logo-mark span {
  background: var(--paper);
}
.logo-mark span:nth-child(4) {
  background: var(--gold);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-deep); }
/* `.nav-links a` matches on (0,1,1); `.nav-cta` on (0,1,0) alone loses, so
   the button was rendering ink-on-ink (no visible label, just the
   dark-navy background — which reads as "blue"). Scope the rules to
   `.nav-links .nav-cta` so specificity beats the generic link rule. */
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: all 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold-deep);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--ink-3);
  gap: 14px;
}
.btn-ghost {
  color: var(--ink);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.hero-meta {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.hero-meta span { margin-right: 18px; }

/* Hero right: regulatory seal */
.seal {
  position: relative;
  padding: 32px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 253, 246, 0.6);
}
.seal::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 4px double var(--rule-strong);
  pointer-events: none;
}
.seal-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}
.seal-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.25;
}
.deadline-list {
  list-style: none;
  font-size: 13px;
}
.deadline-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--sans);
}
.deadline-list li:last-child { border-bottom: none; }
.deadline-list .sector {
  font-weight: 500;
  color: var(--ink);
}
.deadline-list .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.deadline-list .status-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
.status-active {
  background: var(--signal-red);
  color: white;
}
.status-pending {
  background: var(--gold);
  color: white;
}
.status-draft {
  background: var(--ink-2);
  color: var(--paper);
}

/* ===== SECTION HEADER ===== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-top: 80px;
  border-top: 1px solid var(--rule);
}
.section-number {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-deep);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.section-meta {
  padding-bottom: 8px;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 720px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--gold-deep);
}

/* ===== SECTOR CARDS ===== */
.sectors-intro {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.55;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector-card {
  background: #fdfbf5;
  border: 1px solid var(--rule);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.sector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--ink));
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 23, 51, 0.08);
  border-color: var(--card-accent, var(--ink));
}
/* `.priority` is the gold gradient + border treatment for sectors that
   become mandatory first (battery, construction). The deadline is
   already spelled out in `.sector-meta` at the bottom of the card, so
   a "PHASE 1" tag was redundant and read as internal jargon to visitors. */
.sector-card.priority {
  background: linear-gradient(to bottom right, #fdfbf5, #f4eddd);
  border-color: var(--gold);
}
.sector-icon {
  width: 52px; height: 52px;
  background: var(--card-accent, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 24px;
}
.sector-icon svg {
  width: 28px; height: 28px;
}
.sector-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.sector-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.sector-card .reg {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.sector-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 24px;
  flex-grow: 1;
}
.sector-deadline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  margin-bottom: 18px;
}
.sector-deadline .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sector-deadline .value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
}
.sector-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--card-accent, var(--ink));
}
.sector-cta .arrow {
  transition: transform 0.2s;
}
.sector-card:hover .sector-cta .arrow {
  transform: translateX(6px);
}

/* Sector accent colors */
.card-battery { --card-accent: #2d5a3f; }
.card-construction { --card-accent: #8a6424; }
.card-textile { --card-accent: #7a2e4d; }
.card-electronics { --card-accent: #1e3a8a; }
.card-tyre { --card-accent: #1a1a1a; }

/* ===== COMPARISON STRIP ===== */
.comparison {
  background: var(--ink);
  color: var(--paper);
  margin: 120px -32px 0;
  padding: 80px 32px;
  position: relative;
}
.comparison::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.comparison .container {
  position: relative;
}
.comparison .section-label { color: var(--eu-yellow); }
.comparison h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 48px;
  max-width: 720px;
  line-height: 1.1;
}
.comparison h2 em { color: var(--eu-yellow); font-style: italic; }
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}
.comp-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
}
.comp-col.old h4 { color: #ef6d58; }
.comp-col.new h4 { color: var(--eu-yellow); }
.comp-col ul {
  list-style: none;
}
.comp-col li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  gap: 14px;
}
.comp-col li::before {
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}
.comp-col.old li::before { content: '✕'; color: #ef6d58; }
.comp-col.new li::before { content: '→'; color: var(--eu-yellow); }

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.step {
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  padding-right: 20px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.trust-item .n {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.trust-item .n em { color: var(--gold-deep); font-style: italic; }
.trust-item .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ===== CTA SECTION ===== */
.final-cta {
  margin: 120px 0 80px;
  padding: 80px 60px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.15), transparent 70%);
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 640px;
  position: relative;
}
.final-cta h2 em { color: var(--eu-yellow); font-style: italic; }
.final-cta p {
  font-size: 17px;
  color: rgba(244, 241, 234, 0.7);
  max-width: 540px;
  margin-bottom: 36px;
  position: relative;
}
.final-cta .btn-primary {
  background: var(--eu-yellow);
  color: var(--ink);
  border-color: var(--eu-yellow);
  font-weight: 600;
}
.final-cta .btn-primary:hover {
  background: var(--paper);
  border-color: var(--paper);
}
.final-cta .btn-ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,0.2);
}
.final-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--paper);
}

/* ===== FOOTER ===== */
footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 360px;
}
footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--gold-deep); }
.footer-legal {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .comp-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .final-cta { padding: 48px 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .sector-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; padding-top: 56px; }
  .section-number { font-size: 56px; }
  .hero { padding: 48px 0 40px; }
  .comparison { margin: 80px -20px 0; padding: 56px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
