:root {
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-muted: #f1f3f6;
  --ink: #0b0d12;
  --ink-secondary: #4a5160;
  --ink-tertiary: #6b7280;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --ok: #059669;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1160px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-subtle: 0 1px 2px rgba(11, 13, 18, 0.04);
  --shadow-frame: 0 24px 64px -16px rgba(11, 13, 18, 0.1), 0 4px 16px -4px rgba(11, 13, 18, 0.04);
  --diagram-base: #0b0d12;
  --diagram-base-text: #ffffff;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #111114;
  --bg-muted: #18181b;
  --ink: #fafafa;
  --ink-secondary: #a1a1aa;
  --ink-tertiary: #71717a;
  --border: #232329;
  --border-strong: #32323b;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --ok: #10b981;
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-frame: 0 28px 72px -16px rgba(0, 0, 0, 0.72), 0 4px 16px -4px rgba(0, 0, 0, 0.5);
  --diagram-base: #1c1c21;
  --diagram-base-text: #fafafa;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

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

/* Apple Liquid Glass surface: high optical clarity, background brightening & saturation, lit specular rim */
.liquid-glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.54) 100%
  );
  backdrop-filter: blur(18px) saturate(195%) brightness(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(195%) brightness(1.06);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42),
    0 8px 28px -8px rgba(11, 13, 18, 0.08);
}

:root[data-theme="dark"] .liquid-glass {
  background: linear-gradient(
    180deg,
    rgba(24, 24, 28, 0.68) 0%,
    rgba(14, 14, 17, 0.52) 100%
  );
  backdrop-filter: blur(18px) saturate(195%) brightness(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(195%) brightness(1.14);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px -8px rgba(0, 0, 0, 0.55);
}

/* Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .liquid-glass-bar {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle button.is-active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .theme-toggle button.is-active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(37, 99, 235, 0.22);
}

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

.btn-glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(248, 250, 252, 0.68) 100%
  );
  backdrop-filter: blur(14px) saturate(180%) brightness(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 2px 8px -2px rgba(11, 13, 18, 0.06);
}

.btn-glass:hover,
.btn-glass:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border-strong);
}

:root[data-theme="dark"] .btn-glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: blur(14px) saturate(185%) brightness(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(185%) brightness(1.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 10px -2px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .btn-glass:hover,
:root[data-theme="dark"] .btn-glass:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--ink);
  background: var(--bg-subtle);
}

/* Hero Section */
.hero {
  padding: 80px 0 64px;
}

.hero-header {
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-visual-wrap {
  margin-top: 48px;
}

.product-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 10px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}

.product-frame img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.concept-caption {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* Moving Strip (Section 2) */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: strip-scroll 42s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.marquee-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-tertiary);
}

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

