:root {
  --bg: #02040b;
  --bg-2: #06143a;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7ff;
  --muted: #b9c3db;
  --muted-2: #8792b2;
  --blue: #061b5d;
  --blue-bright: #1972ff;
  --cyan: #78ddff;
  --white: #ffffff;
  --shadow: 0 24px 84px rgba(0, 0, 0, 0.42);
  --radius: 30px;
  --radius-sm: 18px;
  --container: min(1120px, calc(100% - 44px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 114, 255, 0.25), transparent 28rem),
    radial-gradient(circle at 84% 0%, rgba(120, 221, 255, 0.15), transparent 22rem),
    linear-gradient(180deg, #02030a 0%, #061032 48%, #02040b 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 50%, rgba(0, 0, 0, 0.42) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -52px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  transition: top 0.2s ease;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section {
  position: relative;
  padding: 108px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #07143a;
  background: #ffffff;
  border-bottom: 1px solid rgba(6, 27, 93, 0.08);
  box-shadow: 0 10px 34px rgba(6, 27, 93, 0.08);
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, backdrop-filter 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(6, 27, 93, 0.12);
  box-shadow: 0 14px 44px rgba(6, 27, 93, 0.12);
}

.nav-open .site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(6, 27, 93, 0.12);
  box-shadow: 0 14px 44px rgba(6, 27, 93, 0.12);
}

.header-inner {
  width: min(1180px, calc(100% - 28px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.footer-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 38px rgba(44,111,255,0.22);
}

.site-header .brand img {
  box-shadow: 0 0 0 1px rgba(6, 27, 93, 0.12), 0 10px 26px rgba(6, 27, 93, 0.14);
}

.brand-text {
  min-width: 0;
}

.brand strong {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: #06143a;
}

.brand small {
  display: block;
  max-width: 320px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5e6a8a;
  font-size: 0.72rem;
  line-height: 1.3;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

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

.site-nav a {
  position: relative;
  padding: 10px 12px;
  color: rgba(7, 20, 58, 0.76);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

.site-nav a.is-current {
  color: var(--blue);
}

.site-nav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-phone {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 178px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(6, 27, 93, 0.18);
  border-radius: 999px;
  background: rgba(6, 27, 93, 0.04);
  box-shadow: 0 10px 26px rgba(6, 27, 93, 0.10);
  color: #06143a;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(25, 114, 255, 0.38);
  background: rgba(25, 114, 255, 0.08);
}

.phone-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #031024;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.phone-number {
  display: inline-block;
  font-size: clamp(0.72rem, 1.05vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(6, 27, 93, 0.16);
  border-radius: 999px;
  background: rgba(6, 27, 93, 0.04);
  color: #06143a;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 132px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(4.2rem, 9vw, 8.6rem);
  line-height: 0.95;
  letter-spacing: -0.09em;
  font-weight: 900;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.06rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #031024;
  box-shadow: 0 18px 50px rgba(44, 111, 255, 0.28);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}

.button.large {
  min-width: 230px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.045);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-media {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 34px;
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,4,11,0.34), transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(2,4,11,0.42));
}

.hero-media img {
  width: 100%;
  height: clamp(420px, 47vw, 620px);
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-media figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background: rgba(2,4,11,0.46);
  backdrop-filter: blur(14px);
}

.hero-media figcaption span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-media figcaption strong {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.orb-one {
  width: 520px;
  height: 520px;
  right: -220px;
  top: 16%;
  background: rgba(44,111,255,0.14);
}

.orb-two {
  width: 340px;
  height: 340px;
  left: -180px;
  bottom: 6%;
  background: rgba(121,216,255,0.1);
}

.statement {
  text-align: center;
}

.statement p:not(.section-kicker) {
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-head {
  max-width: 670px;
  margin-bottom: 36px;
}

.section-head p:not(.section-kicker) {
  color: var(--muted);
}

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

.card {
  position: relative;
  min-height: 232px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045)),
    rgba(6, 27, 93, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -74px;
  bottom: -74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,216,255,0.16), transparent 64%);
}

.card-no {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.14em;
}

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

.company-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.company-card,
.company-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  box-shadow: var(--shadow);
}

