/* ==========================================================================
   OGE — Global stylesheet
   Foundation: design tokens, base typography, buttons, header, footer,
   mobile CTA bar, reveal animation. Page-specific sections are appended
   by later work in their own marked blocks.
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #0A2540;
  --color-primary-soft: #123B63;
  --color-accent: #2E90FA;
  --color-accent-strong: #1A6FD4;
  --color-accent-hover: #155BB0;
  --color-accent-soft: #EAF4FF;

  /* Surfaces and text */
  --color-bg: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-text: #1B2733;
  --color-muted: #5B6B7C;
  --color-border: #E3E8EF;
  --color-on-dark: #F3F7FC;
  --color-on-dark-muted: #A9BBD0;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP",
    "PingFang HK", "PingFang SC", "Microsoft YaHei", "Noto Sans TC",
    "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(10, 37, 64, 0.14);
  --header-height: 76px;
}

/* Base ------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

/* Utilities -------------------------------------------------------------- */

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

.section {
  padding: 88px 0;
}

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

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

.section-head p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #FFFFFF;
  transition: top 0.2s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent-strong);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(26, 111, 212, 0.35);
}

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

.btn-outline {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
}

.btn-outline:hover {
  border-color: var(--color-primary);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #FFFFFF;
}

.btn-ghost:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

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

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-accent-strong);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-bg);
}

.lang-btn {
  min-width: 38px;
  min-height: 34px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(10, 37, 64, 0.14);
}

