/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #070b12;
  --bg-alt:       #0d1117;
  --bg-card:      #111827;
  --bg-card-hover:#161f2e;
  --border:       #1e2937;
  --border-light: #243044;

  --red:          #e11d48;
  --red-dark:     #be123c;
  --red-dim:      rgba(225, 29, 72, 0.12);
  --red-glow:     rgba(225, 29, 72, 0.25);

  --text:         #f1f5f9;
  --text-muted:   #64748b;
  --text-subtle:  #94a3b8;

  --blue:         #3b82f6;
  --green:        #10b981;
  --purple:       #8b5cf6;
  --yellow:       #f59e0b;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;

  --shadow:       0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg:    0 4px 24px rgba(0,0,0,0.5);
}

html { font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.875em; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}

.nav-link:hover { color: var(--text); background: var(--bg-card); }

.nav-link--icon { padding: 6px 8px; }

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

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  padding: 10px 20px;
  font-size: 0.875rem;
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--red-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-subtle);
  border-color: var(--border-light);
  padding: 10px 20px;
  font-size: 0.875rem;
}
.btn--outline:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-card);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn--ghost:hover { color: var(--text); background: var(--bg-card); }

.btn--sm  { padding: 7px 14px; font-size: 0.8125rem; }
.btn--lg  { padding: 13px 28px; font-size: 0.9375rem; }

.btn--danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--danger:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 29, 72, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 72, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.text-red { color: var(--red); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-subtle);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 40px;
  gap: 32px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-subtle);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

.step p code {
  color: var(--red);
  background: var(--red-dim);
  padding: 1px 5px;
  border-radius: 4px;
}

.step-arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0 16px;
  flex-shrink: 0;
}

/* ── Tools Grid ───────────────────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tool-card--active { border-color: rgba(225, 29, 72, 0.3); }
.tool-card--active:hover {
  border-color: var(--red);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.tool-card--soon { opacity: 0.65; }

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon--red    { background: var(--red-dim); color: var(--red); border: 1px solid rgba(225,29,72,0.2); }
.tool-icon--blue   { background: rgba(59,130,246,0.1); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.tool-icon--green  { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.tool-icon--purple { background: rgba(139,92,246,0.1); color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }

.tool-status {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
}
.tool-status--live { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.tool-status--soon { background: var(--red-dim); color: var(--red); border: 1px solid rgba(225,29,72,0.2); }

.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.6;
  flex: 1;
}

.tool-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}

.tool-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.15s;
}
.tool-link:hover { color: #f43f5e; }
.tool-link--disabled { color: var(--text-muted); cursor: default; }

/* ── API Preview ──────────────────────────────────────────────────────────── */
.api-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.api-preview-text .section-title { text-align: left; margin-bottom: 16px; }
.api-preview-text .section-tag   { display: block; text-align: left; margin-bottom: 16px; }
.api-preview-text p { color: var(--text-subtle); margin-bottom: 24px; line-height: 1.7; }

.api-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.api-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-subtle);
}

