/* ==========================================================================
   AllyRevolution Technologies - Red & White Swiss-Industrial Robotics UI
   Clean Minimalist Architecture, Stark High-Contrast Sections, Precision Grid
   ========================================================================== */

:root {
  /* Brand Red & White Palette */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-subtle: #f1f3f5;
  --bg-dark: #0c0c0e;
  --bg-dark-card: #141418;
  --bg-dark-surface: #1a1a20;

  /* Accent Red */
  --red-primary: #e60028;
  --red-hover: #ff1a3c;
  --red-dark: #b91c1c;
  --red-subtle: rgba(230, 0, 40, 0.08);
  --red-glow: rgba(230, 0, 40, 0.25);

  /* Neutrals */
  --text-black: #09090b;
  --text-dark: #18181b;
  --text-body: #3f3f46;
  --text-muted: #71717a;
  --text-white: #ffffff;
  --text-white-muted: #a1a1aa;

  /* Borders & Dividers */
  --border-light: #e4e4e7;
  --border-dark: #27272a;
  --border-red: #e60028;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --max-width: 1360px;
  --header-height: 72px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;

  /* Transitions */
  --trans: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-black);
  line-height: 1.5;
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  -webkit-font-smoothing: antialiased;
}

section[id], div[id] {
  scroll-margin-top: 130px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-white);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2vw, 2rem);
  padding-right: clamp(1rem, 2vw, 2rem);
}

.container-wide {
  max-width: 1520px;
}

/* Top Technical Bar (Red & White Theme) */
.swiss-topbar {
  background: var(--bg-dark);
  color: var(--text-white);
  border-bottom: 1px solid var(--border-dark);
  padding: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.swiss-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.swiss-topbar .ticker-left {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swiss-topbar .ticker-right {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.swiss-badge-red {
  background: var(--red-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
}

.status-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

/* Main Site Header */
.swiss-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.swiss-nav-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  min-width: 0;
}

/* Logo */
.swiss-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--text-black);
  justify-self: start;
  flex-shrink: 0;
}

.swiss-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--red-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 4px;
  flex-shrink: 0;
}

.swiss-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.swiss-logo-text .title {
  letter-spacing: -0.03em;
  font-weight: 900;
  white-space: nowrap;
}

.swiss-logo-text .subtitle {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #71717a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

/* Nav Links - Center Anchored & Stable */
.swiss-nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(0.2rem, 0.6vw, 0.85rem);
  margin: 0;
  padding: 0;
  min-width: 0;
}

.swiss-nav-link {
  font-size: clamp(0.7rem, 0.65rem + 0.12vw, 0.78rem);
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.3rem clamp(0.3rem, 0.45vw, 0.55rem);
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.swiss-nav-link:hover {
  color: #09090b;
  background: #f4f4f5;
}

.swiss-nav-link.active {
  color: #09090b;
  background: #f4f4f5;
  font-weight: 700;
}

.swiss-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--red-primary);
  border-radius: 2px;
}

/* Header CTAs - Right Anchored */
.swiss-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(0.35rem, 0.6vw, 0.75rem);
  flex-shrink: 0;
}

.swiss-header-actions .btn-swiss-red,
.swiss-header-actions .btn-open-waitlist {
  padding: 0.5rem clamp(0.65rem, 0.8vw, 1.05rem) !important;
  font-size: clamp(0.72rem, 0.68rem + 0.12vw, 0.8rem) !important;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.swiss-header-actions .search-trigger-btn {
  padding: 0.48rem clamp(0.5rem, 0.65vw, 0.85rem) !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}

/* Buttons (Swiss High-Contrast Red & Black) */
.btn-swiss-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--red-primary);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--red-primary);
  cursor: pointer;
  transition: var(--trans);
}

.btn-swiss-red:hover {
  background: var(--text-black);
  border-color: var(--text-black);
  color: #fff;
}

.btn-swiss-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--text-black);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--text-black);
  cursor: pointer;
  transition: var(--trans);
}

.btn-swiss-dark:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
}

.btn-swiss-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text-black);
  padding: 0.75rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--trans);
}

.btn-swiss-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn-swiss-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  transition: var(--trans);
}

.btn-swiss-outline-dark:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn-arrow-box {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.btn-swiss-dark .btn-arrow-box {
  background: var(--red-primary);
  color: #fff;
}

/* Sections */
.section-white {
  background-color: var(--bg-white);
  color: var(--text-black);
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
  position: relative;
}

.section-pad-hero {
  padding: 3.5rem 0 4.5rem 0;
}

.section-pad-swiss {
  padding: 5.5rem 0;
}

/* Giant Typography Watermarks */
.watermark-text {
  font-size: clamp(4.5rem, 14vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.watermark-text.light {
  color: rgba(0, 0, 0, 0.04);
}

.watermark-text.outline-white {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.12);
}

.watermark-text.outline-dark {
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.08);
}

.watermark-text.red-glow {
  color: transparent;
  -webkit-text-stroke: 2px var(--red-primary);
  opacity: 0.3;
}

/* Editorial Headers */
.swiss-header-pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swiss-header-title {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.swiss-header-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 720px;
}

.section-dark .swiss-header-desc {
  color: var(--text-white-muted);
}

/* Swiss Data Tables */
.swiss-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 2px solid var(--text-black);
  margin-top: 2rem;
}

