/* =============================================
   SUMMIT Landing Page — Bento Layout
   Design Essentials: dark code blocks, JetBrains Mono for code,
   Space Grotesk body, blue/green accents, copy buttons
   ============================================= */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-accent: #0ea5e9;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-code-bg: #1a1a2e;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  --font-sans: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --header-height: 72px;
  --section-padding-y: 88px;
  --transition: 0.25s ease;
  --bento-gap: 16px;
}

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

html {
  scroll-behavior: smooth;
}

main > .section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}
.header-right {
  order: 1;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.site-logo__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo__mark--sm {
  width: 32px;
  height: 32px;
}

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

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  background: var(--color-bg-alt);
}

.lang-btn--active {
  background: var(--color-primary);
  color: #fff;
}

.lang-btn--active:hover {
  background: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Sections ---- */

.section {
  padding: var(--section-padding-y) 0;
}

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

.section--hero {
  position: relative;
  padding: calc(var(--header-height) + 48px) 0 var(--section-padding-y);
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  z-index: 0;
}

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

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

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

.hero__content {
  max-width: 540px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual .browser-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 50px rgba(15, 23, 42, 0.14);
  border: 1px solid var(--color-border);
}

.hero__badge {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.075em;
  color: var(--color-bg-dark);
  margin-bottom: 20px;
}

.hero__title-highlight {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.hero__content .btn {
  margin-top: 0;
}

/* ---- Hero trust bar ---- */

.hero-trust-bar {
  background: var(--color-code-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.hero-trust-bar__lead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-trust-bar__stat {
  color: var(--color-success);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-trust-bar__label {
  color: #f1f5f9;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-trust-bar__tagline {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
}

.hero-trust-bar__items {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.hero-trust-bar__item {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-trust-bar__item:hover {
  color: #94a3b8;
}

/* ---- Notification spotlight (dark split) ---- */

.section--notification {
  background: var(--color-code-bg);
  padding: var(--section-padding-y) 0;
}

.notification-spotlight__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.notification-spotlight__content {
  max-width: 460px;
}

.notification-spotlight__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.notification-spotlight__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 20px;
}

.notification-spotlight__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #94a3b8;
  margin-bottom: 32px;
}

.btn--spotlight {
  padding: 14px 28px;
}

.notification-spotlight__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.notification-spotlight__frame {
  width: 100%;
  max-width: 560px;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) rotateZ(-1deg);
  transition: transform var(--transition);
}

.notification-spotlight__frame:hover {
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) rotateZ(-0.5deg);
}

.notification-spotlight__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    0 32px 80px rgba(0, 0, 0, 0.45);
}

.is-hidden,
[hidden] {
  display: none !important;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 64px;
  align-items: end;
  text-align: left;
  margin-bottom: 48px;
}

.section-header__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-header__title {
  font-size: clamp(35px, 5vw, 55px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.07em;
  color: var(--color-bg-dark);
  margin: 0;
}

.section-header__subtitle {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
  align-self: end;
  padding-bottom: 6px;
}

.lead-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
}

.lead-text--left {
  text-align: left;
}

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

.logo-marquee {
  overflow: hidden;
  margin-bottom: 32px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-marquee__item {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  white-space: nowrap;
}

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

/* ---- Bento Grid ---- */

.bento-grid {
  display: grid;
  gap: var(--bento-gap);
}

.bento-grid--hero {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
}

.bento-grid--problem,
.bento-grid--preview,
.bento-grid--comparison {
  grid-template-columns: repeat(12, 1fr);
}

.bento-grid--features {
  grid-template-columns: repeat(4, 1fr);
}

.bento-grid--status {
  grid-template-columns: repeat(12, 1fr);
}

.bento-grid--workflow {
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
}

.bento-cell {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.bento-cell:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}

/* Hero bento placements */
.bento-cell--hero {
  grid-column: span 5;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-cell--code {
  grid-column: span 7;
  grid-row: span 2;
  padding: 0;
  background: var(--color-code-bg);
  border-color: rgba(26, 26, 46, 0.8);
  overflow: hidden;
}

.bento-cell--code:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.bento-cell--metric {
  grid-column: span 4;
  text-align: center;
  padding: 24px 20px;
}

.bento-cell--accent-blue {
  border-top: 3px solid var(--color-primary);
}

.bento-cell--accent-green {
  border-top: 3px solid var(--color-success);
}

/* Problem / solution */
.bento-cell--half {
  grid-column: span 6;
}

.bento-cell--wide {
  grid-column: span 12;
}

.bento-cell--problem {
  background: linear-gradient(135deg, #fef2f2 0%, var(--color-bg) 100%);
  border-color: rgba(239, 68, 68, 0.15);
}

.bento-cell--solution {
  background: linear-gradient(135deg, #ecfdf5 0%, var(--color-bg) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

.bento-cell--text {
  background: transparent;
  border-style: dashed;
}

.bento-cell--text:hover {
  box-shadow: none;
  transform: none;
}

/* Features bento: 4 cards in one row */
.bento-cell--feature {
  min-width: 0;
}

.bento-feature {
  display: flex;
  flex-direction: column;
}

/* Preview */
.bento-cell--preview {
  padding: 0;
  overflow: hidden;
}

/* Status */
.bento-cell--third {
  grid-column: span 4;
  text-align: center;
}

.bento-status .status-card__visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bento-status .status-card__visual img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Workflow */
.bento-cell--borderless {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.bento-cell--borderless:hover {
  border: none;
  box-shadow: none;
  transform: none;
}

.section--alt .bento-cell--borderless {
  background: transparent;
  border: none;
  box-shadow: none;
}

.section--alt .bento-cell--borderless:hover {
  border: none;
  box-shadow: none;
  transform: none;
}

.bento-cell--workflow-text,
.bento-cell--workflow-cards {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
}

.bento-cell--workflow-image {
  grid-column: span 7;
  padding: 0;
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  overflow: hidden;
}

.bento-cell--workflow-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  border-radius: var(--radius-md);
}

.bento-cell--workflow-cards .code-block {
  margin-top: auto;
}

/* Comparison + CTA */
.bento-cell--comparison-table {
  padding: 0;
  overflow: hidden;
}

.bento-cell--cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(37, 99, 235, 0.2);
  padding: 48px 32px;
}

/* ---- Hero content (legacy bento refs) ---- */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  width: fit-content;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn__icon {
  flex-shrink: 0;
}

.btn__icon--trailing {
  opacity: 0.85;
}

.btn--secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ---- Bento metrics ---- */

.bento-metric__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-bg-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.bento-metric__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ---- Bento tags & lists ---- */

.bento-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  width: fit-content;
}

.bento-tag--muted {
  background: #f1f5f9;
  color: var(--color-text-muted);
}

.bento-tag--success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
}

.bento-tag--blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.bento-cell__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin: 12px 0 16px;
}

.bento-cell__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
}

.bento-cell__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-list li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}

.bento-list--cross li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
  font-size: 0.75rem;
}

