/* ===================================================
   QYON SE — Landing Page Styles
   MTD & HMRC First Approach
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0a2463;       /* Deep navy blue — brand */
  --primary-dark: #061540;
  --primary-light: #1a3a8f;
  --accent: #3a9fd6;        /* Light blue — accent */
  --accent-green: #06d6a0;  /* Success / compliance green */
  --accent-amber: #ffd166;  /* Warning amber */
  --text-dark: #1a1a2e;
  --text-mid: #3d4466;
  --text-light: #6b7280;
  --bg-light: #f8faff;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(10, 36, 99, 0.10);
  --shadow-lg: 0 12px 48px rgba(10, 36, 99, 0.16);
  --transition: all 0.3s ease;
  --font: 'Funnel Display', system-ui, sans-serif;
  --max-w: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography Helpers ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(10, 36, 99, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-label-light {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(6, 214, 160, 0.12);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title-light {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-desc-light {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.highlight { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #06d6a0;
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(58, 159, 214, 0.35);
}
.btn-primary:hover {
  background: #2585b8;
  border-color: #2585b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58, 159, 214, 0.45);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-light-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* ---------- Check / Danger Lists ---------- */
.check-list, .danger-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.check-list li i { color: var(--accent-green); margin-top: 3px; flex-shrink: 0; }

.danger-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.danger-list li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* =====================================================
   NAVBAR
   ===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.nav-logo svg { height: 32px; width: auto; }
.nav-logo-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--bg-light); }

.nav-links .nav-cta {
  background: #06d6a0;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 0.5rem;
}
.nav-links .nav-cta:hover {
  background: #2585b8;
  transform: translateY(-1px);
  color: #fff;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, #1a3a8f 100%);
  padding: 120px 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Glow blobs */
.hero-section::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58, 159, 214, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid rgba(6, 214, 160, 0.4);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.6s ease;
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.7s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
  animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-sub strong { color: var(--accent-amber); }

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.9s ease 0.3s both;
}

/* Urgency bar */
.urgency-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 3.5rem;
  animation: fadeInDown 1s ease 0.4s both;
}
.urgency-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
.urgency-item i { color: var(--accent-amber); }
.urgency-item strong { color: #fff; }
.urgency-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
}

/* Dashboard mockup */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-dashboard {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  text-align: left;
}

.dashboard-topbar {
  background: #1e2a3a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.db-dot { width: 12px; height: 12px; border-radius: 50%; }
.db-dot.red { background: #ff5f57; }
.db-dot.yellow { background: #ffbd2e; }
.db-dot.green { background: #28ca41; }
.db-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-left: 0.5rem;
}

.dashboard-body {
  display: flex;
  min-height: 320px;
}

.db-sidebar {
  width: 180px;
  background: #f8faff;
  border-right: 1px solid var(--border);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.db-nav-item.active {
  background: var(--primary);
  color: #fff;
}
.db-nav-item i { width: 16px; text-align: center; }

.db-main { flex: 1; padding: 1.25rem; overflow: hidden; }

.db-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.db-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.db-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 214, 160, 0.12);
  color: #059669;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.db-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.db-stat-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.db-stat-label { font-size: 0.72rem; color: var(--text-light); }
.db-stat-value { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.db-stat-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  width: fit-content;
}
.db-stat-status.submitted { background: rgba(6,214,160,0.15); color: #059669; }
.db-stat-status.ok { background: rgba(10,36,99,0.1); color: var(--primary); }

.db-submissions {}
.db-sub-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.db-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mid);
}
.db-sub-row:last-child { border-bottom: none; }

.tag-green {
  background: rgba(6,214,160,0.12);
  color: #059669;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.tag-blue {
  background: rgba(10,36,99,0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* =====================================================
   MTD SECTION
   ===================================================== */
.section-mtd {
  padding: 6rem 0;
  background: var(--bg-light);
  text-align: center;
}

.mtd-explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
  text-align: left;
}

.mtd-explain-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.mtd-explain-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 0.6rem;
  color: var(--text-dark);
}
.mtd-explain-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.highlight-card {
  background: #fff;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.highlight-card .explain-icon { color: var(--primary); }

.danger-card {
  background: #fff5f5;
  border: 2px solid rgba(255, 0, 0, 0.2);
}
.danger-card .explain-icon { color: var(--accent); }
.danger-card h3 { color: var(--accent); }

.success-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  color: #fff;
}
.success-card .explain-icon { color: var(--accent-green); }
.success-card h3 { color: #fff; }
.success-card p { color: rgba(255,255,255,0.85); }
.success-card .check-list li { color: rgba(255,255,255,0.85); }
.success-card .check-list li i { color: var(--accent-green); }

.explain-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* MTD Features grid */
.mtd-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
  text-align: left;
}

.mtd-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
}
.mtd-feature-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(10,36,99,0.2);
  transform: translateY(-2px);
}

.mtd-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(10,36,99,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.mtd-feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.mtd-feature-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* HMRC Trust bar */
.hmrc-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item i { color: var(--accent-green); font-size: 1rem; }

/* MTD Orchestrator */
.mtd-orchestrator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  text-align: left;
}

.orchestrator-text .section-label { display: block; width: fit-content; }
.orchestrator-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.orchestrator-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.orchestrator-visual {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.orc-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.orc-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.success-step {
  background: linear-gradient(135deg, rgba(6,214,160,0.08), rgba(10,36,99,0.05));
  border-color: rgba(6,214,160,0.3);
}

.orc-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.success-step .orc-step-num {
  background: var(--accent-green);
}

.orc-step-text {
  display: flex;
  flex-direction: column;
}
.orc-step-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}
.orc-step-text span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.orc-arrow {
  display: flex;
  justify-content: center;
  color: var(--primary);
  opacity: 0.4;
  font-size: 0.8rem;
  padding: 0.2rem 0;
}

/* =====================================================
   AGENTS SECTION
   ===================================================== */
.section-agents {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a3a8f 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-agents::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.agents-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.agent-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  color: #fff;
}
.agent-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.featured-agent {
  background: rgba(255,255,255,0.10);
  border-color: rgba(6,214,160,0.4);
  position: relative;
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.agent-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6,214,160,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-green);
}

.agent-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-green);
  color: var(--primary-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.agent-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}
