/* ==========================================================================
   NyxWard website design system
   Light theme · Tech Blue palette
   ========================================================================== */

:root {
  /* ---- Brand: Tech Blue ---- */
  --brand-blue: #1565ff;          /* primary */
  --brand-blue-strong: #0a47cc;
  --brand-blue-light: #3b82f6;
  --brand-blue-bright: #2f80ff;
  --brand-blue-soft: #60a5fa;
  --brand-cyan: #06b6d4;          /* electric accent */
  --brand-cyan-light: #22d3ee;
  --brand-indigo: #4338ca;        /* deep accent for gradients */
  --brand-violet: #7c3aed;

  /* secondary cool tones (kept for subtle 2-color gradients) */
  --accent-teal: #0ea5e9;

  /* ---- Aliases for legacy class/inline vars used by sub-pages ---- */
  /* (the whole site is now tech-blue; amber/green map to blue/cyan) */
  --brand-amber: var(--brand-blue);
  --brand-amber-light: var(--brand-blue-soft);
  --brand-green-light: var(--brand-cyan);

  /* ---- Light surfaces ---- */
  --bg-base: #f5f8fc;             /* app background */
  --bg-page: #ffffff;             /* page card */
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #f1f5fb;             /* faint blue-grey */
  --bg-tinted: #eef4ff;           /* faint blue tint */
  --bg-overlay: rgba(255, 255, 255, 0.82);

  /* ---- Text on light ---- */
  --text-primary: #0b1b3a;        /* near-navy ink */
  --text-secondary: #3a4a63;
  --text-tertiary: #6b7a93;
  --text-muted: #94a2b8;
  --text-on-blue: #ffffff;

  /* ---- Borders ---- */
  --border-subtle: rgba(21, 101, 255, 0.08);
  --border-default: rgba(15, 40, 90, 0.12);
  --border-strong: rgba(21, 101, 255, 0.35);

  /* ---- Shadows ---- */
  --shadow-card: 0 10px 30px rgba(15, 40, 90, 0.08), 0 2px 6px rgba(15, 40, 90, 0.04);
  --shadow-strong: 0 24px 60px rgba(15, 40, 90, 0.14), 0 6px 16px rgba(15, 40, 90, 0.06);
  --glow-blue: 0 0 0 1px rgba(21, 101, 255, 0.10), 0 18px 50px rgba(21, 101, 255, 0.18);
  --glow-bright: 0 18px 44px rgba(47, 128, 255, 0.30);

  /* ---- Fonts ---- */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans CJK JP', 'Meiryo', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ---- Radii (slightly rounder for a modern look) ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --max-w: 1180px;
  --max-w-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
}

/* Anti-FOUC: while i18n hasn't applied the target language yet, hide the body
   so the user never sees the default (Chinese) fallback flash.
   html.i18n-pending is set pre-paint by the inline head script; removed by i18n.js. */