.header-cta {
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

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

.site-footer {
  padding: 64px 0 28px;
  background: var(--color-primary);
  color: var(--color-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 40px;
}

.footer-brand-name {
  display: block;
  margin-bottom: 12px;
  color: #FFFFFF;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.footer-brand p {
  max-width: 360px;
  color: var(--color-on-dark-muted);
}

.footer-col h3 {
  margin-bottom: 16px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: var(--color-on-dark-muted);
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-contact span {
  color: var(--color-on-dark-muted);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-on-dark-muted);
  font-size: 13px;
}

/* Mobile CTA bar --------------------------------------------------------- */

.mobile-cta {
  display: none;
}

/* Reveal animation ------------------------------------------------------- */

.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-init {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.reveal-init.visible {
  opacity: 1;
  transform: none;
}

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

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

  .header-cta {
    display: none;
  }

  .lang-switcher {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    margin: 0;
    max-height: calc(100vh - var(--header-height));
    overflow: auto;
    padding: 8px 24px 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .section {
    padding: 64px 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-cta .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
  }

  body {
    padding-bottom: 76px;
  }

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

  .container {
    padding: 0 16px;
  }

  .site-header .container {
    gap: 10px;
  }

  .brand img {
    height: 28px;
  }

  .lang-btn {
    min-width: 34px;
    padding: 4px 8px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

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

  .btn,
  .skip-link,
  .site-nav,
  .reveal {
    transition: none;
  }

  .reveal.reveal-init {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Home page
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 116px;
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(46, 144, 250, 0.3), transparent 62%),
    radial-gradient(700px 420px at 5% 115%, rgba(46, 144, 250, 0.14), transparent 60%),
    linear-gradient(135deg, #0a2540 0%, #0d3159 55%, #12406f 100%);
  color: var(--color-on-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero .eyebrow {
  color: #8cc6ff;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--color-on-dark-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

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

.services-groups {
  display: grid;
  gap: 48px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.group-title::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
}

.cards-grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

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

.trust-item {
  padding: 26px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.trust-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.trust-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.cta-band {
  padding: 64px 0;
  background: linear-gradient(120deg, #0a2540, #12406f);
  color: var(--color-on-dark);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  margin-bottom: 8px;
  color: #ffffff;
}

.cta-band p {
  max-width: 580px;
  margin: 0;
  color: var(--color-on-dark-muted);
}

@media (max-width: 960px) {
  .cards-grid-3,
  .cards-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 80px;
  }

  .cards-grid-3,
  .cards-grid-5,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  background:
    radial-gradient(760px 380px at 88% -15%, rgba(46, 144, 250, 0.28), transparent 62%),
    linear-gradient(135deg, #0a2540 0%, #0d3159 60%, #12406f 100%);
  color: var(--color-on-dark);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

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

.page-hero h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.page-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--color-on-dark-muted);
  font-size: 1.08rem;
}

/* About page */

.about-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.section-head-left {
  margin: 0;
  text-align: left;
}

.about-copy p {
  font-size: 1.04rem;
}

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

.mv-card {
  padding: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.mv-card h2 {
  font-size: 1.4rem;
}

.mv-card p {
  margin: 0;
  color: var(--color-muted);
}

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

.adv-card {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.adv-card h3 {
  margin-bottom: 8px;
}

.adv-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 640px) {
  .page-hero {
    padding: 64px 0 56px;
  }

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

/* Services page */

.group-head {
  margin-bottom: 28px;
}

.group-head .group-title {
  margin: 0;
  font-size: 1.45rem;
}

.group-head .group-title::before {
  width: 40px;
  height: 4px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-card .card-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.service-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.service-card-body > p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.service-points {
  display: grid;
  gap: 6px;
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (max-width: 960px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-card {
    flex-direction: column;
    gap: 14px;
  }
}

/* Contact page */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
}

.contact-cards {
  display: grid;
  gap: 14px;
  list-style: none;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-card svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-accent-strong);
}

.contact-card a,
.contact-card span {
  color: var(--color-text);
  font-size: 0.97rem;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--color-accent-strong);
}

.inquiry-form {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.inquiry-form h2 {
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.5;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-field [aria-invalid="true"] {
  border-color: #d92d20;
}

.field-error {
  margin: 0;
  color: #d92d20;
  font-size: 0.85rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--color-accent-strong);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .inquiry-form {
    padding: 24px 20px;
  }

  body[data-page="contact"] {
    padding-bottom: 0;
  }

  body[data-page="contact"] .mobile-cta {
    display: none;
  }
}

/* ==========================================================================
   Design upgrade — global reach, innovative detail
   ========================================================================== */

:root {
  --color-primary: #071a2e;
  --color-primary-soft: #0e2a47;
  --color-cyan: #22d3ee;
  --color-violet: #8b5cf6;
  --gradient-brand: linear-gradient(120deg, #1a6fd4 0%, #2e90fa 45%, #7c5cf6 100%);
  --gradient-text: linear-gradient(100deg, #8cc6ff 0%, #22d3ee 50%, #a78bfa 100%);
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px rgba(7, 26, 46, 0.08);
  --shadow-card-hover: 0 24px 60px rgba(7, 26, 46, 0.16);
}

body {
  background: #fbfdff;
}

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

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.35;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(7, 26, 46, 0.1);
}

.btn-primary {
  background-image: var(--gradient-brand);
  background-size: 150% 150%;
  background-position: 0 0;
  box-shadow: 0 10px 26px rgba(26, 111, 212, 0.35);
}

.btn-primary:hover {
  background-position: 100% 0;
}

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

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 48px;
  max-width: none;
}

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

.hero h1 {
  background: linear-gradient(180deg, #ffffff 18%, #a9cdff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #bfe0ff;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  animation: pulseDot 2.6s ease-in-out infinite;
}

.hero-actions {
  margin-bottom: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dcebff;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(46, 144, 250, 0.4),
    rgba(139, 92, 246, 0.12) 55%,
    transparent 72%
  );
  filter: blur(28px);
}

.hero-visual .globe {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: auto;
  animation: globeSpin 90s linear infinite;
}

.arc {
  animation: dashFlow 7s linear infinite;
}

.arc-b {
  animation-delay: -2.4s;
}

.arc-c {
  animation-delay: -4.6s;
}

.nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.4s ease-in-out infinite;
}

.nodes circle:nth-child(2) {
  animation-delay: 0.6s;
}

.nodes circle:nth-child(3) {
  animation-delay: 1.1s;
}

.nodes circle:nth-child(4) {
  animation-delay: 1.7s;
}

.nodes circle:nth-child(5) {
  animation-delay: 2.2s;
}

.nodes circle:nth-child(6) {
  animation-delay: 2.8s;
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #ffffff;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 80px;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeSlide 36s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 16px 16px 0;
}

.marquee-group span:not(.dot) {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-group .dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.7;
}

/* Cards / bento ---------------------------------------------------------- */

.cards-grid-3,
.cards-grid-5 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border-color: rgba(7, 26, 46, 0.08);
  border-radius: var(--radius-lg);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px 180px at 15% -10%, rgba(46, 144, 250, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(46, 144, 250, 0.28);
}

.cards-grid-3 > .card:first-child,
.cards-grid-5 > .card:first-child {
  grid-column: span 2;
}

.cards-grid-5 > .card-cta {
  grid-column: span 2;
}

.card-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 200px;
  background: linear-gradient(135deg, #071a2e, #123b63 62%, #1a4a7a);
  color: #ffffff;
  text-decoration: none;
}

.card-cta::after {
  display: none;
}

.card-cta-label {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-cta-arrow {
  color: #8cc6ff;
  font-size: 30px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.card-cta:hover {
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-cta:hover .card-cta-arrow {
  transform: translateX(8px);
}

/* Trust icons ------------------------------------------------------------ */

.trust-item {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(46, 144, 250, 0.25);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

/* Global panel ----------------------------------------------------------- */

.global-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  padding: 56px 60px;
  border-radius: 32px;
  background:
    radial-gradient(680px 380px at 88% 8%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(560px 360px at 6% 100%, rgba(139, 92, 246, 0.16), transparent 60%),
    linear-gradient(135deg, #071a2e 0%, #0e2a47 58%, #123b63 100%);
  color: var(--color-on-dark);
  box-shadow: 0 30px 80px rgba(7, 26, 46, 0.22);
}

.global-copy h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.global-copy p {
  max-width: 520px;
  color: var(--color-on-dark-muted);
}

.global-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.global-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  color: transparent;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  color: var(--color-on-dark-muted);
  font-size: 0.82rem;
}

.global-visual {
  position: relative;
}

.global-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
  filter: blur(18px);
}

.global-visual .globe-wide {
  position: relative;
  width: 100%;
  height: auto;
  animation: globeSpin 140s linear infinite;
}

/* CTA band and footer ---------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 320px at 86% 16%, rgba(34, 211, 238, 0.22), transparent 62%),
    radial-gradient(520px 300px at 8% 100%, rgba(139, 92, 246, 0.2), transparent 60%),
    linear-gradient(120deg, #071a2e, #123b63);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(140, 198, 255, 0.22);
  box-shadow: 0 0 0 46px rgba(140, 198, 255, 0.05), 0 0 0 104px rgba(140, 198, 255, 0.035);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #071a2e 0%, #081d33 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.55;
}

.section.alt {
  background: linear-gradient(180deg, #f7fafd 0%, #edf2f8 100%);
}

/* Inner page ornaments --------------------------------------------------- */

.page-hero .container {
  position: relative;
}

.page-hero-orbit {
  position: absolute;
  top: 50%;
  right: 3%;
  width: min(300px, 32vw);
  opacity: 0.6;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-hero-orbit svg {
  width: 100%;
  height: auto;
  animation: globeSpin 120s linear infinite;
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
}

/* Keyframes -------------------------------------------------------------- */

@keyframes globeSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -150;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.3);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.06);
  }
}

@keyframes marqueeSlide {
  to {
    transform: translateX(-50%);
  }
}

/* Upgrade responsive ----------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 24px;
  }

  .hero-visual .globe {
    max-width: 400px;
  }

  .global-panel {
    padding: 48px 40px;
  }
}

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

  .hero-visual {
    display: none;
  }

  .cards-grid-3,
  .cards-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid-3 > .card:first-child,
  .cards-grid-5 > .card:first-child,
  .cards-grid-5 > .card-cta {
    grid-column: auto;
  }

  .global-panel {
    grid-template-columns: 1fr;
  }

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

  .global-visual {
    max-width: 440px;
    margin: 0 auto;
  }

  .page-hero-orbit {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 72px;
  }

  .cards-grid-3,
  .cards-grid-5 {
    grid-template-columns: 1fr;
  }

  .global-panel {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .marquee-group {
    gap: 22px;
  }

  .card-cta {
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .globe,
  .global-visual .globe-wide,
  .page-hero-orbit svg,
  .arc,
  .nodes circle,
  .hero .eyebrow::before,
  .marquee-track {
    animation: none;
  }
}

/* Global panel visual — trade network & AI layer -------------------------- */

.global-panel {
  grid-template-columns: 0.95fr 1.05fr;
}

.global-visual {
  max-width: 560px;
  margin-left: auto;
}

.global-visual .globe-wide {
  animation: floatY 7s ease-in-out infinite;
}

.globe-wide .trade-arc {
  animation: dashFlow 9s linear infinite;
}

.globe-wide .route {
  animation: dashFlow 5.5s linear infinite;
}

.globe-wide .route-b,
.globe-wide .route-e {
  animation-delay: -1.6s;
}

.globe-wide .route-c,
.globe-wide .route-f {
  animation-delay: -3.2s;
}

.globe-wide .route-d {
  animation-delay: -4.4s;
}

.globe-wide .hub .pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeRing 3.2s ease-out infinite;
}

.globe-wide .hub:nth-child(2) .pulse {
  animation-delay: 0.5s;
}

.globe-wide .hub:nth-child(3) .pulse {
  animation-delay: 1s;
}

.globe-wide .hub:nth-child(4) .pulse {
  animation-delay: 1.5s;
}

.globe-wide .hub:nth-child(5) .pulse {
  animation-delay: 2s;
}

.globe-wide .hub:nth-child(6) .pulse {
  animation-delay: 2.5s;
}

.globe-wide .ai-nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: aiBlink 3.6s ease-in-out infinite;
}

.globe-wide .ai-nodes circle:nth-child(2) {
  animation-delay: 0.7s;
}

.globe-wide .ai-nodes circle:nth-child(3) {
  animation-delay: 1.4s;
}

.globe-wide .ai-nodes circle:nth-child(4) {
  animation-delay: 2.1s;
}

.globe-wide .spark {
  animation: sparkFloat 6s ease-in-out infinite;
}

.globe-wide .spark-b {
  animation-delay: 1.4s;
}

.globe-wide .spark-c {
  animation-delay: 2.8s;
}

.globe-wide .spark-d {
  animation-delay: 4.2s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes nodeRing {
  0% {
    opacity: 0.9;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes aiBlink {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sparkFloat {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-visual .globe-wide,
  .globe-wide .trade-arc,
  .globe-wide .route,
  .globe-wide .hub .pulse,
  .globe-wide .ai-nodes circle,
  .globe-wide .spark {
    animation: none;
  }
}

/* ==========================================================================
   Star fields, light sweep and hero globe v2
   ========================================================================== */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='18' cy='24' r='1.2' fill-opacity='.55'/%3E%3Ccircle cx='120' cy='60' r='.9' fill-opacity='.35'/%3E%3Ccircle cx='240' cy='30' r='1.1' fill-opacity='.5'/%3E%3Ccircle cx='60' cy='130' r='.8' fill-opacity='.3'/%3E%3Ccircle cx='200' cy='110' r='1.3' fill-opacity='.5'/%3E%3Ccircle cx='30' cy='210' r='1' fill-opacity='.4'/%3E%3Ccircle cx='150' cy='190' r='.8' fill-opacity='.3'/%3E%3Ccircle cx='250' cy='220' r='1.2' fill-opacity='.5'/%3E%3Ccircle cx='90' cy='260' r='.9' fill-opacity='.35'/%3E%3Ccircle cx='210' cy='160' r='.7' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 280px;
  opacity: 0.5;
  pointer-events: none;
  animation: starTwinkle 14s ease-in-out infinite;
}

.global-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='18' cy='24' r='1.2' fill-opacity='.55'/%3E%3Ccircle cx='120' cy='60' r='.9' fill-opacity='.35'/%3E%3Ccircle cx='240' cy='30' r='1.1' fill-opacity='.5'/%3E%3Ccircle cx='60' cy='130' r='.8' fill-opacity='.3'/%3E%3Ccircle cx='200' cy='110' r='1.3' fill-opacity='.5'/%3E%3Ccircle cx='30' cy='210' r='1' fill-opacity='.4'/%3E%3Ccircle cx='150' cy='190' r='.8' fill-opacity='.3'/%3E%3Ccircle cx='250' cy='220' r='1.2' fill-opacity='.5'/%3E%3Ccircle cx='90' cy='260' r='.9' fill-opacity='.35'/%3E%3Ccircle cx='210' cy='160' r='.7' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 280px;
  opacity: 0.35;
  pointer-events: none;
  animation: starTwinkle 18s ease-in-out infinite;
}

.hero-sweep,
.global-panel::after {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 38%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(150, 205, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.07) 55%,
    transparent 100%
  );
  transform: translateX(-160%) rotate(10deg);
  animation: panelSweep 11s ease-in-out infinite;
  pointer-events: none;
}

.global-panel::after {
  content: "";
}

.global-panel > * {
  position: relative;
  z-index: 1;
}

/* Hero globe layout and motion */

@media (min-width: 961px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 32px;
  }

  .hero-visual .globe {
    max-width: 620px;
  }

  .global-panel {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .global-visual {
    max-width: 620px;
  }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .hero-visual .globe {
    max-width: 480px;
  }
}

.hero-visual .globe {
  animation: globeFloat 8s ease-in-out infinite;
}

.hero-globe .orbit-spin {
  transform-box: view-box;
  transform-origin: 280px 280px;
  animation: orbitSpin 30s linear infinite;
}

.hero-globe .orbit-spin-b {
  animation-duration: 46s;
  animation-direction: reverse;
}

.hero-globe .route {
  animation: dashFlow 6s linear infinite;
}

.hero-globe .route-b,
.hero-globe .route-e {
  animation-delay: -1.8s;
}

.hero-globe .route-c,
.hero-globe .route-f {
  animation-delay: -3.4s;
}

.hero-globe .route-d {
  animation-delay: -4.6s;
}

.hero-globe .hub .pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeRing 3.2s ease-out infinite;
}

.hero-globe .hub:nth-child(2) .pulse {
  animation-delay: 0.5s;
}

.hero-globe .hub:nth-child(3) .pulse {
  animation-delay: 1s;
}

.hero-globe .hub:nth-child(4) .pulse {
  animation-delay: 1.5s;
}

.hero-globe .hub:nth-child(5) .pulse {
  animation-delay: 2s;
}

.hero-globe .hub:nth-child(6) .pulse {
  animation-delay: 2.5s;
}

.hero-globe .ai-nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: aiBlink 3.6s ease-in-out infinite;
}

.hero-globe .ai-nodes circle:nth-child(2) {
  animation-delay: 0.7s;
}

.hero-globe .ai-nodes circle:nth-child(3) {
  animation-delay: 1.4s;
}

.hero-globe .ai-nodes circle:nth-child(4) {
  animation-delay: 2.1s;
}

.hero-globe .spark {
  animation: sparkFloat 6s ease-in-out infinite;
}

.hero-globe .spark-b {
  animation-delay: 1.4s;
}

.hero-globe .spark-c {
  animation-delay: 2.8s;
}

.hero-globe .spark-d {
  animation-delay: 4.2s;
}

@keyframes globeFloat {
  0%,
  100% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes panelSweep {
  0% {
    transform: translateX(-160%) rotate(10deg);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  42% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(430%) rotate(10deg);
    opacity: 0;
  }
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .global-panel::before,
  .hero-sweep,
  .global-panel::after,
  .hero-visual .globe,
  .hero-globe .orbit-spin,
  .hero-globe .route,
  .hero-globe .hub .pulse,
  .hero-globe .ai-nodes circle,
  .hero-globe .spark {
    animation: none;
  }

  .comet {
    display: none;
  }
}

/* AI × TRADE section ----------------------------------------------------- */

.ai-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.ai-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 26, 46, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 46, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.ai-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ai-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.ai-copy > p {
  max-width: 520px;
  color: var(--color-muted);
}

.ai-points {
  display: grid;
  gap: 0;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.ai-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}

.ai-points li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.ai-num {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(26, 111, 212, 0.18);
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ai-points h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.ai-points p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.ai-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(140, 198, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(160deg, #071a2e 0%, #0b2240 60%, #0e2a47 100%);
  box-shadow: 0 30px 70px rgba(7, 26, 46, 0.25);
}

.ai-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 85% 0%, rgba(34, 211, 238, 0.16), transparent 60%);
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(140, 198, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e90fa;
  opacity: 0.85;
}

.terminal-bar span:nth-child(2) {
  background: #22d3ee;
}

.terminal-bar span:nth-child(3) {
  background: #8b5cf6;
}

.terminal-bar em {
  margin-left: auto;
  color: #7fa8d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-body {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 22px 22px 26px;
  color: #a9c4e0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.terminal-body code {
  font: inherit;
}

.t-line {
  display: block;
}

.t-prompt {
  margin-right: 6px;
  color: #22d3ee;
}

.t-ok {
  color: #5eead4;
}

.t-warn {
  color: #c4b5fd;
}

.t-cursor .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #22d3ee;
  vertical-align: -2px;
  animation: cursorBlink 1.1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai-terminal {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .terminal-body {
    padding: 18px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-cursor .cursor {
    animation: none;
  }
}

/* Marquee — centered floating pill, always filled ------------------------ */

.marquee {
  position: relative;
  z-index: 2;
  width: min(1140px, calc(100% - 48px));
  margin: -26px auto 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(7, 26, 46, 0.07);
}

.marquee-track {
  animation-duration: 42s;
}

.marquee-group {
  justify-content: space-around;
  min-width: min(1140px, calc(100vw - 48px));
  padding: 16px 28px;
}

@media (max-width: 640px) {
  .marquee {
    width: calc(100% - 32px);
    margin-top: -18px;
    border-radius: 26px;
  }

  .marquee-group {
    gap: 20px;
    min-width: calc(100vw - 32px);
    padding: 14px 18px;
  }
}

/* Photo backdrops -------------------------------------------------------- */

.hero {
  background:
    linear-gradient(
      180deg,
      rgba(7, 26, 46, 0.9) 0%,
      rgba(7, 26, 46, 0.8) 45%,
      rgba(7, 26, 46, 0.94) 100%
    ),
    radial-gradient(900px 460px at 85% -10%, rgba(46, 144, 250, 0.3), transparent 62%),
    radial-gradient(700px 420px at 5% 115%, rgba(46, 144, 250, 0.14), transparent 60%),
    url("../assets/images/city-skyline.jpg");
  background-size: cover, auto, auto, cover;
  background-position: center, center, center, center 42%;
  background-repeat: no-repeat;
}

body[data-page="about"] .page-hero {
  background:
    linear-gradient(
      90deg,
      rgba(7, 26, 46, 0.93) 0%,
      rgba(7, 26, 46, 0.8) 55%,
      rgba(7, 26, 46, 0.7) 100%
    ),
    url("../assets/images/glass-towers.jpg");
  background-size: cover, cover;
  background-position: center, center 38%;
  background-repeat: no-repeat;
}

.cta-band {
  background:
    linear-gradient(
      90deg,
      rgba(7, 26, 46, 0.95) 0%,
      rgba(7, 26, 46, 0.85) 55%,
      rgba(7, 26, 46, 0.75) 100%
    ),
    radial-gradient(620px 320px at 86% 16%, rgba(34, 211, 238, 0.18), transparent 62%),
    url("../assets/images/mountain-range.jpg");
  background-size: cover, auto, cover;
  background-position: center, center, center 58%;
  background-repeat: no-repeat;
}

/* Inner page heroes — aligned with the home hero -------------------------- */

.page-hero {
  padding: 92px 0 84px;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

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

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 4vw, 2.9rem);
  background: linear-gradient(180deg, #ffffff 18%, #a9cdff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--color-on-dark-muted);
}

.page-hero .hero-actions {
  margin-top: 28px;
}

.page-hero .hero-chips {
  margin-top: 26px;
}

.page-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.page-hero-visual::before {
  content: "SYSTEM ONLINE";
  position: absolute;
  top: 2%;
  right: 2%;
  color: #8cc6ff;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

.page-hero-visual::after {
  content: "GLOBAL TRADE NETWORK";
  position: absolute;
  bottom: 0;
  left: 50%;
  color: #8cc6ff;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  white-space: nowrap;
  opacity: 0.7;
  transform: translateX(-50%);
}

.page-hero-visual .globe {
  width: 100%;
  max-width: 430px;
  height: auto;
  animation: globeFloat 9s ease-in-out infinite;
}

body[data-page="about"] .page-hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 26, 46, 0.92) 0%,
      rgba(7, 26, 46, 0.78) 55%,
      rgba(7, 26, 46, 0.68) 100%
    ),
    url("../assets/images/glass-towers.jpg");
  background-position: center, center 38%;
}

body[data-page="services"] .page-hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 26, 46, 0.94) 0%,
      rgba(7, 26, 46, 0.8) 55%,
      rgba(7, 26, 46, 0.7) 100%
    ),
    url("../assets/images/mountain-range.jpg");
  background-position: center, center 58%;
}

body[data-page="contact"] .page-hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 26, 46, 0.93) 0%,
      rgba(7, 26, 46, 0.78) 55%,
      rgba(7, 26, 46, 0.7) 100%
    ),
    url("../assets/images/city-skyline.jpg");
  background-position: center, center 45%;
}

@media (max-width: 960px) {
  .page-hero {
    padding: 72px 0 64px;
  }

  .page-hero .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-hero-visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 60px 0 52px;
  }
}

/* Content photos --------------------------------------------------------- */

.about-intro {
  grid-template-columns: 0.7fr 1.35fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.contact-photo {
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.contact-photo img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .about-intro {
    grid-template-columns: 0.8fr 1.4fr;
  }

  .about-photo {
    grid-column: 1 / -1;
  }

  .about-photo img {
    height: 300px;
  }
}

@media (max-width: 960px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-photo img {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .contact-photo img {
    height: 180px;
  }
}


/* Page-fill content additions -------------------------------------------- */

.global-regions {
  margin: 26px 0 0;
  color: #bfe0ff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.global-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 16px;
}

.global-zones span {
  color: rgba(191, 224, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.global-zones em {
  margin-left: 6px;
  color: #22d3ee;
  font-style: normal;
}

.process {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.process-title {
  margin-bottom: 28px;
  font-size: 1.35rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.process-step {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.process-num {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 9px;
  border: 1px solid rgba(26, 111, 212, 0.18);
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-step h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.process-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.cta-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  color: #dcebff;
  font-size: 14px;
}

.cta-quick a {
  color: #dcebff;
}

.cta-quick a:hover {
  color: #ffffff;
  text-decoration: none;
}

.cta-quick span {
  color: rgba(220, 235, 255, 0.5);
}

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

/* Expanded page content -------------------------------------------------- */

.global-panel {
  background-image:
    linear-gradient(
      120deg,
      rgba(7, 26, 46, 0.94) 0%,
      rgba(7, 26, 46, 0.86) 55%,
      rgba(7, 26, 46, 0.78) 100%
    ),
    radial-gradient(680px 380px at 88% 8%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(560px 360px at 6% 100%, rgba(139, 92, 246, 0.16), transparent 60%),
    url("../assets/images/containers-aerial.jpg");
  background-size: cover, auto, auto, cover;
  background-position: center, center, center, center 45%;
  background-repeat: no-repeat;
}

.industries {
  margin-top: 48px;
  text-align: center;
}

.industries h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.industries p {
  margin: 0;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.quote {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.quote p {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.quote footer {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.ai-scenarios {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin-top: 28px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #eaf4ff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cta-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-card svg {
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
  color: #8cc6ff;
}

.cta-card-label {
  color: rgba(220, 235, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-card-value {
  font-size: 14px;
  font-weight: 600;
}

.services-showcase .showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.showcase-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.showcase-photo img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.showcase-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.showcase-copy p {
  max-width: 480px;
  color: var(--color-muted);
}

.showcase-copy .btn {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .services-showcase .showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .showcase-photo img {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .cta-cards {
    grid-template-columns: 1fr;
  }
}

/* AI stack cards --------------------------------------------------------- */

.ai-stack {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.ai-stack .eyebrow {
  margin-bottom: 10px;
}

.ai-stack-title {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.ai-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ai-stack-card {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.ai-stack-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(46, 144, 250, 0.25);
}

.ai-stack-icon svg {
  width: 20px;
  height: 20px;
}

.ai-stack-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.ai-stack-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.ai-stack-cta {
  min-height: 0;
  padding: 24px;
}

@media (max-width: 960px) {
  .ai-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ai-stack-grid {
    grid-template-columns: 1fr;
  }
}

/* Trade capabilities inside the global panel ----------------------------- */

.trade-capabilities {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trade-cap-kicker {
  margin: 0 0 16px;
  color: #8cc6ff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.trade-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trade-cap {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trade-cap-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46, 144, 250, 0.18);
  color: #8cc6ff;
}

.trade-cap-icon svg {
  width: 18px;
  height: 18px;
}

.trade-cap h4 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 0.92rem;
}

.trade-cap p {
  margin: 0;
  color: var(--color-on-dark-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .trade-cap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .trade-cap-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero + marquee fill the first screen ----------------------------------- */

.hero {
  display: flex;
  align-items: center;
}

@media (min-width: 961px) {
  .hero {
    min-height: calc(100vh - var(--header-height) - 31px);
    padding: 40px 0;
  }

  .hero-visual .globe {
    max-width: min(620px, 56vh);
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .hero {
    min-height: calc(100vh - var(--header-height) - 31px);
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: calc(100vh - var(--header-height) - 35px);
    padding: 36px 0 40px;
  }
}

/* Hero visual enrichment ------------------------------------------------- */

.hero {
  background:
    linear-gradient(
      180deg,
      rgba(7, 26, 46, 0.84) 0%,
      rgba(7, 26, 46, 0.68) 45%,
      rgba(7, 26, 46, 0.92) 100%
    ),
    radial-gradient(760px 440px at 80% 12%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(640px 400px at 10% 85%, rgba(139, 92, 246, 0.2), transparent 62%),
    radial-gradient(900px 460px at 85% -10%, rgba(46, 144, 250, 0.32), transparent 62%),
    radial-gradient(700px 420px at 5% 115%, rgba(46, 144, 250, 0.16), transparent 60%),
    url("../assets/images/city-skyline.jpg");
  background-size: cover, auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center, center 42%;
  background-repeat: no-repeat;
}

.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 26, 46, 0.55);
  color: #dceeff;
  box-shadow: 0 16px 40px rgba(3, 12, 24, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: floatCard 7s ease-in-out infinite;
}

.float-card strong {
  display: block;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.float-card em {
  color: rgba(200, 225, 255, 0.75);
  font-size: 11px;
  font-style: normal;
}

.float-card svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8cc6ff;
}

.float-ping {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.float-a {
  top: 10%;
  left: 0;
  animation-delay: -1.2s;
}

.float-b {
  top: 36%;
  right: 0;
  animation-delay: -2.8s;
}

.float-c {
  bottom: 12%;
  left: 4%;
  animation-delay: -4.4s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
}

/* Hero quick navigation & network linework ------------------------------- */

.hero-inner {
  position: relative;
}

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

.hero-visual {
  z-index: 1;
}

.hero-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 20px;
}

.hero-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf4ff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-quick-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-quick-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(46, 144, 250, 0.2);
  color: #8cc6ff;
}

.hero-quick-icon svg {
  width: 16px;
  height: 16px;
}

.hero-quick-card strong {
  display: block;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-quick-card em {
  color: rgba(200, 225, 255, 0.6);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.hero-net {
  position: absolute;
  top: 26%;
  left: 46%;
  z-index: 0;
  width: min(300px, 24vw);
  opacity: 0.55;
  pointer-events: none;
}

.hero-net svg {
  width: 100%;
  height: auto;
  animation: dashFlow 9s linear infinite;
}

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

@media (max-height: 720px) and (min-width: 961px) {
  .hero-quick {
    display: none;
  }
}

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

/* Overall tidiness pass -------------------------------------------------- */

#services-overview,
#ai,
#why-us,
#trade,
#technology {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

@media (min-width: 961px) {
  #trade {
    padding-bottom: 28px;
  }

  #technology {
    padding-top: 44px;
  }

  .services-showcase {
    padding: 60px 0 88px;
  }
}

/* ==========================================================================
   Polish pass — unified card grids & consistent card language
   ========================================================================== */

/* Home service groups: even 3-column grid, no stretched bento cards ------- */

.cards-grid-3,
.cards-grid-5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-3 > .card:first-child,
.cards-grid-5 > .card:first-child,
.cards-grid-5 > .card-cta {
  grid-column: auto;
}

.cards-grid .card {
  display: flex;
  flex-direction: column;
}

.cards-grid .card p {
  flex: 1;
}

/* Services page: vertical cards in a 3-column grid, matching home --------- */

.service-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  flex-direction: column;
  gap: 0;
}

.service-card .card-icon {
  margin-bottom: 16px;
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.service-card-body > p {
  flex: 0 0 auto;
}

.service-card .service-points {
  margin-top: auto;
}

/* CTA card inside the services-page grid ---------------------------------- */

.service-cta {
  position: relative;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border-color: transparent;
  background: linear-gradient(135deg, #071a2e, #123b63 62%, #1a4a7a);
  color: #ffffff;
  text-decoration: none;
}

.service-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 160px at 90% 0%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(240px 160px at 0% 100%, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
}

.service-cta .card-cta-label {
  position: relative;
  color: #ffffff;
}

.service-cta .card-cta-sub {
  position: relative;
  margin: 6px 0 26px;
  color: var(--color-on-dark-muted);
  font-size: 0.9rem;
}

.service-cta .card-cta-arrow {
  position: relative;
}

.service-cta:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* About page advantages: same card language as the rest of the site -------- */

.adv-card {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.adv-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0.85;
}

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

/* Contact info cards: same hover language as other cards ------------------- */

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

.contact-card:hover {
  border-color: rgba(26, 111, 212, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Quote card: gradient accent bar ------------------------------------------ */

.quote {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.quote::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gradient-brand);
}

.quote p,
.quote footer {
  position: relative;
}

/* Responsive adjustments for the new grids --------------------------------- */

@media (max-width: 1100px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .cards-grid-3,
  .cards-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .cards-grid-3,
  .cards-grid-5 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Optimisation pass — nav current state & keyboard focus
   ========================================================================== */

/* Current page indicator in the main navigation --------------------------- */

.site-nav a[aria-current="page"] {
  position: relative;
  color: var(--color-accent-strong);
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

@media (max-width: 960px) {
  .site-nav a[aria-current="page"]::after {
    display: none;
  }
}

/* Visible focus style for keyboard users ---------------------------------- */

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-nav a:focus-visible,
.lang-btn:focus-visible {
  outline-offset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-card,
  .adv-card {
    will-change: transform;
  }
}
