/* AMP Corporate Site — Field-First Professional */
:root {
  --surface: #f9f9ff;
  --surface-muted: #f8f9fc;
  --surface-bright: #ffffff;
  --surface-container: #ebedf9;
  --surface-container-low: #f1f3fe;
  --surface-container-high: #e6e8f3;
  --on-surface: #181c23;
  --on-surface-variant: #414754;
  --outline: #717786;
  --outline-variant: #c1c6d7;
  --primary: #007bff;
  --primary-deep: #0059bb;
  --on-primary: #ffffff;
  --secondary: #006a65;
  --field-teal: #36b9cc;
  --field-teal-soft: #20b2aa;
  --navy: #121a21;
  --success: #1cc88a;
  --danger: #e74a3b;
  --warning: #f6c23e;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 0.25rem;
  --radius-xl: 0.75rem;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-data: "Inter", "Segoe UI", sans-serif;
  --header-h: 72px;
  --max: 1180px;
  --page-gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface-bright);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2 * var(--page-gutter, 32px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--field-teal), var(--primary));
  z-index: 1000;
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--outline-variant);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary-deep);
  background: var(--surface-container-low);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--surface-container-low);
  color: var(--primary-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--on-surface);
}

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(54, 185, 204, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(0, 123, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fc 55%, #eef3fa 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(113, 119, 134, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 119, 134, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite;
}

.hero-orb--1 {
  width: 280px;
  height: 280px;
  background: var(--field-teal);
  top: 18%;
  right: 12%;
}

.hero-orb--2 {
  width: 220px;
  height: 220px;
  background: var(--primary);
  bottom: 18%;
  left: 8%;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  opacity: 0;
  animation: riseIn 0.8s ease forwards 0.1s;
}

.hero-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(54, 185, 204, 0.25));
}

.hero-brand-name {
  font-size: clamp(40px, 12vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-surface);
  opacity: 0;
  animation: riseIn 0.8s ease forwards 0.25s;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 540px;
  color: var(--on-surface-variant);
  font-size: 16px;
  opacity: 0;
  animation: riseIn 0.8s ease forwards 0.4s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: riseIn 0.8s ease forwards 0.55s;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--outline);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 0.8s ease forwards 1s, bounceY 2s ease-in-out infinite 1.5s;
}

.hero-scroll i {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--field-teal), transparent);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Sections */
section {
  padding: 88px 0;
  position: relative;
}

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

.section-navy {
  background: var(--navy);
  color: #eef0fb;
}

.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field-teal-soft);
}

.section-navy .eyebrow {
  color: var(--field-teal);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--on-surface-variant);
}

.section-navy .section-head p {
  color: #bfc7d1;
}

/* Reveal — JS未動作時も読めるよう、既定は表示 */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-anim .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* About / Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.philosophy-main {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.philosophy-main h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  background: var(--surface-container-low);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--outline);
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

.philosophy-side {
  display: grid;
  gap: 12px;
}

.pill-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.pill-feature:hover {
  transform: translateX(6px);
  border-color: var(--field-teal);
  box-shadow: var(--shadow-sm);
}

.pill-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(54, 185, 204, 0.2), rgba(0, 123, 255, 0.15));
  color: var(--primary-deep);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 13px;
}

.pill-feature h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.pill-feature p {
  margin: 0;
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

/* Apps overview strip */
.apps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.app-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.app-chip:hover {
  background: rgba(54, 185, 204, 0.12);
  border-color: var(--field-teal);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.app-chip img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.app-chip strong {
  display: block;
  font-size: 18px;
}

.app-chip span {
  font-size: 13px;
  color: #bfc7d1;
}

/* Product detail blocks */
.product {
  padding: 72px 0;
  border-top: 1px solid var(--outline-variant);
}

.product:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.product--reverse .product-layout {
  grid-template-columns: 1.05fr 1fr;
}

.product--reverse .product-copy {
  order: 2;
}

.product--reverse .product-visual {
  order: 1;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  background: var(--surface-container);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.product-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.product-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
}

.product-copy .lead {
  margin: 0 0 20px;
  color: var(--on-surface-variant);
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  background: var(--surface-muted);
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.feature-list li:hover {
  border-color: var(--field-teal);
  background: #fff;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--field-teal), var(--primary));
  box-shadow: 0 0 0 4px rgba(54, 185, 204, 0.15);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  padding: 6px 10px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--outline-variant);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-surface-variant);
}

.screen-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.product--reverse .screen-frame {
  transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}

.screen-frame:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.screen-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--surface-container-low);
}

.screen-frame--ima {
  background: #0b111b;
}

.screen-frame--ima img {
  background: #0b111b;
}

.screen-frame--time {
  background: #f3f4f6;
}

.screen-frame--time img {
  background: #f3f4f6;
}

.screen-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #e9ecef;
  font-size: 12px;
  color: var(--on-surface-variant);
  font-family: var(--font-jp);
  line-height: 1.5;
  background: #fff;
}

.screen-frame--ima .screen-caption {
  background: #121820;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #bfc7d1;
}

.screen-caption span {
  min-width: 0;
}

.screen-caption em {
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--font-data);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
}

.screen-frame--ima .screen-caption em {
  color: var(--field-teal);
}

/* Dense feature matrix */
.matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.matrix-card {
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.matrix-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.matrix-card p {
  margin: 0;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.matrix-card .meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--field-teal-soft);
  text-transform: uppercase;
}