html.i18n-pending body {
  visibility: hidden;
}
html.i18n-ready body {
  visibility: visible;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 128, 255, 0.10), transparent 60%),
    radial-gradient(1000px 500px at -5% 5%, rgba(6, 182, 212, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-base) 28rem, var(--bg-base) 100%);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(21, 101, 255, 0.025) 92px 93px),
    repeating-linear-gradient(0deg, transparent 0 92px, rgba(21, 101, 255, 0.022) 92px 93px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

button {
  border: none;
  color: inherit;
  background: none;
  cursor: pointer;
}

::selection {
  color: var(--text-on-blue);
  background: var(--brand-blue);
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: 4.05rem;
}

h2 {
  margin-bottom: var(--space-6);
  font-size: 2.8rem;
}

h3 {
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 700;
}

h4 {
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

strong {
  font-weight: 700;
}

.text-mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.text-blue {
  color: var(--brand-blue);
}

.text-amber {
  /* kept as alias for legacy markup; maps to bright tech blue */
  color: var(--brand-blue);
}

.text-cyan {
  color: var(--brand-cyan);
}

.text-green {
  /* legacy alias */
  color: var(--brand-cyan);
}

.text-uppercase {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.container,
.container-narrow {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container {
  max-width: var(--max-w);
}

.container-narrow {
  max-width: var(--max-w-narrow);
}

section {
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0;
}

section + section {
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-overlay);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem var(--space-6);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.nav-logo::before {
  content: '.nyx';
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.45rem;
  border: 1px solid rgba(21, 101, 255, 0.45);
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue-strong));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(21, 101, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue);
  background: rgba(21, 101, 255, 0.08);
}

.nav-links a.active {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(21, 101, 255, 0.22);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---- Language switcher ---- */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0 0.7rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  border-color: rgba(21, 101, 255, 0.45);
  color: var(--brand-blue);
  background: rgba(21, 101, 255, 0.06);
}

.lang-btn .lang-globe {
  width: 16px;
  height: 16px;
}

.lang-btn .lang-caret {
  font-size: 0.6rem;
  opacity: 0.7;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 0.35rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 200;
}

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

.lang-menu li button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 38px;
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu li button:hover {
  background: var(--bg-tinted);
  color: var(--brand-blue);
}

.lang-menu li button.active {
  background: rgba(21, 101, 255, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
}

.lang-menu .lang-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: auto;
}

.lang-menu li button.active .lang-code {
  color: var(--brand-blue);
}

.nav-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

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

.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.faq-question:focus-visible,
.nav-mobile-toggle:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.btn-primary {
  border: 1px solid var(--brand-blue-strong);
  background: linear-gradient(135deg, var(--brand-blue-bright) 0%, var(--brand-blue-strong) 100%);
  color: #ffffff;
  box-shadow: var(--glow-bright);
}

.btn-primary:hover {
  border-color: var(--brand-indigo);
  box-shadow: 0 18px 50px rgba(21, 101, 255, 0.42);
}

.btn-secondary {
  border: 1px solid rgba(21, 101, 255, 0.35);
  background: rgba(21, 101, 255, 0.06);
  color: var(--brand-blue);
}

.btn-secondary:hover {
  border-color: rgba(21, 101, 255, 0.55);
  background: rgba(21, 101, 255, 0.1);
}

.btn-ghost {
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--brand-blue);
  background: rgba(21, 101, 255, 0.07);
}

.btn-large {
  min-height: 54px;
  padding: 0.98rem 1.6rem;
  font-size: 1rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 101, 255, 0.25);
  box-shadow: var(--shadow-strong), var(--glow-blue);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(21, 101, 255, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.14), rgba(6, 182, 212, 0.08));
  color: var(--brand-blue);
  font-size: 1.4rem;
}

/* ---- Teaser card: compact "see more" block that links to a detail subpage ---- */
.teaser-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-10);
}

.teaser-card .label {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teaser-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
}

.teaser-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.teaser-tags {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.teaser-link {
  margin-top: var(--space-2);
}

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

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

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

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

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

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 101, 255, 0.55), rgba(6, 182, 212, 0.5), transparent);
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47, 128, 255, 0.12), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-home {
  padding-bottom: var(--space-12);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  margin-bottom: var(--space-8);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(21, 101, 255, 0.22);
  border-radius: 999px;
  background: rgba(21, 101, 255, 0.06);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.22);
  }
}

.hero h1 {
  max-width: 1080px;
  margin: 0 auto var(--space-6);
  overflow-wrap: anywhere;
}

.hero h1 em {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-style: italic;
}

.hero-sub {
  max-width: 690px;
  margin: 0 auto var(--space-10);
  color: var(--text-secondary);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.hero-sub .text-mono {
  color: var(--brand-blue);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-meta span strong {
  color: var(--brand-blue);
  font-weight: 700;
}

/* ---- Countdown ---- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  width: min(100%, 610px);
  margin: var(--space-8) auto var(--space-6);
}

.countdown-unit {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, var(--bg-tinted));
  box-shadow: var(--shadow-card);
  text-align: center;
}

.countdown-unit::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue-bright), var(--brand-cyan));
  opacity: 0.9;
}

.countdown-num {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  display: block;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ---- Product preview ---- */
.hero-showcase {
  width: min(100%, 980px);
  margin: var(--space-12) auto 0;
  text-align: left;
}

.product-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
}

.product-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(21, 101, 255, 0.025) 27px 28px),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(21, 101, 255, 0.02) 27px 28px);
  opacity: 0.6;
  pointer-events: none;
}

.preview-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-tinted), #ffffff);
}