.agent-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.agent-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(6,214,160,0.1);
  border-radius: 10px;
  border: 1px solid rgba(6,214,160,0.2);
}
.stat-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-green);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.agent-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.agent-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
.agent-features li i { color: var(--accent-green); }

.agents-bottom-text {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.agents-bottom-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.section-features {
  padding: 6rem 0;
  background: #fff;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(10,36,99,0.2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  background: #fff;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,36,99,0.08), rgba(10,36,99,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.feat-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.feat-mini-list li {
  font-size: 0.82rem;
  color: var(--text-light);
  padding-left: 0.75rem;
  position: relative;
}
.feat-mini-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Integrations */
.integrations-section {
  text-align: center;
  margin-top: 1rem;
}
.integrations-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.integrations-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 110px;
  transition: var(--transition);
}
.integration-item:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.integration-item i {
  font-size: 1.5rem;
  color: var(--primary);
}
.integration-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
}

/* =====================================================
   SEGMENTS SECTION
   ===================================================== */
.section-segments {
  padding: 6rem 0;
  background: var(--bg-light);
  text-align: center;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.segment-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.segment-card:hover {
  border-color: rgba(10,36,99,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.segment-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.segment-tag {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 0 0 8px 8px;
}

.segment-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.segment-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.segment-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.segment-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.segment-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.segment-list li i { color: var(--accent-green); }

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.section-about {
  padding: 6rem 0;
  background: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-label { display: block; width: fit-content; }
.about-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 120px;
  line-height: 1.3;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.section-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6,214,160,0.15);
  border: 1px solid rgba(6,214,160,0.35);
  color: var(--accent-green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.cta-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

/* Form */
.cta-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.form-group input,
.form-group select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: #fff;
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-green);
  background: rgba(255,255,255,0.14);
}
.form-group select option { background: var(--primary-dark); color: #fff; }

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.cta-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.cta-trust i { color: var(--accent-green); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo svg { height: 28px; }
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin: 0.75rem 0 1.25rem;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-socials a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  padding: 0.2rem 0;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; }

.footer-flags {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-flags img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .mtd-explainer { grid-template-columns: 1fr; }
  .mtd-features { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { max-width: 500px; margin: 0 auto; }
  .mtd-orchestrator { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a {
    font-size: 1rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
  }
  .nav-burger { display: flex; }

  .hero-section { padding: 100px 1rem 3rem; }
  .urgency-bar { flex-direction: column; gap: 0.75rem; border-radius: var(--radius); }
  .urgency-divider { display: none; }

  .dashboard-body { flex-direction: column; }
  .db-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 0.75rem; gap: 0.5rem; }
  .db-stats-row { grid-template-columns: 1fr 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .hmrc-trust-bar { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  
  .footer-bottom { flex-direction: column; text-align: center; }

  .db-stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .about-stats { flex-direction: column; }
  .cta-trust { flex-direction: column; gap: 0.75rem; }
}
