/* Foxeffex – Phase 1 homepage styles
   Palette taken from logo/foxeffex-logo.svg:
   --navy  #132253  (logo wordmark, primary)
   --green #45944A  (logo mark accent, complementary)
*/

:root {
  --navy: #132253;
  --navy-deep: #0C1639;
  --green: #45944A;
  --green-deep: #367A3B;
  --green-soft: #E8F3E9;

  --ink: #1B2233;
  --muted: #5A6378;
  --line: #E2E6EE;
  --surface: #FFFFFF;
  --surface-alt: #F5F7FA;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(19, 34, 83, 0.06), 0 8px 24px rgba(19, 34, 83, 0.08);
  --container: 1200px;
  --header-h: 72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --paper: #FAF8F3;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

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

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

.btn-accent:hover {
  background: var(--green-deep);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-nav {
  padding: 9px 20px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--navy);
  background: var(--surface-alt);
}

.nav-link[aria-current="page"] {
  color: var(--navy);
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

.dropdown.is-open {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--green-soft);
  color: var(--navy);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(69, 148, 74, 0.28), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 120px 0 128px;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9BD7A0;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin-top: 24px;
  max-width: 640px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

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

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

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

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

.section-title {
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ---------- Hero artwork (original SVG, drawn in logo colours) ---------- */

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

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

/* Subtle paper-like texture on the lighter sections */
.section-alt,
.capabilities {
  background-color: var(--paper);
}

.section-alt {
  background-image:
    linear-gradient(rgba(19, 34, 83, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 83, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Gold-free classic ornament: a thin double rule above section titles */
.section-title::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--green), var(--navy));
  border-radius: 2px;
}

/* Hero layout: the artwork sits to the right of the text on wide screens */
.hero-inner {
  position: relative;
  max-width: none;
}

.hero-title {
  max-width: 620px;
}

.hero .hero-art {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(400px, 36%);
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .hero .hero-art {
    display: none;
  }
}

/* ---------- Card icons ---------- */

.card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #9BD7A0;
  box-shadow: 0 8px 18px rgba(19, 34, 83, 0.25);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

  .hero-art {
    max-width: 460px;
  }
}

/* ---------- Section 2: capability cards ---------- */

.capabilities {
  margin-top: -64px;
  padding-top: 0;
  position: relative;
}

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

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.card-title {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

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

/* ---------- Section 3: use cases ---------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Section 4: benefits ---------- */

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

.benefit {
  padding: 24px 24px 24px 56px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
}

.benefit::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--green-soft);
}

/* ---------- Section 5: process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.step-name {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

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

/* ---------- Section 6: value ---------- */

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.value-col {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-heading {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.value-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.value-list li:last-child {
  border-bottom: 0;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
}

/* ---------- Section 7: CTA ---------- */

.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.cta-inner {
  max-width: 760px;
}

.cta-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.cta-copy {
  margin: 20px auto 36px;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  /* Logo is supplied in navy, so sit it on a light panel to keep it legible. */
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.footer-brand p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand .footer-contact {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

.footer-contact a:hover {
  color: #9BD7A0;
  text-decoration: underline;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
}

.footer-nav a,
.legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-nav a:hover,
.legal a:hover {
  color: #9BD7A0;
  text-decoration: underline;
}

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

.legal {
  display: flex;
  gap: 24px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

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

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

  .process {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
  }

  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }

  .dropdown.is-open {
    display: block;
  }

  .btn-nav {
    margin-top: 16px;
    width: 100%;
  }

  .has-dropdown > .dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  .hero {
    padding: 88px 0 96px;
  }

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

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

@media (max-width: 600px) {
  .card-grid,
  .benefit-grid,
  .process,
  .footer-nav ul {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .capabilities {
    margin-top: -48px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Phase 13: immersive Foxeffex visual system ---------- */

:root {
  --background: #f7f9fc;
  --background-alt: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-dark: #0d1220;
  --ink: #172039;
  --muted: #617087;
  --line: #dce4ef;
  --navy: #132253;
  --navy-deep: #091224;
  --green: #45944A;
  --green-deep: #367A3B;
  --green-soft: #E8F3E9;
  --cyan: #53d6ff;
  --blue: #4d78ff;
  --violet: #8b5cf6;
  --pink: #df5bb1;
  --header-bg: rgba(247, 249, 252, 0.88);
  --shadow: 0 24px 70px rgba(21, 34, 67, 0.12);
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
}

:root[data-theme="dark"] {
  --background: #070a12;
  --background-alt: #0d1220;
  --surface: #131a2b;
  --surface-soft: #192238;
  --ink: #f4f7fb;
  --muted: #abb6ca;
  --line: #263149;
  --navy: #dfe8ff;
  --navy-deep: #070a12;
  --green-soft: #183126;
  --header-bg: rgba(7, 10, 18, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body {
  color: var(--ink);
  background: var(--background);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 76px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(83, 214, 255, 0.75);
  box-shadow: 0 8px 24px rgba(83, 214, 255, 0.16);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .moon-icon,
:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.nav-link,
.dropdown-toggle {
  color: var(--ink);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--cyan);
}

.dropdown,
.site-nav {
  background: var(--surface);
  border-color: var(--line);
}

.dropdown a {
  color: var(--ink);
}

.dropdown a:hover {
  background: var(--surface-soft);
  color: var(--navy);
}

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.btn-accent {
  background: linear-gradient(135deg, #4d78ff, #53d6ff);
  color: #07101f;
  border: 0;
  box-shadow: 0 12px 28px rgba(77, 120, 255, 0.22);
}

.btn-primary:hover,
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(83, 214, 255, 0.28);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--ink);
  background: rgba(83, 214, 255, 0.08);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(circle at 82% 35%, rgba(83, 214, 255, 0.14), transparent 20rem),
    radial-gradient(circle at 74% 70%, rgba(139, 92, 246, 0.12), transparent 23rem),
    linear-gradient(135deg, #0b1020 0%, #080c17 70%, #10182a 100%);
  color: #f7f9fc;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -1px;
  height: 90px;
  background: var(--background);
  clip-path: ellipse(58% 48% at 50% 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  color: #70deff;
  margin-bottom: 18px;
}

.hero-title {
  max-width: 680px;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 6.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero-title .accent {
  color: #79dcff;
  text-shadow: 0 0 32px rgba(83, 214, 255, 0.22);
}

.hero-copy {
  max-width: 620px;
  color: rgba(244, 247, 251, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-actions {
  margin-top: 32px;
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0;
  transform: none;
  filter: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  left: 14%;
  top: 14%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(83, 214, 255, 0.16), rgba(139, 92, 246, 0.12));
  filter: blur(28px);
}

.hero-art svg {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.38));
}

.hero-art img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.section {
  padding: 112px 0;
  background: var(--background);
}

.section-alt,
.capabilities {
  background: var(--background-alt);
  background-image: none;
}

.section-title {
  max-width: 780px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-title::before {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  margin-bottom: 24px;
}

.capabilities {
  margin-top: 0;
  padding: 112px 0 80px;
}

.capability-story {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  margin-bottom: 112px;
}

.capability-story.reverse {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
}

.capability-story.reverse .capability-visual {
  order: 2;
}

.capability-visual {
  position: relative;
  min-height: 430px;
  border-radius: 4px 56px 4px 56px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.capability-visual img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.capability-story:hover .capability-visual img {
  transform: scale(1.025);
}

.capability-art {
  width: 100%;
  height: 430px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 30%, rgba(83, 214, 255, 0.28), transparent 8rem),
    linear-gradient(145deg, #10182c, #0a0f1d);
}

.capability-art.grow {
  background:
    radial-gradient(circle at 28% 74%, rgba(223, 91, 177, 0.22), transparent 10rem),
    linear-gradient(145deg, #11162a, #15142a);
}

.capability-art svg {
  width: 84%;
  height: 84%;
}

.capability-number {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.capability-copy h3 {
  margin: 0 0 20px;
  max-width: 520px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.capability-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

.usecase-mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.usecase {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.usecase:nth-child(3n) {
  background: var(--surface-soft);
}

.usecase:hover {
  background: #11182a;
  color: #fff;
  transform: translateY(-4px);
}

.usecase-index {
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.benefit-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.benefit {
  padding: 30px 30px 30px 64px;
  background: var(--surface);
  border: 0;
  border-radius: 0;
}

.benefit::before {
  background: var(--cyan);
  box-shadow: inset 0 0 0 5px var(--surface);
}

.process {
  position: relative;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.process::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
}

.step {
  border: 0;
  background: transparent;
  padding: 0 18px;
  text-align: center;
}

.step::before {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--surface);
  color: var(--cyan);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(83, 214, 255, 0.08);
}

.value-col {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}

.value-heading {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(83, 214, 255, 0.14), transparent 18rem),
    linear-gradient(135deg, #10182c, #090d18);
}

.cta::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -180px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.12);
}

.site-footer {
  background: #080c16;
}

.gallery-grid {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(8),
.gallery-item:nth-child(15) {
  grid-column: span 6;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(9),
.gallery-item:nth-child(10),
.gallery-item:nth-child(16),
.gallery-item:nth-child(17) {
  grid-column: span 3;
}

.gallery-item:nth-child(n+4):not(:nth-child(8)):not(:nth-child(15)) {
  grid-column: span 4;
}

.gallery-item img {
  height: 100%;
  min-height: 260px;
  border-radius: 10px;
  object-fit: cover;
}

.card,
.panel,
.value-card,
.statement,
.service-card {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.card-title,
.value-card h3,
.step-name,
.panel-title,
.chip {
  color: var(--ink);
}

.card p,
.value-card p,
.step p,
.panel p,
.section-lead {
  color: var(--muted);
}

.chip,
.area-label {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.statement {
  background: linear-gradient(135deg, #10182c, #090d18);
  color: #fff;
}

.statement p {
  color: rgba(255, 255, 255, 0.82);
}

.table-wrap,
.training-table,
.comparison-table,
table {
  border-color: var(--line);
}

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

  .usecase-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 68px;
  }

  .header-inner .menu-toggle {
    order: 3;
  }

  .header-actions {
    margin-left: auto;
    margin-right: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 640px;
  }

  .hero .hero-art {
    width: min(440px, 82%);
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(3rem, 11vw, 5.2rem);
  }

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

  .capability-story.reverse .capability-visual {
    order: 0;
  }

  .capability-visual,
  .capability-visual img,
  .capability-art {
    min-height: 360px;
    height: 360px;
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 0;
  }

  .process::before {
    display: none;
  }

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

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    height: 64px;
  }

  .brand img {
    height: 32px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

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

  .hero-inner {
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero .hero-art {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section,
  .capabilities {
    padding: 72px 0;
  }

  .section-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .capability-story {
    gap: 32px;
    margin-bottom: 72px;
  }

  .capability-visual,
  .capability-visual img,
  .capability-art {
    min-height: 300px;
    height: 300px;
  }

  .capability-copy h3 {
    font-size: 2.4rem;
  }

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

  .usecase {
    min-height: 150px;
  }

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

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

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

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
}