.preview-dots {
  display: inline-flex;
  gap: 0.42rem;
}

.preview-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
}

.preview-dots span:nth-child(1) {
  background: var(--brand-blue);
}

.preview-dots span:nth-child(2) {
  background: var(--brand-cyan);
}

.preview-dots span:nth-child(3) {
  background: var(--brand-blue-soft);
}

.preview-title {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.preview-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: var(--space-6);
  padding: var(--space-6);
}

.package-tile,
.audit-panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.package-tile {
  padding: var(--space-6);
}

.package-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 72px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(21, 101, 255, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.12), rgba(6, 182, 212, 0.08));
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.package-tile h3 {
  margin-bottom: var(--space-3);
  font-size: 1.3rem;
}

.package-tile p {
  margin-bottom: var(--space-5);
  font-size: 0.92rem;
}

.preview-policy {
  display: grid;
  gap: var(--space-3);
}

.policy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  min-height: 42px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.policy-row strong {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.audit-panel {
  padding: var(--space-5);
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.audit-header strong {
  color: var(--text-primary);
}

.audit-header span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-cyan);
}

.audit-header span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  animation: pulse 2.2s infinite;
}

.audit-stream {
  display: grid;
  gap: var(--space-3);
}

.audit-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.audit-event::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  box-shadow: 0 0 0 4px rgba(47, 128, 255, 0.12);
}

.audit-event.warn::before {
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.audit-time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ==========================================================================
   USE CASE CARDS
   ========================================================================== */
.usecase-card {
  position: relative;
  padding-top: var(--space-12);
}

.usecase-card::before {
  content: attr(data-num);
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.usecase-card .label,
.label {
  display: inline-block;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.usecase-card p:last-of-type {
  color: var(--text-secondary);
}

.usecase-card p:last-of-type strong {
  color: var(--brand-blue);
}

/* ==========================================================================
   PAIN LIST
   ========================================================================== */
.pain-list {
  list-style: none;
  counter-reset: pain;
  border-top: 1px solid var(--border-subtle);
}

.pain-list li {
  position: relative;
  counter-increment: pain;
  min-height: 64px;
  padding: var(--space-5) 0 var(--space-5) var(--space-12);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.pain-list li:hover {
  background: var(--bg-tinted);
  padding-left: var(--space-16);
}

.pain-list li::before {
  content: counter(pain, decimal-leading-zero);
  position: absolute;
  top: var(--space-5);
  left: 0;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   INTEGRATION
   ========================================================================== */
.integration-cell {
  padding: var(--space-6);
  text-align: center;
}

.integration-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  border: 1px solid rgba(21, 101, 255, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.12), rgba(6, 182, 212, 0.06));
  color: var(--brand-blue);
  font-size: 1.55rem;
}

.integration-list {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  list-style: none;
  margin-top: 0;
}

.integration-list li {
  display: inline;
}

.integration-list li::after {
  content: ' · ';
  color: var(--text-muted);
}

.integration-list li:last-child::after {
  content: '';
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge-card {
  padding: var(--space-8);
  text-align: center;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border: 1px solid rgba(21, 101, 255, 0.25);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.14), rgba(6, 182, 212, 0.08));
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
  padding: var(--space-8);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.testimonial blockquote {
  margin-bottom: var(--space-5);
  color: var(--text-primary);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(21, 101, 255, 0.25);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.16), rgba(6, 182, 212, 0.1));
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

.testimonial-author cite {
  display: block;
  color: var(--text-primary);
  font-style: normal;
}

.testimonial-author small {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 76px;
  padding: var(--space-5) 0;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand-blue);
}

.faq-question::after {
  content: '+';
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.24s ease, color 0.24s ease;
}

.faq-item.open .faq-question::after {
  color: var(--brand-blue);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.96rem;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.faq-item.open .faq-answer {
  max-height: 520px;
  padding-bottom: var(--space-6);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(47, 128, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-tinted), #ffffff);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
  font-size: 3rem;
}

.cta-section h2 em {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-blue);
}

.cta-section .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-6);
}