.company-card {
  padding: 34px;
  min-height: 100%;
}

.company-name {
  margin-bottom: 4px;
  font-weight: 900;
  font-size: 1.18rem;
}

.company-en {
  margin-bottom: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.company-list {
  margin: 0;
  padding: 8px 28px;
}

.company-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-list div:last-child {
  border-bottom: 0;
}

.company-list dt {
  color: var(--muted-2);
  font-size: 0.86rem;
}

.company-list dd {
  margin: 0;
  color: var(--text);
}

.contact {
  padding-bottom: 120px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(121,216,255,0.22);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, rgba(44,111,255,0.22), rgba(121,216,255,0.08)),
    rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 790px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.contact-panel p:not(.section-kicker) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.34);
}

.footer-inner {
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, auto) auto;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-brand span {
  color: var(--text);
  letter-spacing: 0.08em;
  font-weight: 800;
}

.footer-company {
  margin: 8px 0 0 54px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-style: normal;
  line-height: 1.5;
}

.footer-contact a {
  text-decoration: underline;
  text-decoration-color: rgba(121,216,255,0.6);
  text-underline-offset: 4px;
}

.copyright {
  margin: 0;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .site-nav a {
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .brand strong,
  .brand small {
    max-width: 240px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 112px;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    height: clamp(320px, 55vw, 520px);
  }
}

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

  .site-nav {
    position: fixed;
    inset: 78px 14px auto 14px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(6, 27, 93, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 48px rgba(6, 27, 93, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .nav-toggle {
    display: block;
  }

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

  .split,
  .company-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .button {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 28px 0;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
    width: min(100% - 20px, 1180px);
    gap: 8px;
  }

  .brand {
    gap: 9px;
    flex: 1 1 0;
    min-width: 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: none;
    font-size: 0.7rem;
    letter-spacing: 0.06em;  /* was 0.14em — tighten to fit narrower viewports */
  }

  .brand small {
    max-width: none;
    margin-top: 2px;
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  .header-actions {
    gap: 6px;
    flex: 0 0 auto;
  }

  .header-phone {
    max-width: 138px;
    min-height: 38px;
    padding: 6px 10px;
    gap: 6px;
  }

  .phone-label {
    min-width: 26px;
    height: 20px;
    font-size: 0.58rem;
  }

  .phone-number {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    inset: 70px 10px auto 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  h1 {
    /* Smaller on mobile and less tight letter-spacing */
    font-size: clamp(2.8rem, 13vw, 4.2rem);
    letter-spacing: -0.04em;
  }

  .lead {
    font-size: 0.98rem;
  }

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

  .hero-media {
    border-radius: 24px;
  }

  .hero-media img {
    height: clamp(250px, 62vw, 390px);
  }

  .hero-media figcaption {
    left: 14px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
  }

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

  .card {
    min-height: 200px;
  }

  .step {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 22px;
  }

  .company-card,
  .company-list,
  .contact-panel {
    border-radius: 24px;
  }

  .company-list {
    padding: 6px 20px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-company {
    margin-left: 0;
  }

  .copyright {
    white-space: normal;
  }
}

/* Narrower mobile (typical phones ~360–480px) */
@media (max-width: 480px) {
  .header-inner {
    min-height: 64px;
    gap: 6px;
  }

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

  /* Hide the English brand mark — show only the Japanese company name as primary text */
  .brand strong {
    display: none;
  }

  /* Allow the formal Japanese company name to wrap to 2 lines so it's never truncated */
  .brand small {
    margin-top: 0;
    max-width: none;
    font-size: 0.7rem;
    line-height: 1.25;
    color: #06143a;
    font-weight: 700;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  /* Keep the phone number visible — just compact it */
  .header-phone {
    width: auto;
    max-width: 130px;
    min-height: 36px;
    padding: 5px 9px;
    gap: 6px;
    justify-content: flex-start;
  }

  .phone-label {
    min-width: 24px;
    height: 18px;
    font-size: 0.56rem;
  }

  .phone-number {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .site-nav {
    inset: 64px 8px auto 8px;
  }

  .trust-row span {
    font-size: 0.72rem;
    padding: 7px 10px;
  }
}

/* Very narrow phones (~320–360px) — collapse phone to icon-only to give brand more room */
@media (max-width: 360px) {
  .brand small {
    font-size: 0.68rem;
  }

  .header-phone {
    width: 38px;
    max-width: 38px;
    padding: 0;
    justify-content: center;
  }

  .phone-number {
    display: none;
  }

  .phone-label {
    min-width: 26px;
    height: 20px;
    font-size: 0.56rem;
  }
}

/* ===========================================================
   Smart Glass × AI page (sub-page additions)
   =========================================================== */

/* Sub-page hero adjustments (smaller than main hero) */
.page-hero {
  min-height: auto;
  padding-top: 148px;
  padding-bottom: 100px;
}

.page-hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.8rem);
}

/* Services CTA card on top page */
.services-cta {
  margin-top: 28px;
  padding: clamp(28px, 4.6vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(121,216,255,0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(44,111,255,0.18), rgba(121,216,255,0.06)),
    rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.services-cta-title {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.services-cta p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 680px;
}

/* Section head used at top of page */
.solutions .section-head,
.usecases .section-head,
.benefits .section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

/* Cards with SVG icon */
.icon-cards .icon-card {
  padding-top: 30px;
}

.icon-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(25,114,255,0.22), rgba(120,221,255,0.14));
  border: 1px solid rgba(120,221,255,0.32);
  color: var(--cyan);
}

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

.icon-card .card-no {
  margin-bottom: 24px;
}

/* AI section subtle divider tint */
.ai-solutions {
  position: relative;
}

.ai-solutions::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,221,255,0.25), transparent);
}

/* Synergy panel */
.synergy-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(121,216,255,0.22);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 0% 0%, rgba(25,114,255,0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(120,221,255,0.16), transparent 55%),
    rgba(6, 27, 93, 0.32);
  box-shadow: var(--shadow);
}

.synergy-head h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

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

.synergy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.synergy-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
}

.synergy-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #031024;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.synergy-list h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.synergy-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Use case cards */
.usecase-cards .usecase-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.usecase-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.usecase-card p {
  flex: 1;
}

.tag-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.tag-list li {
  padding: 5px 11px;
  border: 1px solid rgba(120,221,255,0.32);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--cyan);
  background: rgba(120,221,255,0.06);
  letter-spacing: 0.05em;
}

