:root {
  --navy: #0c1e3d;
  --navy-light: #152a52;
  --blue: #1e4a8a;
  --accent: #00a8e8;
  --accent-hover: #0090c8;
  --text: #1a2332;
  --text-muted: #5a6578;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(12, 30, 61, 0.08);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo:hover {
  color: #fff;
  opacity: 0.9;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  margin-top: 4px;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 10px 18px;
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-light);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--navy);
}

.btn-white:hover {
  background: var(--bg-alt);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #061428 0%, var(--navy) 40%, var(--blue) 100%);
  color: #fff;
  padding: 88px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(0, 168, 232, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(30, 74, 138, 0.4), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-sm {
  padding: 56px 0 64px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Sections */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card .price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card .link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── Visual service tiles (SD:UK-style) ─── */
.section-services-tiles {
  padding: 80px 0;
  background: #fff;
}

.section-services-tiles .section-header {
  text-align: left;
  max-width: none;
  margin-bottom: 40px;
}

.section-services-tiles .section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

/* Featured duo — large hero tiles */
.tiles-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.tile-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 32px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(12, 30, 61, 0.25);
  color: #fff;
}

.tile-featured__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tile-featured__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 40, 0.92) 0%, rgba(6, 20, 40, 0.35) 55%, transparent 100%);
}

.tile-featured--bespoke .tile-featured__bg {
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #0d3d6b 0%, #1a6bb5 50%, #00a8e8 100%);
}

.tile-featured--web .tile-featured__bg {
  background:
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #1a1040 0%, #3d2a7a 45%, #5b4fc7 100%);
}

.tile-featured__icon {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.tile-featured__content {
  position: relative;
  z-index: 1;
}

.tile-featured h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.tile-featured p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 16px;
  max-width: 90%;
  line-height: 1.55;
}

.tile-featured .tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.tile-featured:hover .tile-cta {
  gap: 12px;
}

/* Main service tile grid */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
  min-height: 380px;
}

.tile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(12, 30, 61, 0.14);
  border-color: transparent;
  color: inherit;
}

.tile-card__visual {
  position: relative;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tile-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.08) 100%);
}

.tile-card__visual svg {
  width: 72px;
  height: 72px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.tile-card--web .tile-card__visual {
  background: linear-gradient(145deg, #1e5a9e, #3b9edd);
}

.tile-card--bespoke .tile-card__visual {
  background: linear-gradient(145deg, #0c4a6e, #0891b2);
}

.tile-card--mvp .tile-card__visual {
  background: linear-gradient(145deg, #5b21b6, #a855f7);
}

.tile-card--maint .tile-card__visual {
  background: linear-gradient(145deg, #065f46, #10b981);
}

.tile-card--consult .tile-card__visual {
  background: linear-gradient(145deg, #92400e, #f59e0b);
}

.tile-card--api .tile-card__visual {
  background: linear-gradient(145deg, #1e3a5f, #6366f1);
}

.tile-card__body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-card__body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.tile-card__body hr {
  border: none;
  height: 3px;
  width: 48px;
  background: var(--accent);
  margin-bottom: 14px;
  border-radius: 2px;
}

.tile-card__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.tile-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tile-card__price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
}

.tile-card__arrow {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.tile-card:hover .tile-card__arrow {
  color: var(--accent);
  gap: 8px;
}

/* What we build — capability chips */
.section-capabilities {
  padding: 72px 0;
  background: var(--bg-alt);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capability-tile {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.capability-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.capability-tile__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.15), rgba(30, 74, 138, 0.12));
}

.capability-tile h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.capability-tile p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}

.stat-item {
  background: #fff;
  padding: 28px 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tiles-featured,
  .tiles-grid {
    grid-template-columns: 1fr;
  }

  .tile-featured {
    min-height: 240px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

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

  .section-services-tiles .section-header {
    text-align: center;
  }
}

/* Trust cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.trust-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.trust-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(0, 168, 232, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.process-step {
  position: relative;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.process-step .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td:last-child {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.pricing-card .amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 20px 0 24px;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 40px 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.cta-band p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Content prose */
.prose {
  max-width: 800px;
}

.prose h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 24px 0 12px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prose ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Form */
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

.contact-info {
  padding: 32px 0;
}

.contact-info h3 {
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-info a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 0.85rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.deliver-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 24px 0;
}

.deliver-list li {
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 16px;
    align-items: stretch;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    margin: 4px 0 8px 16px;
  }

  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);
  }

  .header-cta-desktop {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 72px;
  }
}

/* ─── Detailed service pages ─── */
.service-intro {
  max-width: 820px;
}

.service-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.detail-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.detail-card p,
.detail-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.detail-card ul {
  margin: 12px 0 0 18px;
}

.detail-card li {
  margin-bottom: 8px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.include-item {
  padding: 24px;
  background: var(--bg-alt);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.include-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.include-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.use-case {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

.use-case h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.use-case p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tech-tag {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 800;
}

.content-block > p.lead-block {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-services a {
  padding: 10px 18px;
  background: var(--bg-alt);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
}

.related-services a:hover {
  border-color: var(--accent);
  background: #fff;
}

@media (max-width: 768px) {
  .detail-grid,
  .includes-grid {
    grid-template-columns: 1fr;
  }
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

body.has-cookie-banner {
  padding-bottom: 100px;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.92;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cookie-panel {
  background: var(--navy-light);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-panel__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 0.9rem;
}

.cookie-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

body.has-cookie-banner .back-to-top.visible {
  bottom: 110px;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page .prose {
  max-width: 780px;
}

.legal-toc {
  background: var(--bg-alt);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.legal-toc a {
  display: block;
  padding: 4px 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  font-size: 0.85rem;
}

/* Form consent */
.form-consent {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-consent a {
  font-weight: 600;
}
