/* ========================================
   NEXORA AI — Landing Page Styles
   ======================================== */

:root {
  --navy: #08152D;
  --navy-deep: #060E20;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, 0.18);
  --base: #F7F9FC;
  --text: #1E293B;
  --text-muted: #64748B;
  --line: rgba(30, 41, 59, 0.1);
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 4px;
  --header-h: 72px;
  --container: 1120px;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --shadow-soft: 0 20px 60px rgba(8, 21, 45, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.header-inner.container {
  width: min(100% - 48px, 1240px);
}

.container.narrow {
  width: min(100% - 48px, 760px);
}

.sp-only {
  display: none;
}

/* ---------- Typography ---------- */

.en-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 16px;
}

.en-label.light {
  color: var(--cyan);
}

.section-header {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--navy);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.section-lead {
  margin-top: 18px;
  color: var(--text-muted);
  max-width: 42em;
  font-size: 15px;
}

.section-header .section-lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--blue);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.text-link:hover {
  color: #1D4ED8;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(6, 14, 32, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--cyan), transparent 45%),
    linear-gradient(135deg, var(--blue), #0EA5E9);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--white);
}

.logo-text em {
  font-style: normal;
  color: var(--cyan);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-desktop a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--white);
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 28px;
  background: rgba(6, 14, 32, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile:not([hidden]) {
  display: flex;
}

.nav-mobile a {
  padding: 14px 4px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.nav-mobile .btn {
  margin-top: 16px;
  border-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 99, 235, 0.22), transparent 55%),
              linear-gradient(160deg, #0A1834 0%, var(--navy-deep) 55%, #040A16 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(37, 99, 235, 0.45);
  top: -80px;
  right: 8%;
  animation: floatGlow 10s ease-in-out infinite;
}

.hero-glow-2 {
  width: 360px;
  height: 360px;
  background: rgba(34, 211, 238, 0.28);
  bottom: 5%;
  right: 28%;
  animation: floatGlow 12s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, black, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
  max-width: 100%;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.hero-line.accent {
  background: linear-gradient(90deg, #FFFFFF 10%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
  max-width: 28em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.hero-trust li {
  position: relative;
  padding: 0 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.hero-trust li:first-child {
  padding-left: 0;
}

.hero-trust li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  padding: 28px 24px 36px;
}

.hero-orb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 12;
  animation: floatSoft 8s ease-in-out infinite;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
  position: absolute;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(10, 22, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  animation: floatPanel 7s ease-in-out infinite;
}

.glass-panel-1 {
  top: 8%;
  left: -8%;
  min-width: 150px;
}

.glass-panel-2 {
  right: -6%;
  top: 42%;
  min-width: 140px;
  animation-delay: -2s;
}

.glass-panel-3 {
  left: 18%;
  bottom: -4%;
  min-width: 120px;
  animation-delay: -4s;
}

.panel-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.panel-value {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-top: 10px;
}

.mini-bars i {
  width: 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 2px;
  opacity: 0.85;
}

.mini-bars i:nth-child(1) { height: 40%; }
.mini-bars i:nth-child(2) { height: 70%; }
.mini-bars i:nth-child(3) { height: 55%; }
.mini-bars i:nth-child(4) { height: 90%; }

.mini-nodes {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mini-nodes span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.mini-nodes span:nth-child(2) {
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue-bright);
}

.pulse-ring {
  width: 42px;
  height: 42px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08), inset 0 0 16px rgba(34, 211, 238, 0.35);
  animation: pulse 3s ease-out infinite;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-hint i {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---------- Sections common ---------- */

.section {
  padding: 112px 0;
}

/* ---------- Challenges ---------- */

.challenges {
  background: var(--base);
}

.challenge-layout {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  width: min(100%, 920px);
  margin-inline: auto;
}

.challenge-grid li {
  background: var(--white);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  transition: background 0.25s;
}

.challenge-grid li:hover {
  background: #F0F5FF;
}

.challenge-grid li:nth-child(odd) {
  border-right: 0;
}

.c-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.c-icon svg {
  width: 22px;
  height: 22px;
}

.challenge-grid p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
}

.challenge-closing {
  margin-top: 56px;
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.challenge-closing::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ---------- Solution ---------- */

.solution {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #0B1730 100%);
  color: var(--white);
  padding: 0;
}

.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  min-height: 640px;
  padding: 112px 0;
}

.solution-copy h2,
.solution-heading {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(26px, 2.8vw, 38px);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .solution-heading {
    white-space: normal;
    font-size: clamp(28px, 5vw, 40px);
  }
}

.solution-copy p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  max-width: 34em;
}

.solution-points {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.solution-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.solution-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.solution-visual {
  position: relative;
}

.solution-visual img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

/* ---------- Capabilities ---------- */

.capabilities {
  background: var(--white);
}

.cap-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(8, 21, 45, 0.08);
}

.cap-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--base);
}

.cap-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cap-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: rgba(37, 99, 235, 0.28);
  letter-spacing: -0.02em;
}

.cap-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 10px;
  letter-spacing: 0.02em;
}