.bento-list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ---- Feature cards (inside bento) ---- */

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.feature-card__icon--sm {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-card__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feature-card__icon--sm img {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-bg-dark);
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- Mini cards (workflow) ---- */

.bento-mini-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  height: 100%;
}

.bento-mini-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  padding: 16px 18px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.bento-mini-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-bg-dark);
  margin-bottom: 4px;
}

.bento-mini-card__text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---- Code blocks ---- */

.code-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-code-bg);
  font-family: var(--font-mono);
}

.bento-cell--code .code-block,
.bento-cell--workflow-text .code-block,
.bento-cell--workflow-cards .code-block {
  border-radius: 0;
  height: 100%;
}

.bento-cell--workflow-text .code-block,
.bento-cell--workflow-cards .code-block {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block__lang {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-family: var(--font-mono);
}

.code-block__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.code-block__copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

.code-block__copy--success {
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.4);
}

.code-block__pre {
  flex: 1;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.code-block__pre code {
  font-family: var(--font-mono);
  white-space: pre;
}

/* Syntax tokens */
.tok-comment { color: #6b7280; }
.tok-keyword { color: #7dd3fc; }
.tok-string  { color: #86efac; }
.tok-flag    { color: #fbbf24; }
.tok-key     { color: #93c5fd; }
.tok-number  { color: #fcd34d; }

/* Status label badge */
.status-card__label {
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-code-bg);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}

.status-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-bg-dark);
}

.status-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- Browser frame ---- */

.browser-frame {
  background: var(--color-bg);
}

.browser-frame__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.browser-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-frame__dot--red    { background: #ef4444; }
.browser-frame__dot--yellow { background: #f59e0b; }
.browser-frame__dot--green  { background: #10b981; }

.browser-frame__url {
  flex: 1;
  margin-left: 8px;
  padding: 6px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-align: center;
}

.browser-frame__content img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Comparison table ---- */

.comparison-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--color-bg);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--color-code-bg);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: var(--color-bg-alt);
}

.comparison-table__aspect {
  font-weight: 600;
  color: var(--color-bg-dark);
  white-space: nowrap;
}

.comparison-table__highlight {
  background: rgba(37, 99, 235, 0.04);
  color: var(--color-primary-dark);
}

.comparison-table thead .comparison-table__highlight {
  background: var(--color-primary);
  color: #fff;
}

/* ---- CTA ---- */

.bento-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 12px;
}

.bento-cta__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.bento-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.site-footer {
  background: var(--color-code-bg);
  color: #94a3b8;
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__company {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.9375rem;
}

.site-footer__product {
  font-size: 0.8125rem;
  color: #64748b;
}

.site-footer__copyright {
  font-size: 0.8125rem;
}

/* ---- Scroll Reveal ---- */

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

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

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

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__content .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    order: -1;
  }

  .hero-trust-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-trust-bar__items {
    width: 100%;
    justify-content: flex-start;
  }

  .notification-spotlight__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .notification-spotlight__content {
    max-width: none;
    text-align: center;
  }

  .notification-spotlight__content .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .notification-spotlight__visual {
    justify-content: center;
  }

  .notification-spotlight__frame {
    transform: none;
    max-width: 100%;
  }

  .notification-spotlight__frame:hover {
    transform: none;
  }

  .bento-cell--hero,
  .bento-cell--code,
  .bento-cell--metric,
  .bento-cell--half,
  .bento-cell--wide,
  .bento-cell--feature,
  .bento-cell--third,
  .bento-cell--workflow-text,
  .bento-cell--workflow-image,
  .bento-cell--workflow-cards {
    grid-column: span 12;
    grid-row: auto;
  }

  .bento-grid--hero {
    grid-template-rows: auto;
  }

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

  .bento-grid--features .bento-cell--feature {
    grid-column: auto;
  }

  .bento-cell--code {
    min-height: 280px;
  }

  .bento-mini-cards {
    height: auto;
  }

  .bento-mini-card {
    flex: none;
  }

  .bento-cell--workflow-image img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .header-right {
    display: flex;
    gap: 16px;
  } 

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 105;
    height: 100vh;
  }

  .site-nav--open {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 1.125rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 36px;
  }

  .section-header__subtitle {
    align-self: start;
    padding-bottom: 0;
  }

  .section--hero {
    padding-bottom: 56px;
  }

  .bento-cell {
    padding: 22px;
  }

  .bento-grid--features {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__brand {
    flex-direction: column;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .bento-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .bento-cta__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 12px;
    min-height: var(--header-height);
  }

  .section--hero {
    padding-top: calc(var(--header-height) + 24px);
  }

  .code-block__pre {
    font-size: 0.75rem;
    padding: 16px;
  }
}

/* Japanese typography — Noto Sans JP fallback for CJK glyphs */
html[lang="ja"] body {
  font-family: "Noto Sans JP", "Space Grotesk", sans-serif;
}

html[lang="ja"] .hero__title,
html[lang="ja"] .section-header__title,
html[lang="ja"] .bento-cta__title {
  letter-spacing: 0.02em;
}

html[lang="ja"] .section-header__eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
}

html[lang="ja"] .notification-spotlight__eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
}