/* Benefit cards */
.benefit-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-card {
  min-height: 220px;
}

.benefit-num {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive overrides for sub-page additions */
@media (max-width: 1080px) {
  .synergy-panel {
    grid-template-columns: 1fr;
  }

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

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

  .services-cta .button {
    justify-self: start;
  }

  .page-hero {
    padding-top: 118px;
    padding-bottom: 64px;
  }
}

@media (max-width: 680px) {
  .hero-visual {
    border-radius: 24px;
    padding: 14px;
  }

  .icon-badge {
    width: 38px;
    height: 38px;
    top: 18px;
    right: 18px;
  }

  .icon-badge svg {
    width: 19px;
    height: 19px;
  }

  .synergy-list li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .synergy-no {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

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

/* ===========================================================
   Contact form (contact.html)
   =========================================================== */

/* Visually hidden helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Updated CONTACT section action group (used on index/sub pages) */
.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-self: end;
}

.button.ghost.large {
  min-width: 230px;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

@media (max-width: 920px) {
  .contact-cta-actions {
    justify-self: start;
    width: 100%;
  }
  .contact-cta-actions .button {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Contact page hero */
.contact-hero {
  min-height: auto;
  padding-top: 148px;
  padding-bottom: 60px;
  text-align: left;
}

.contact-hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  margin-bottom: 22px;
}

.contact-hero .lead {
  margin-bottom: 24px;
}

/* Form section */
.form-section {
  padding-top: 40px;
  padding-bottom: 120px;
}

/* Outer shell */
.form-shell {
  position: relative;
  padding: clamp(28px, 4.6vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.form-step[hidden] {
  display: none;
}

.form-head {
  margin-bottom: 32px;
  max-width: 760px;
}

.form-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.form-intro {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.96rem;
}

.text-required-mark,
.required-mark {
  color: #ff7a90;
  font-weight: 800;
  margin-left: 2px;
}

/* Form layout */
.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-field > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 4, 11, 0.42);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(185, 195, 219, 0.45);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(120, 221, 255, 0.65);
  background: rgba(2, 4, 11, 0.62);
  box-shadow: 0 0 0 3px rgba(120, 221, 255, 0.18);
}

.form-field input.has-error,
.form-field select.has-error,
.form-field textarea.has-error {
  border-color: rgba(255, 122, 144, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 122, 144, 0.12);
}

.form-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.form-field select option {
  background: #0a1535;
  color: var(--text);
}

.field-help {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.field-error {
  margin: 0;
  color: #ff97a8;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Consent checkbox */
.consent-field {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid rgba(120,221,255,0.6);
  border-radius: 6px;
  background: rgba(2,4,11,0.46);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.consent-label input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  border-color: var(--cyan);
}

.consent-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #031024;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.consent-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120,221,255,0.32);
}

/* Honeypot field - hidden from users and screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Action buttons */
.form-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions-split {
  justify-content: space-between;
}

.form-actions .button.large {
  min-width: 240px;
}

#btn-send.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

/* Form summary error */
.form-summary-error {
  padding: 14px 18px;
  border: 1px solid rgba(255, 122, 144, 0.5);
  border-radius: 14px;
  background: rgba(255, 122, 144, 0.08);
  color: #ffd4dc;
  font-size: 0.92rem;
}

.form-summary-error strong {
  display: block;
  margin-bottom: 4px;
  color: #ffaab8;
}

/* Notice box (for noscript, etc.) */
.form-notice {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.form-notice-warning {
  border: 1px solid rgba(255, 200, 122, 0.5);
  background: rgba(255, 200, 122, 0.08);
  color: #ffe1b8;
}

.form-notice-warning strong {
  display: block;
  margin-bottom: 4px;
  color: #ffd28a;
}

/* Confirm step grid */
.confirm-grid {
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(2, 4, 11, 0.32);
  overflow: hidden;
}

.confirm-grid > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.confirm-grid > div:last-child {
  border-bottom: 0;
}

.confirm-grid dt {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.confirm-grid dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.confirm-grid .confirm-message dd {
  white-space: pre-wrap;
  line-height: 1.85;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 20px 0 8px;
  max-width: 720px;
  margin-inline: auto;
}

.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 32px rgba(44, 111, 255, 0.32));
}

.form-success h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 18px;
}

.form-success p {
  color: var(--muted);
}

.success-note {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.form-success .form-actions-split {
  justify-content: center;
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 920px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .confirm-grid > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .form-shell {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .form-actions .button.large,
  .form-actions .button.primary {
    width: 100%;
    min-width: 0;
  }
  .form-actions-split {
    flex-direction: column-reverse;
  }
  .contact-hero {
    padding-top: 118px;
    padding-bottom: 36px;
  }
}

/* ===========================================================
   Back-to-top floating button
   =========================================================== */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(120, 221, 255, 0.45);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(25, 114, 255, 0.92), rgba(120, 221, 255, 0.85));
  color: #031024;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(6, 27, 93, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top[hidden] {
  display: inline-flex;  /* keep in DOM but invisible for transitions */
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(6, 27, 93, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.back-to-top:focus-visible {
  box-shadow:
    0 18px 44px rgba(6, 27, 93, 0.42),
    0 0 0 3px rgba(120, 221, 255, 0.42);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.back-to-top-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 2px;
}

@media (max-width: 680px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
  .back-to-top-label {
    font-size: 0.52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01s linear, visibility 0.01s linear;
    transform: none !important;
  }
}