/* Code window */
.code-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-dot--red    { background: #ff5f57; }
.code-dot--yellow { background: #ffbd2e; }
.code-dot--green  { background: #28c840; }

.code-filename {
  margin-left: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.code-block {
  background: #0d1117;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-subtle);
}

.code-comment { color: #4a5568; }
.code-key     { color: #a3be8c; }
.code-str     { color: #bf616a; }

/* ── Access Gate ──────────────────────────────────────────────────────────── */
.access-gate {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.access-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.access-gate h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.access-gate p {
  color: var(--text-subtle);
  margin-bottom: 40px;
  line-height: 1.7;
}

.access-requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.requirement {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.req-icon { font-size: 1.5rem; flex-shrink: 0; }

.requirement strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.requirement span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 90px; resize: vertical; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option { background: var(--bg-card); }

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

.form-submit { width: 100%; margin-top: 8px; justify-content: center; }

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-footer a { color: var(--red); }
.form-footer a:hover { text-decoration: underline; }

/* Alerts */
.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert--error   { background: rgba(225,29,72,0.1); border-color: rgba(225,29,72,0.25); color: #fda4af; }
.alert--success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); color: #6ee7b7; }
.alert--info    { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); color: #93c5fd; }

/* ── Dashboard Layout ─────────────────────────────────────────────────────── */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.sidebar-header {
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  padding: 12px;
  flex: 1;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.sidebar-link:hover { color: var(--text); background: var(--bg-card); }
.sidebar-link.active { color: var(--text); background: var(--bg-card); }
.sidebar-link.active .sidebar-link-icon { color: var(--red); }

.sidebar-link-icon { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.sidebar-user:hover { background: var(--bg-card); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-dim);
  border: 1px solid rgba(225,29,72,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.8125rem; font-weight: 600; truncate: ellipsis; overflow: hidden; white-space: nowrap; }
.user-role { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.dash-main {
  flex: 1;
  overflow: auto;
}

.dash-topbar {
  height: 57px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  justify-content: space-between;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dash-title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; }

.dash-body { padding: 28px; }

/* ── Dashboard Cards ──────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card--red { border-color: rgba(225,29,72,0.2); }
.stat-card--red .stat-card-value { color: var(--red); }

/* ── Table ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.table { width: 100%; border-collapse: collapse; }

.table th {
  padding: 10px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.table td {
  padding: 13px 16px;
  font-size: 0.875rem;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.table td .text-main { color: var(--text); font-weight: 500; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.badge--green  { background: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(16,185,129,0.25); }
.badge--red    { background: rgba(225,29,72,0.12); color: #fb7185; border-color: rgba(225,29,72,0.25); }
.badge--yellow { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.badge--gray   { background: rgba(255,255,255,0.06); color: var(--text-muted); border-color: var(--border); }

/* Mono text */
.mono { font-family: var(--font-mono); font-size: 0.8125rem; }

/* Empty state */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-subtle); }
.empty-state p  { font-size: 0.875rem; }

/* ── Facebook Tool Page ───────────────────────────────────────────────────── */
.tool-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tool-page-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.tool-page-sub   { font-size: 0.875rem; color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Apply Page ───────────────────────────────────────────────────────────── */
.apply-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  background: var(--bg);
}

.apply-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.apply-header {
  margin-bottom: 36px;
}

.apply-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.apply-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.section-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.footer-brand .logo-text { font-size: 1.25rem; font-weight: 800; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.65;
}

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(225,29,72,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ── API Key display ──────────────────────────────────────────────────────── */
.api-key-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-key-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps        { flex-direction: column; }
  .step-arrow   { transform: rotate(90deg); align-self: center; }
  .api-preview  { grid-template-columns: 1fr; gap: 40px; }
  .access-requirements { grid-template-columns: 1fr; }
  .stats-row    { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { display: none; }
  .form-row     { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 80px 0 60px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr; }
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEW COMPONENTS — appended
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Hero (smaller than .hero, for interior pages) ─────────────────── */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 29, 72, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 72, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}

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

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Service Grid ────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(225, 29, 72, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.65;
  flex: 1;
}

.service-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s, color 0.15s;
}

.service-card-link:hover { color: #f43f5e; gap: 8px; }

/* ── Industry Cards ──────────────────────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.industry-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.industry-card p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.65;
  flex: 1;
}

/* ── Team Grid ───────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  overflow: hidden;
  flex-shrink: 0;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team-role {
  font-size: 0.8125rem;
  color: var(--red);
  font-weight: 600;
}

.team-bio {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

/* ── Values Grid ─────────────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ── Stat Strip ──────────────────────────────────────────────────────────── */
.stat-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.stat-strip-item {
  padding: 0 32px;
  border-right: 1px solid var(--border);
}

.stat-strip-item:last-child { border-right: none; }

.stat-strip-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-strip-num .stat-accent { color: var(--red); }

.stat-strip-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--red-dim);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.timeline-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.timeline-body {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ── Article / Blog Grid ─────────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  object-fit: cover;
}

.article-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
}

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
}

.article-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.article-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.65;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.article-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  transition: color 0.15s;
}

.article-card-link:hover { color: #f43f5e; }

/* ── Research Card ───────────────────────────────────────────────────────── */
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: border-color 0.2s;
}

.research-card:hover { border-color: var(--border-light); }

.research-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.research-card-body { flex: 1; }

.research-card-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.research-card-body p {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ── Job List ────────────────────────────────────────────────────────────── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: border-color 0.2s, transform 0.15s;
}

.job-card:hover {
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateX(3px);
}

.job-card-main { flex: 1; }

.job-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.job-meta-sep { color: var(--border-light); }

.job-type-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.job-type-badge--contract {
  background: rgba(245, 158, 11, 0.12);
  color: var(--yellow);
  border-color: rgba(245, 158, 11, 0.25);
}

.job-description {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

/* ── Contact Grid ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-form-col { }

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.contact-form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.contact-info-col { }

.office-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.office-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.office-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.office-card-address {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Legal Pages ─────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-page p {
  color: var(--text-subtle);
  margin-bottom: 18px;
  font-size: 0.9375rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

.legal-page ul li {
  color: var(--text-subtle);
  font-size: 0.9375rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-page ul li strong { color: var(--text); }

.legal-page a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(225, 29, 72, 0.3);
  transition: border-color 0.15s, color 0.15s;
}

.legal-page a:hover {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.6);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.legal-contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 12px;
}

.legal-contact-block p {
  margin-bottom: 0;
}

.legal-warning-block {
  background: rgba(225, 29, 72, 0.07);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-warning-block strong { color: var(--red); }

.legal-critical-block {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-critical-block h3 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0;
  margin-bottom: 10px;
}

.legal-critical-block p {
  margin-bottom: 0;
  color: var(--text-subtle);
}

/* ── Error Pages ─────────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.error-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 29, 72, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 72, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
}

.error-header {
  position: relative;
  z-index: 1;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.7);
  backdrop-filter: blur(12px);
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.error-content {
  text-align: center;
  max-width: 560px;
}

.error-code-display {
  font-size: clamp(6rem, 16vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--red);
  opacity: 0.15;
  font-family: var(--font-sans);
  margin-bottom: -20px;
  user-select: none;
}

.error-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.error-icon-wrap--orange {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--yellow);
}

.error-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.error-message {
  font-size: 1rem;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-terminal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  text-align: left;
}

.error-terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.error-terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--text-subtle);
}

.error-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--red);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.error-status-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.error-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error-links-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.error-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.error-quick-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-subtle);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
}

.error-quick-link:hover { color: var(--text); border-color: var(--border-light); }

.error-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Mega Nav Dropdown ───────────────────────────────────────────────────── */
.nav-item {
  position: relative;
}

.nav-item > .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item > .nav-link .nav-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-item:hover > .nav-link .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 8px 8px;
  min-width: 220px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: var(--border);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-subtle);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-dropdown-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.nav-dropdown-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px 2px;
}

/* Wide dropdown for services (multi-column) */
.nav-dropdown--wide {
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 16px 12px 12px;
  left: 0;
  transform: translateX(0) translateY(-4px);
}

.nav-item:hover .nav-dropdown--wide {
  transform: translateX(0) translateY(0);
}

.nav-dropdown--wide::before { left: 64px; transform: none; }

/* ── Solution Block ──────────────────────────────────────────────────────── */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution-block--reverse { direction: rtl; }
.solution-block--reverse > * { direction: ltr; }

.solution-block-content { }

.solution-block-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
}

.solution-block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.solution-block p {
  color: var(--text-subtle);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.capability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.capability-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.solution-block-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
}

/* ── Benefit Grid ────────────────────────────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.benefit-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--red-dim);
  border: 1px solid rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ── CTA Strip ───────────────────────────────────────────────────────────── */
.cta-strip {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(225, 29, 72, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip-inner {
  position: relative;
  z-index: 1;
}

.cta-strip h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.cta-strip p {
  font-size: 1rem;
  color: var(--text-subtle);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-strip-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-strip-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — new components
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .service-grid    { grid-template-columns: repeat(2, 1fr); }
  .industry-grid   { grid-template-columns: repeat(2, 1fr); }
  .team-grid       { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .stat-strip-item:nth-child(2n) { border-right: none; }
  .solution-block  { grid-template-columns: 1fr; gap: 40px; }
  .nav-dropdown--wide { min-width: 240px; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-hero         { padding: 56px 0 40px; }
  .page-hero-title   { font-size: 1.875rem; }

  .service-grid      { grid-template-columns: 1fr; }
  .industry-grid     { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: 1fr; }
  .benefit-grid      { grid-template-columns: 1fr; }
  .article-grid      { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: repeat(2, 1fr); }
  .contact-grid      { grid-template-columns: 1fr; gap: 40px; }
  .stat-strip-inner  { grid-template-columns: repeat(2, 1fr); }

  .job-card          { flex-direction: column; align-items: flex-start; gap: 16px; }

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

  .error-actions     { flex-direction: column; align-items: stretch; }
  .error-actions .btn { justify-content: center; }
  .error-code-display { font-size: 8rem; }

  .timeline          { padding-left: 24px; }
  .timeline-dot      { left: -29px; }

  .legal-page h2     { font-size: 1.125rem; }

  /* Hide nav dropdowns on small screens — falls back to simple links */
  .nav-dropdown { display: none !important; }
  .nav-caret    { display: none; }
}

@media (max-width: 480px) {
  .team-grid   { grid-template-columns: 1fr; }
  .stat-strip-inner { grid-template-columns: 1fr; }
  .stat-strip-item { border-bottom: 1px solid var(--border); }
  .error-link-row { flex-direction: column; align-items: center; }
}

/* ── Language switcher ────────────────────────────────────────────────────── */
.lang-switch {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
  letter-spacing: 0.04em;
}
.lang-switch:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg-card); }

/* ── Footer contact block ─────────────────────────────────────────────────── */
.footer-contact-block {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-contact-block p { margin: 0; }