.cap-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Before & After ---------- */

.before-after {
  background: linear-gradient(180deg, #EEF3FB 0%, var(--base) 28%, var(--base) 100%);
}

.ba-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.ba-header .section-lead {
  margin-inline: auto;
}

.ba-hero {
  position: relative;
  margin-top: 48px;
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: 4px;
}

.ba-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.ba-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(180deg, transparent, rgba(6, 14, 32, 0.88));
  color: var(--white);
}

.ba-hero-caption span {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.ba-hero-caption p {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ba-cases {
  display: grid;
  gap: 18px;
}

.ba-case {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8, 21, 45, 0.04);
}

.ba-case-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #FBFCFE;
}

.ba-case-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  line-height: 1;
}

.ba-case-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.ba-compare {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
}

.ba-before,
.ba-after {
  padding: 24px 28px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ba-before {
  background: #F8FAFC;
}

.ba-after {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(34, 211, 238, 0.1));
}

.ba-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid currentColor;
}

.ba-before .ba-status {
  color: #64748B;
}

.ba-after .ba-status {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
}

.ba-before p,
.ba-after p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy);
  font-weight: 500;
}

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}

.ba-arrow span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0891B2);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  position: relative;
}

.ba-arrow span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-60%, -50%) rotate(45deg);
}

/* ---------- Why ---------- */

.why {
  background: var(--white);
}

.why-list {
  margin-top: 56px;
  display: grid;
  gap: 48px;
}

.why-item {
  display: grid;
  grid-template-columns: 120px 1fr 360px;
  gap: 32px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.why-item.reverse {
  grid-template-columns: 120px 360px 1fr;
}

.why-item.reverse .why-content {
  order: 3;
}

.why-item.reverse .why-media {
  order: 2;
}

.why-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--blue), rgba(37, 99, 235, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-content h3 {
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--navy);
}

.why-content p {
  color: var(--text-muted);
  max-width: 34em;
}

.why-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.9) contrast(1.05);
}

.why-media img.img-portrait {
  object-position: center 20%;
}

/* ---------- Services ---------- */

.services {
  background: linear-gradient(180deg, #F7F9FC 0%, #EEF3FB 100%);
}

.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(8, 21, 45, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--white);
}

.pricing-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 32px 26px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
}

.price-card.free {
  background: var(--white);
  border-color: rgba(37, 99, 235, 0.18);
}

.price-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  min-height: 18px;
}

.price-tag-spacer {
  visibility: hidden;
}

.price-card h3 {
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--navy);
  min-height: 1.4em;
}

.price {
  margin-bottom: 4px;
  min-height: 44px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.price strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.price span {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 18px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
  align-content: start;
}

.price-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- Flow ---------- */

.flow {
  background: var(--base);
}

.flow-steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.flow-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), transparent);
}

.flow-steps li {
  padding: 0 16px;
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.flow-steps h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--navy);
}

.flow-steps p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--white);
}

.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.faq-q:hover,
.faq-q:focus-visible {
  color: var(--blue);
}

