/* ==========================================================================
   UKConcepts — Global Technology Consulting site
   Design system: deep navy + white + cool neutrals + single teal accent
   ========================================================================== */

:root {
  --navy-950: #060a14;
  --navy-900: #0b1220;
  --navy-800: #10192d;
  --navy-700: #182238;
  --ink: #0b1220;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f6;
  --gray-200: #dfe4ec;
  --gray-300: #c4ccd9;
  --gray-500: #7a869c;
  --gray-600: #5b6472;
  --accent: #16c9b3;
  --accent-dark: #0ea495;
  --accent-soft: rgba(22, 201, 179, 0.12);
  --line: rgba(11, 18, 32, 0.09);
  --line-dark: rgba(255, 255, 255, 0.10);

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--gray-600); }
section { position: relative; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  z-index: 1000;
  background: var(--accent);
  color: var(--navy-950);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

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

.dark { background: var(--navy-950); color: var(--white); }
.dark p { color: rgba(255, 255, 255, 0.66); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.dark .btn-outline { border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  padding: 20px 0;
}
.site-header.scrolled {
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.brand img { height: 30px; width: auto; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav ul {
  display: flex;
  gap: 30px;
}
.primary-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.primary-nav a:hover, .primary-nav a.active { color: var(--white); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid var(--line-dark);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 22px; }
  .primary-nav a { font-size: 1.1rem; }
  .nav-cta { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-950);
  color: var(--white);
  padding: 168px 0 110px;
  overflow: hidden;
  scroll-margin-top: 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  max-width: 16ch;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
  margin-bottom: 1.4em;
}
.hero-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 2em;
  background: rgba(255, 255, 255, 0.03);
}
.hero-highlight i { color: var(--accent); font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Abstract network visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
.hero-visual svg { width: 100%; height: 100%; }
.hv-line { stroke: rgba(255,255,255,0.16); stroke-width: 1; fill: none; }
.hv-node { fill: var(--navy-800); stroke: rgba(255,255,255,0.28); stroke-width: 1; }
.hv-node.pulse { fill: var(--accent); stroke: none; animation: hv-pulse 3.2s ease-in-out infinite; }
.hv-node.pulse:nth-of-type(2n) { animation-delay: 0.8s; }
.hv-node.pulse:nth-of-type(3n) { animation-delay: 1.6s; }
.hv-core { fill: url(#hvGlow); }
@keyframes hv-pulse {
  0%, 100% { opacity: 0.55; r: 4.5; }
  50% { opacity: 1; r: 6.5; }
}

/* ---------- Section shell ---------- */
.section { padding: 110px 0; scroll-margin-top: 70px; }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.section-head p { font-size: 1.05rem; }
.eyebrow-dark { color: var(--accent-dark); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(11, 18, 32, 0.25);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.service-card p { font-size: 0.94rem; margin: 0; }
.service-card:has(.service-link) { display: flex; flex-direction: column; }
.service-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.service-link:hover, .service-link:focus-visible { text-decoration: underline; }
.service-link i { transition: transform 0.2s var(--ease); }
.service-link:hover i { transform: translateX(3px); }

/* ---------- InsurTech flow ---------- */
.insurtech { background: var(--gray-50); }
.flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}
.flow-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
  text-align: center;
}
.flow-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.flow-step span { font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.flow-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 1px;
  background: var(--gray-300);
  margin: 0 6px;
  position: relative;
  top: -20px;
}
@media (max-width: 900px) {
  .flow-arrow { width: 20px; }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  padding: 28px 24px;
  border-top: 2px solid var(--accent);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius) var(--radius);
}
.process-step .num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: 0.4em; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* ---------- Why UKConcepts ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.diff-card {
  padding: 26px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.diff-card .diff-num {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.diff-card h3 { font-size: 1.02rem; margin: 0; color: var(--white); }

/* ---------- Global positioning ---------- */
.global-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
}
.globe-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
}
.globe::before, .globe::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.globe::before { inset: 24px; }
.globe::after { inset: 48px; border-color: rgba(22,201,179,0.25); }
.globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(22, 201, 179, 0.3);
  animation: spin 28s linear infinite;
}
.globe-ring.r2 { inset: 40px; animation-duration: 20s; animation-direction: reverse; }
.globe-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(22, 201, 179, 0.6);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Insights ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.insight-tag {
  padding: 26px 26px 0;
}
.insight-tag span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.insight-card h3 { padding: 12px 26px 0; font-size: 1.1rem; }
.insight-card p { padding: 0 26px; font-size: 0.92rem; }
.insight-card .insight-foot {
  margin-top: auto;
  padding: 18px 26px 26px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}

/* ---------- Final CTA / Contact ---------- */
.final-cta { text-align: center; padding: 120px 0 80px; }
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
  margin: 0 auto 0.3em;
}
.final-cta .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 40ch;
  margin: 0 auto 2em;
}
.contact-block {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  text-align: left;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info-list i { color: var(--accent); font-size: 1.1rem; margin-top: 3px; }
.contact-info-list strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { font-size: 0.92rem; color: rgba(255,255,255,0.68); }
.contact-info-list a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 14px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 4px; }
.form-error { color: #ff8a8a; font-size: 0.85rem; margin: -6px 0 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid var(--line-dark);
  padding: 50px 0 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 26px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1rem; }
.footer-tagline { font-size: 0.85rem; max-width: 32ch; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; order: -1; }
  .hero { padding-top: 140px; text-align: left; }
  .global-section { grid-template-columns: 1fr; }
  .globe-wrap { order: -1; }
  .contact-block { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-highlight { font-size: 0.85rem; }
  .footer-top { flex-direction: column; }
}