/* Shared Section Rhythm */
.section {
  padding: 96px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-heading {
  margin: 0 0 40px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-header-row .section-heading {
  margin-bottom: 0;
}

/* Bento Grid (Section 3) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--border-strong);
}

.bento-span-7 {
  grid-column: span 7;
  background: var(--bg-subtle);
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bento-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.bento-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* Liquid Glass Segmented Control */
.glass-segment {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: rgba(241, 243, 246, 0.72);
  backdrop-filter: blur(12px) saturate(170%);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

:root[data-theme="dark"] .glass-segment {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.glass-segment button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.glass-segment button.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 1px 3px rgba(11, 13, 18, 0.08);
}

:root[data-theme="dark"] .glass-segment button.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

.telemetry-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.telemetry-label {
  color: var(--ink-secondary);
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 7px;
  vertical-align: middle;
}

.latency-chart {
  width: 100%;
  height: 68px;
  display: block;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.timeline-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.timeline-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-tertiary);
}

.timeline-val {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.arch-diagram {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  padding: 14px;
}

.cap-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cap-figure {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.cap-label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* Pricing Table (Section 4) */
.pricing-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.pricing-table th {
  padding: 16px 16px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-tertiary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.pricing-table td {
  padding: 20px 16px;
  font-size: 14px;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

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

.pricing-table tbody tr {
  transition: background-color 0.15s ease;
}

.pricing-table tbody tr:hover {
  background-color: var(--bg-subtle);
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.plan-type {
  font-size: 13px;
  color: var(--ink-tertiary);
}

.price-cell {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-tertiary);
}

.table-footnote {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* Plain List Commitments & Policies (Section 5) */
.policy-plain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.policy-plain-list li {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.policy-plain-list h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.policy-plain-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Contact & Verification Section (Section 6) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.contact-row span:first-child {
  color: var(--ink-tertiary);
}

.contact-row a,
.contact-row span:last-child {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

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

.inquiry-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--bg-subtle);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-feedback {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ok);
  min-height: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-entity {
  max-width: 440px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.footer-entity strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links button {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-links button:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* Native Top-Layer Liquid Glass Dialog */
dialog.modal-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: 88dvh;
  overflow: visible;
  color: inherit;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, display 0.18s allow-discrete, overlay 0.18s allow-discrete;
}

dialog.modal-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  dialog.modal-dialog[open] {
    opacity: 0;
    transform: translateY(6px);
  }
}

dialog.modal-dialog::backdrop {
  background: rgba(9, 9, 11, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.84) 100%
  );
  backdrop-filter: blur(24px) saturate(195%) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(195%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 32px 72px -12px rgba(11, 13, 18, 0.22);
}

:root[data-theme="dark"] .modal-panel {
  background: linear-gradient(
    180deg,
    rgba(24, 24, 29, 0.9) 0%,
    rgba(15, 15, 18, 0.84) 100%
  );
  backdrop-filter: blur(24px) saturate(195%) brightness(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(195%) brightness(1.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 32px 72px -12px rgba(0, 0, 0, 0.78);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.modal-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.modal-body h4 {
  margin: 18px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.modal-body p {
  margin: 0 0 10px;
}

.order-summary-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  padding: 16px;
  margin-bottom: 18px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.order-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 600;
  color: var(--ink);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.nav-mobile-only {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .bento-span-7,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .nav-links,
  .nav-actions .btn-ghost,
  .nav-deploy-desktop {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 18px;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.16);
  }

  .nav-links.is-open a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-mobile-only {
    display: block;
    padding-top: 12px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.2vw, 42px);
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .hero-visual-wrap {
    margin-top: 32px;
  }

  .product-frame {
    padding: 6px;
    border-radius: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    font-size: clamp(24px, 6.5vw, 32px);
    margin-bottom: 24px;
  }

  .section-header-row {
    gap: 16px;
    margin-bottom: 24px;
  }

  .bento-cell {
    padding: 20px;
    gap: 16px;
  }

  /* Transform pricing table into stacked hairline spec rows on mobile */
  .pricing-table-wrap {
    overflow-x: visible;
    border-top: 1px solid var(--border-strong);
    border-bottom: 0;
  }

  .pricing-table {
    min-width: 0;
    display: block;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody {
    display: block;
  }

  .pricing-table tbody tr {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-strong);
  }

  .pricing-table tbody tr:hover {
    background-color: transparent;
  }

  .pricing-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .pricing-table td[data-label]::before {
    content: attr(data-label);
    font-size: 13px;
    color: var(--ink-tertiary);
    font-weight: 400;
  }

  .pricing-table td.cell-plan {
    display: block;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
  }

  .pricing-table td.cell-action {
    display: block;
    padding: 14px 0 0;
    border-bottom: 0;
  }

  .pricing-table td.cell-action .btn {
    width: 100%;
    height: 42px;
    font-size: 14px;
  }

  .policy-plain-list {
    grid-template-columns: 1fr;
  }

  .policy-plain-list li {
    padding: 20px 0;
  }

  .inquiry-form {
    padding: 20px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .modal-panel {
    padding: 20px;
    max-height: 90dvh;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    height: 44px;
  }

  #billing-toggle,
  #region-toggle {
    width: 100%;
  }

  #billing-toggle button,
  #region-toggle button {
    flex: 1;
    padding: 7px 8px;
    font-size: 12px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-row a,
  .contact-row span:last-child {
    text-align: left;
    word-break: break-word;
  }

  .order-summary-row {
    flex-direction: column;
    gap: 2px;
  }

  .cap-figure {
    font-size: 19px;
  }

  .footer-top {
    gap: 24px;
  }

  .footer-links {
    gap: 14px 20px;
  }
}

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

  .marquee-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