.swiss-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.swiss-table th {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.swiss-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.swiss-table tr.highlight-black {
  background: var(--text-black);
  color: #ffffff;
}

.swiss-table tr.highlight-black td {
  border-bottom: 1px solid #222;
  font-weight: 600;
}

.swiss-table tr.highlight-black strong {
  color: #ffffff;
}

.swiss-table tr.highlight-black .red-tag {
  background: var(--red-primary);
  color: #fff;
}

/* Executive Precision Tag (Zero Pink Tint) */
.red-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  background: #09090b;
  color: #ffffff;
  border: 1px solid #27272a;
  border-left: 2px solid var(--red-primary);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

/* Minimal Swiss Grid Cards */
.swiss-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.swiss-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
  position: relative;
}

.swiss-card:hover {
  border-color: var(--red-primary);
  transform: translateY(-3px);
}

.swiss-card-img-wrap {
  width: 100%;
  height: 200px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
  padding: 1rem;
}

.swiss-card-img-wrap img {
  max-height: 160px;
  width: auto;
  transition: transform var(--trans);
}

.swiss-card:hover .swiss-card-img-wrap img {
  transform: scale(1.05);
}

.swiss-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Floating Clean Spec Cards */
.floating-spec-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--red-primary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.floating-spec-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-black);
  letter-spacing: -0.03em;
  line-height: 1;
}

.floating-spec-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Footer (Matching Bottom of Screenshot) */
.swiss-footer {
  background: var(--bg-dark);
  color: var(--text-white);
  border-top: 1px solid var(--border-dark);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.swiss-footer-watermark {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  opacity: 0.12;
  pointer-events: none;
}

.swiss-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.swiss-footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.swiss-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.swiss-footer-col ul a {
  color: var(--text-white-muted);
  font-size: 0.88rem;
  transition: var(--trans);
}

.swiss-footer-col ul a:hover {
  color: var(--red-primary);
  transform: translateX(3px);
}

.swiss-footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Editorial Grids & Swiss Modules
   ========================================================================== */
.editorial-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
}

.editorial-split-grid img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.editorial-block {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--red-primary);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
}

.editorial-block h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.editorial-block p {
  color: var(--text-white-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dark-editorial-section {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  position: relative;
  border-bottom: 1px solid var(--border-dark);
}

.author-avatar-box {
  width: 48px;
  height: 48px;
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.testimonial-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-open-waitlist {
  cursor: pointer;
}

/* ==========================================================================
   Swiss Form Architecture
   ========================================================================== */
.swiss-form-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--red-primary);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.swiss-input, .swiss-select, .swiss-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-black);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-xs);
  transition: var(--trans);
  font-family: inherit;
}

.swiss-input:focus, .swiss-select:focus, .swiss-textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 2px rgba(230, 0, 40, 0.15);
}

/* ==========================================================================
   Swiss Data Specifications Table
   ========================================================================== */
.specs-table-swiss {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 1.5rem;
}

.specs-table-swiss th {
  background: var(--bg-dark);
  color: #fff;
  text-align: left;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-dark);
  text-transform: uppercase;
}

.specs-table-swiss td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-body);
}

.specs-table-swiss tr:nth-child(even) td {
  background: var(--bg-light);
}

/* ==========================================================================
   Search Modal Architecture
   ========================================================================== */
.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-black);
  border: 1px solid var(--border-light);
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--trans);
}

.search-trigger-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

/* Executive-Grade Command Palette (Cmd+K) */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(8vh, 12vh, 16vh);
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-modal-box {
  background: #ffffff;
  width: 92%;
  max-width: 660px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-modal-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  gap: 0.9rem;
}

.search-input-icon {
  color: var(--red-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-modal-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-black);
}

.search-modal-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  letter-spacing: 0.04em;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  transition: color var(--trans);
}

.search-close-btn:hover {
  color: var(--red-primary);
}

.search-modal-results {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.search-modal-results::-webkit-scrollbar {
  width: 5px;
}

.search-modal-results::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #f8fafc;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  gap: 1.25rem;
  border-left: 3px solid transparent;
}

.search-result-item:hover,
.search-result-item.selected {
  background: #f8fafc;
  border-left-color: var(--red-primary);
}

.search-item-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.search-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 0.45rem;
  flex-shrink: 0;
  transition: background var(--trans);
}