/* Custom / flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}

.flow-step {
  position: relative;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.flow-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--field-teal);
}

.flow-step h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.flow-step p {
  margin: 0;
  font-size: 13px;
  color: #bfc7d1;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.compare-table th {
  background: var(--surface-container-low);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

/* CTA band */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 90% 20%, rgba(54, 185, 204, 0.25), transparent 40%),
    linear-gradient(135deg, #0f1720, #1a2834);
  border-radius: var(--radius);
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.cta-band p {
  margin: 0;
  color: #bfc7d1;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Contact page */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(54, 185, 204, 0.15), transparent 50%),
    linear-gradient(180deg, #fff, var(--surface-muted));
  border-bottom: 1px solid var(--outline-variant);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.page-hero p {
  margin: 0;
  max-width: 560px;
  color: var(--on-surface-variant);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 56px 0 88px;
}

.contact-info {
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-block {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
}

.info-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.info-block p,
.info-block ul {
  margin: 0;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.info-block ul {
  padding-left: 18px;
}

.contact-form {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
}

.field .req {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--on-surface);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--field-teal-soft);
  box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.35);
}

.form-note {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--outline);
}

.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(231, 74, 59, 0.1);
  color: #93000a;
  border: 1px solid rgba(231, 74, 59, 0.35);
  font-size: 14px;
}

.form-error.is-shown {
  display: block;
  animation: riseIn 0.4s ease;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(28, 200, 138, 0.12);
  color: #0f7a52;
  border: 1px solid rgba(28, 200, 138, 0.35);
  font-size: 14px;
}

.form-success.is-shown {
  display: block;
  animation: riseIn 0.4s ease;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.site-footer {
  padding: 48px 0 28px;
  background: var(--navy);
  color: #bfc7d1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand strong {
  font-size: 18px;
  letter-spacing: 0.1em;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-data);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #bfc7d1;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--field-teal);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: var(--font-data);
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--outline-variant);
  background: #fff;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}

.marquee-track span {
  white-space: nowrap;
}

.marquee-track strong {
  color: var(--primary-deep);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Dense specs accordion-ish panels */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.spec-item {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
}

.spec-item dt {
  margin: 0 0 4px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--outline);
}

.spec-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--on-surface);
}

/* ——— Responsive ——— */

/* Large tablet / small desktop: collapse dense nav early */
@media (max-width: 1100px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 880;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 15px;
    white-space: normal;
  }

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 960px) {
  :root {
    --page-gutter: 20px;
    --header-h: 64px;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 36px) 0 64px;
    align-items: start;
  }

  .hero-orb--1 {
    width: 180px;
    height: 180px;
    top: 12%;
    right: 4%;
    opacity: 0.3;
  }

  .hero-orb--2 {
    width: 140px;
    height: 140px;
    bottom: 8%;
    left: 2%;
    opacity: 0.28;
  }

  .hero-brand {
    gap: 12px;
  }

  .hero-brand img {
    width: 64px;
    height: 64px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

  .hero-scroll {
    display: none;
  }

  .philosophy-grid,
  .product-layout,
  .product--reverse .product-layout,
  .contact-grid,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .apps-strip {
    grid-template-columns: 1fr;
  }

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

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

  .product {
    padding: 48px 0;
  }

  .product--reverse .product-copy,
  .product--reverse .product-visual {
    order: initial;
  }

  .product-layout {
    gap: 28px;
  }

  .screen-frame,
  .product--reverse .screen-frame {
    transform: none;
  }

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

  .philosophy-main {
    padding: 24px;
  }

  .stat-value {
    font-size: 22px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px 22px;
  }

  .cta-band h2 {
    font-size: 22px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .contact-grid {
    padding: 40px 0 64px;
    gap: 24px;
  }

  .contact-form {
    padding: 22px;
  }

  .page-hero {
    padding: calc(var(--header-h) + 40px) 0 36px;
  }

  .table-wrap {
    margin-inline: calc(-1 * var(--page-gutter));
    width: calc(100% + 2 * var(--page-gutter));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table {
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px;
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.04);
  }

  .compare-table th:first-child {
    background: var(--surface-container-low);
  }

  .pill-feature:hover {
    transform: none;
  }

  .screen-caption {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 16px;
    --header-h: 60px;
  }

  body {
    font-size: 15px;
  }

  section {
    padding: 48px 0;
  }

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

  .brand-text {
    font-size: 18px;
  }

  .hero {
    padding: calc(var(--header-h) + 28px) 0 48px;
  }

  .hero-brand {
    flex-wrap: wrap;
  }

  .hero-brand img {
    width: 56px;
    height: 56px;
  }

  .hero-brand-name {
    letter-spacing: 0.06em;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

  .section-head h2 {
    font-size: 22px;
  }

  .philosophy-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .matrix,
  .flow {
    grid-template-columns: 1fr;
  }

  .product-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
  }

  .feature-list li {
    padding: 12px 12px 12px 40px;
    font-size: 13px;
  }

  .tag-row {
    gap: 6px;
  }

  .tag {
    font-size: 10px;
    padding: 5px 8px;
  }

  .app-chip {
    padding: 14px;
  }

  .app-chip img {
    width: 44px;
    height: 44px;
  }

  .marquee-track {
    gap: 28px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .cta-actions {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .compare-table {
    min-width: 640px;
  }
}

@media (max-width: 400px) {
  .hero-brand-name {
    font-size: 36px;
  }

  .stat {
    padding: 12px;
  }

  .philosophy-main h3 {
    font-size: 20px;
  }
}

/* Touch devices: avoid sticky hover transforms */
@media (hover: none) {
  .btn:hover,
  .matrix-card:hover,
  .app-chip:hover,
  .pill-feature:hover {
    transform: none;
  }

  .screen-frame:hover,
  .product--reverse .screen-frame:hover {
    transform: none;
  }
}

  @media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js-anim .reveal:not(.is-visible),
  .reveal,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