.cta-section .cta-trust {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #ffffff, var(--bg-soft));
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand h4 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.footer-brand p {
  max-width: 290px;
  font-size: 0.9rem;
}

.footer-col h5 {
  margin-bottom: var(--space-4);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer-bottom .text-mono {
  font-size: 0.75rem;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input {
  min-height: 46px;
  padding: 0 0.95rem;
}

select.form-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-blue) 50%),
    linear-gradient(135deg, var(--brand-blue) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-textarea {
  min-height: 132px;
  padding: 0.9rem 0.95rem;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(21, 101, 255, 0.6);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
  outline: none;
}

.form-help {
  margin-top: var(--space-2);
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center {
  text-align: center;
}

.mobile-only {
  display: none;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mt-8 {
  margin-top: var(--space-8);
}

.section-header {
  margin-bottom: var(--space-16);
  text-align: center;
}

.section-header .label {
  margin-bottom: var(--space-3);
}

.section-header h2 {
  max-width: 740px;
  margin: 0 auto var(--space-4);
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

.divider-text {
  position: relative;
  margin: var(--space-12) 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border-subtle);
}

.divider-text::before {
  left: 0;
}

.divider-text::after {
  right: 0;
}

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

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

/* strike-through helper used on hero transition section */
.strike {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 861px) {
  .hero h1 em {
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.35rem;
  }

  h2,
  .cta-section h2 {
    font-size: 2.35rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  section {
    padding: var(--space-16) 0;
  }

  .nav-inner {
    gap: var(--space-3);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--space-4);
    left: var(--space-4);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-3);
    border-color: var(--border-default);
    background: #ffffff;
    box-shadow: var(--shadow-strong);
  }

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

  .nav-links a {
    justify-content: center;
    min-height: 44px;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .container-narrow {
    width: 100%;
    max-width: 390px;
    padding: 0 var(--space-4);
    overflow: hidden;
  }

  .nav-inner {
    width: 100%;
    max-width: 100vw;
    padding: 0.75rem var(--space-4);
  }

  .nav-logo {
    font-size: 1.35rem;
  }

  .nav-cta {
    gap: var(--space-2);
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-cta .btn-primary {
    display: none;
  }

  /* keep language switcher reachable on mobile */
  .lang-btn {
    padding: 0 0.55rem;
    font-size: 0.72rem;
  }

  .nav-mobile-toggle {
    display: inline-flex !important;
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1.16;
  }

  h2,
  .cta-section h2 {
    font-size: 1.95rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero {
    padding: var(--space-12) 0 var(--space-10);
    overflow: hidden;
  }

  .hero-tag {
    margin-bottom: var(--space-6);
  }

  .hero-sub {
    max-width: 21rem;
    margin-bottom: var(--space-8);
    font-size: 1.02rem;
    word-break: break-all;
  }

  .hero h1 {
    max-width: 19.5rem;
    word-break: break-all;
  }

  .hero h1 em {
    white-space: normal;
  }

  .mobile-only {
    display: block;
  }

  .countdown {
    gap: var(--space-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 292px;
  }

  .countdown-unit {
    min-height: 76px;
    padding: var(--space-3) var(--space-2);
  }

  .countdown-num {
    font-size: 1.55rem;
  }

  .hero-cta .btn {
    width: 100%;
    white-space: normal;
  }

  .hero-cta {
    width: 100%;
    max-width: 358px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-meta {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
    margin-right: auto;
    margin-left: auto;
    gap: var(--space-2);
  }

  .hero-meta span {
    width: 100%;
    justify-content: center;
  }

  .hero-showcase {
    width: 100%;
    max-width: 358px;
    margin-top: var(--space-8);
  }

  .product-preview {
    max-width: 100%;
  }

  .preview-body,
  .preview-toolbar,
  .package-tile,
  .audit-panel,
  .package-tile *,
  .audit-panel * {
    min-width: 0;
  }

  .package-tile p,
  .audit-event span,
  .preview-title {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-body,
  .package-tile,
  .audit-panel {
    padding: var(--space-4);
  }

  .policy-row,
  .audit-event {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-3);
  }

  .audit-event::before {
    display: none;
  }

  .grid-4,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .card,
  .testimonial,
  .badge-card {
    padding: var(--space-6);
  }

  .pain-list li {
    padding-left: var(--space-10);
    font-size: 1rem;
  }

  .pain-list li:hover {
    padding-left: var(--space-10);
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