.search-result-item:hover .search-item-dot,
.search-result-item.selected .search-item-dot {
  background: var(--red-primary);
}

.search-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-black);
  letter-spacing: -0.01em;
}

.search-item-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.search-item-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.search-category-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--trans);
}

.search-result-item:hover .search-category-badge,
.search-result-item.selected .search-category-badge {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

.search-item-arrow {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: transform var(--trans), color var(--trans);
}

.search-result-item:hover .search-item-arrow,
.search-result-item.selected .search-item-arrow {
  color: var(--red-primary);
  transform: translateX(3px);
}

.search-modal-footer {
  padding: 0.65rem 1.4rem;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}

.search-footer-hint {
  display: flex;
  gap: 1rem;
}

.search-kbd-mini {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  cursor: pointer;
  padding: 6px;
  transition: var(--trans);
}

.mobile-nav-toggle:hover {
  background: #e4e4e7;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-black);
  transition: var(--trans);
}

/* ==========================================================================
   Smooth Sticky Quick Jump Sub-Nav Bar
   ========================================================================== */
.quick-jump-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-jump-container {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  align-items: center;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-jump-list {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: nowrap;
}

.quick-jump-container::-webkit-scrollbar {
  display: none;
}

.quick-jump-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-primary);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.08em;
  margin-right: 0.25rem;
}

.quick-jump-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #52525b;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 100px;
  padding: 0.4rem 0.95rem;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.quick-jump-pill:hover {
  color: var(--text-black);
  border-color: #a1a1aa;
  background: #fafafa;
  transform: translateY(-1px);
}

.quick-jump-pill.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.quick-jump-pill.active .pill-icon {
  color: var(--red-primary);
}

/* ==========================================================================
   Flexible Responsive Grid Primitives
   ========================================================================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.swiss-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Comprehensive Resolution & Breakpoint System (Desktop & Phone Friendly)
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-meta-columns {
    gap: 1.5rem;
  }
  .swiss-topbar {
    padding: 0.35rem 0;
    font-size: 0.68rem;
  }
  .swiss-topbar-inner > div:last-child,
  .swiss-topbar-inner .ticker-right,
  .swiss-topbar > div:last-child {
    display: none;
  }
  .swiss-nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .swiss-nav-list {
    display: none;
  }
  .swiss-nav-list.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    border-top: 3px solid var(--red-primary);
    z-index: 99999;
    gap: 0.5rem;
    overflow-y: auto;
    align-items: stretch;
  }
  .swiss-nav-list.mobile-active .swiss-nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .swiss-nav-list.mobile-active .swiss-nav-link::after {
    content: '→';
    color: var(--red-primary);
    font-size: 1.2rem;
    font-family: var(--font-mono);
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .swiss-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .swiss-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .editorial-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .swiss-header {
    height: 60px;
    padding: 0;
  }
  .swiss-logo {
    font-size: 1.05rem;
    margin-right: 0.5rem;
    gap: 0.5rem;
  }
  .swiss-logo-mark {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
  .swiss-logo-text .subtitle {
    display: none;
  }
  .swiss-header-actions {
    gap: 0.5rem;
    margin-left: 0.5rem;
  }
  /* On small phone screens, hide the long red button in header to prevent any cramped layout; available in drawer */
  .swiss-header-actions .btn-swiss-red {
    display: none;
  }
  .search-trigger-btn span {
    display: none;
  }
  .search-trigger-btn {
    padding: 0.45rem 0.6rem;
  }
  .grid-4, .grid-3, .swiss-grid-6, .editorial-split-grid, .swiss-form-row {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .section-pad-swiss {
    padding: 3.5rem 0;
  }
  .swiss-header-title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
  }
  .hero-meta-columns {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .swiss-form-card {
    padding: 1.25rem 1rem;
  }
  .swiss-input, .swiss-select, .swiss-textarea {
    font-size: 16px; /* Prevents iOS auto-zoom */
    padding: 0.75rem;
  }
  .specs-table-swiss {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .specs-table-swiss th, .specs-table-swiss td {
    padding: 0.75rem 0.85rem;
    font-size: 0.75rem;
  }
  .swiss-footer {
    padding: 3rem 0 2rem 0;
  }
  .swiss-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .swiss-footer-watermark {
    display: none;
  }
  .swiss-footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .hero-swiss {
    padding: 2rem 0 3rem 0;
  }
  .swiss-topbar {
    padding: 0.25rem 0.5rem;
    font-size: 0.62rem;
    justify-content: center;
  }
  .swiss-topbar .ticker-left span:not(.swiss-badge-red):not(:nth-child(2)) {
    display: none;
  }
}

.search-close-badge {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-close-badge:hover .search-kbd-mini {
  background: #f1f5f9;
  color: #09090b;
  border-color: #cbd5e1;
}