.faq-q i {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-q i::before,
.faq-q i::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.faq-q i::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-q i::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-q[aria-expanded="true"] i::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-a {
  padding: 0 4px 22px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 48em;
}

/* ---------- Company ---------- */

.company {
  background: var(--base);
}

.company-table {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--line);
}

.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}

.company-table > div:last-child {
  border-bottom: 0;
}

.company-table dt,
.company-table dd {
  margin: 0;
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  text-align: left;
}

.company-table dt {
  background: #F1F5F9;
  font-weight: 600;
  color: var(--navy);
}

.company-table dd {
  color: var(--text);
  background: var(--white);
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(160deg, #0A1834 0%, var(--navy-deep) 60%, #040A16 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.final-cta .hero-glow-1 {
  left: 10%;
  right: auto;
}

.final-cta .hero-glow-2 {
  right: 12%;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 24px;
}

.final-lead {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-size: 16px;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #040A16;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 120px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 18em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-nav a {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.demo-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 42em;
  line-height: 1.7;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-en);
}

/* ---------- Mobile CTA / Toast ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 14, 32, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-cta-bar .btn {
  width: 100%;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  font-size: 14px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.hero .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatPanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.05); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35), inset 0 0 16px rgba(34, 211, 238, 0.35); }
  70% { box-shadow: 0 0 0 18px rgba(34, 211, 238, 0), inset 0 0 16px rgba(34, 211, 238, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), inset 0 0 16px rgba(34, 211, 238, 0.35); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Responsive: Tablet ---------- */

@media (max-width: 1023px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    min-height: auto;
  }

  .glass-panel-1 { left: 0; }
  .glass-panel-2 { right: 0; }

  .solution-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-item,
  .why-item.reverse {
    grid-template-columns: 80px 1fr;
    gap: 20px;
  }

  .why-media {
    grid-column: 1 / -1;
  }

  .why-item.reverse .why-content,
  .why-item.reverse .why-media {
    order: initial;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flow-steps::before {
    display: none;
  }

  .flow-steps li {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px 18px;
    padding: 0;
  }

  .step-num {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mobile-cta-bar {
    display: block;
  }

  .site-footer {
    padding-bottom: 100px;
  }

  .demo-toast {
    bottom: 88px;
  }
}

/* ---------- Responsive: Mobile ---------- */

@media (max-width: 767px) {
  .container,
  .container.narrow {
    width: min(100% - 32px, var(--container));
  }

  .sp-only {
    display: inline;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: calc(var(--header-h) + 28px) 0 72px;
    min-height: auto;
    overflow-x: clip;
  }

  .hero-inner {
    width: min(100% - 32px, 1240px);
  }

  .header-inner.container {
    width: min(100% - 32px, 1240px);
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: clamp(28px, 7.8vw, 36px);
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 8px 0;
  }

  .hero-trust li {
    padding: 0 12px;
    font-size: 12px;
  }

  .glass-panel {
    display: none;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .ba-hero img {
    height: 220px;
  }

  .ba-hero-caption {
    padding: 20px 18px;
  }

  .ba-hero-caption p {
    font-size: 15px;
  }

  .ba-case-head {
    padding: 16px 18px;
  }

  .ba-compare {
    grid-template-columns: 1fr;
  }

  .ba-before,
  .ba-after {
    padding: 20px 18px;
    min-height: 0;
  }

  .ba-arrow {
    height: 48px;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .ba-arrow span::after {
    transform: translate(-50%, -70%) rotate(135deg);
  }

  .why-item,
  .why-item.reverse {
    grid-template-columns: 1fr;
  }

  .why-num {
    font-size: 56px;
  }

  .why-media img {
    height: 200px;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-table > div {
    grid-template-columns: 7.5em 1fr;
  }

  .company-table dt,
  .company-table dd {
    padding: 14px 12px;
    font-size: 13px;
  }

  .final-cta {
    padding: 100px 0;
  }

  .final-cta .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 15px;
  }

  .btn-lg {
    min-height: 52px;
    padding: 0 18px;
    font-size: 14px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
