/* ============================================================
   K&K WEBSTUDIO — DESIGN SYSTEM: ATELIER MODERNIST
   Bespoke European Web Architecture & High-Ticket Client Conversion.
   Crafted to eliminate generic AI neon clichés and deliver
   unrivaled credibility, elegance, authority and speed.
============================================================ */

:root, html.dark {
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', monospace;

  /* Architectural Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --container: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Primary Palette: Electric Royal Cobalt & Warm Solar Flame */
  --primary: #1e5bff;
  --primary-hover: #1548cc;
  --primary-light: #5282ff;
  --primary-glow: rgba(30, 91, 255, 0.28);
  --primary-dim: rgba(30, 91, 255, 0.08);

  --accent-solar: #ff5500;
  --accent-solar-hover: #e04a00;
  --accent-solar-glow: rgba(255, 85, 0, 0.25);

  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-dim: rgba(16, 185, 129, 0.1);

  --amber: #f59e0b;
  --rose: #ef4444;
  --rose-dim: rgba(239, 68, 68, 0.1);

  /* DARK CANVAS: Architectural Deep Basalt (Tactile, NOT pitch-black AI void) */
  --bg: #090a10;
  --bg-alt: #0e1017;
  --bg-surface: #13151f;
  --bg-grid: rgba(255, 255, 255, 0.035);
  --hero-ambient: radial-gradient(circle at 50% -20%, rgba(30, 91, 255, 0.14) 0%, rgba(255, 85, 0, 0.04) 40%, transparent 70%);

  /* Specular Tactile Cards with Crisp Hairline Borders */
  --card-bg: rgba(15, 17, 26, 0.78);
  --card-bg-solid: #11131c;
  --card-bg-hover: rgba(20, 24, 36, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(30, 91, 255, 0.45);
  --card-inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --card-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55);
  --card-shadow-hover: 0 20px 48px -6px rgba(0, 0, 0, 0.75), 0 0 25px rgba(30, 91, 255, 0.14);

  --header-bg: rgba(9, 10, 16, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f1f3f7;
  --text-muted: #9ba3b8;
  --text-dim: #64748b;
  --heading-color: #ffffff;

  --input-bg: #0d0f17;
  --input-border: rgba(255, 255, 255, 0.12);

  --badge-bg: rgba(30, 91, 255, 0.1);
  --badge-border: rgba(30, 91, 255, 0.3);
  --badge-text: #60a5fa;

  --panel-bg: #0d0f17;
  --footer-bg: #06070a;
  --modal-bg: #0f121c;
}

/* LIGHT THEME: Architectural Linen & Warm Obsidian */
html.light {
  --bg: #f8f7f4;
  --bg-alt: #eeebe3;
  --bg-surface: #e5e2d8;
  --bg-grid: rgba(0, 0, 0, 0.04);
  --hero-ambient: radial-gradient(circle at 50% -20%, rgba(30, 91, 255, 0.08) 0%, rgba(255, 85, 0, 0.03) 40%, transparent 70%);

  --card-bg: #ffffff;
  --card-bg-solid: #ffffff;
  --card-bg-hover: #ffffff;
  --card-border: #ded9ce;
  --card-border-hover: #1e5bff;
  --card-inner-light: inset 0 1px 0 rgba(255, 255, 255, 1);
  --card-shadow: 0 8px 24px -2px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 16px 36px -4px rgba(30, 91, 255, 0.12);

  --header-bg: rgba(248, 247, 244, 0.94);
  --border-subtle: #e3dfd5;
  --border-strong: #c8c3b7;

  --text: #11141d;
  --text-muted: #475569;
  --text-dim: #64748b;
  --heading-color: #090c14;

  --input-bg: #ffffff;
  --input-border: #cbd5e1;

  --badge-bg: rgba(30, 91, 255, 0.08);
  --badge-border: rgba(30, 91, 255, 0.22);
  --badge-text: #1e5bff;

  --panel-bg: #fbfaf7;
  --footer-bg: #0d0f16;
  --modal-bg: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  width: 100%;
  max-width: 100%;
  position: relative;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: 
    var(--hero-ambient),
    radial-gradient(circle at 1px 1px, var(--bg-grid) 1px, transparent 0);
  background-size: 100% 100%, 32px 32px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

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

/* Typography System */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-muted);
}

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

code, pre {
  font-family: var(--font-mono);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: #ffffff;
}

.btn-secondary {
  background: var(--card-bg-solid);
  color: var(--heading-color);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-solar {
  background: var(--accent-solar);
  color: #ffffff;
  border-color: var(--accent-solar);
  box-shadow: 0 4px 18px var(--accent-solar-glow);
  font-weight: 700;
}
.btn-solar:hover {
  background: var(--accent-solar-hover);
  border-color: var(--accent-solar-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-solar-glow);
  color: #ffffff;
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
  box-shadow: 0 4px 18px var(--emerald-glow);
  font-weight: 700;
}
.btn-emerald:hover {
  background: var(--emerald-hover);
  border-color: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--emerald-glow);
  color: #ffffff;
}

.btn-sm {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 18px;
  font-size: 0.86rem;
  border-radius: var(--radius-xs);
}

/* Badges & Architectural Tags */
.badge-dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.3);
  color: var(--accent-solar);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}
.brand-logo:hover {
  transform: translateY(-1px);
}
.logo-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
  display: block;
}
.brand-logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--heading-color);
}
.logo-k {
  color: var(--primary);
}
.logo-studio {
  color: var(--heading-color);
}
.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}


/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--heading-color);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--heading-color);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-cta-btn {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--text);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: var(--transition);
}
.nav-hamburger:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-strong);
  padding: 24px;
  z-index: 999;
}
.mobile-nav-drawer.open {
  display: block;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading-color);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

/* ============================================================
   HERO SECTION — HIGH CONVERSION ARCHITECTURAL SPLIT
============================================================ */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}
.hero-cta-group .btn {
  height: 52px;
  padding: 0 26px;
  font-size: 0.98rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stat-item .stat-num span {
  color: var(--primary);
  font-size: 1.1rem;
}
.hero-stat-item .stat-lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-top: 4px;
}

/* ============================================================
   HERO SHOWCASE DECK (REPLACED FAKE TERMINAL!)
============================================================ */
.hero-showcase-deck {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), var(--card-inner-light);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.showcase-deck-topbar {
  background: var(--bg-alt);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.deck-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.015em;
}

.deck-project-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--card-bg-solid);
  padding: 3px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.deck-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.deck-tab:hover {
  color: var(--heading-color);
}
.deck-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.showcase-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 310px;
  justify-content: space-between;
}

.showcase-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-badge {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.showcase-rating {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 600;
}

.showcase-title {
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--heading-color);
}

.showcase-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.showcase-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 4px 0;
}

.showcase-metric .s-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heading-color);
}
.showcase-metric .s-lbl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.showcase-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.showcase-tech-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.showcase-tech-pills span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 2px 7px;
  border-radius: 4px;
}

.showcase-cta-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-deck-arch {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}
.btn-deck-arch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-deck-live {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-deck-live:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.showcase-deck-statusbar {
  background: var(--bg-alt);
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.deck-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* ============================================================
   TECH & TRUST STRIP
============================================================ */
.tech-strip-section {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

.tech-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-bg-solid);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  text-align: center;
}
.tech-item:hover {
  color: var(--heading-color);
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--card-bg-hover);
}
.tech-item .tech-icon {
  font-size: 20px;
  color: var(--primary);
}

/* ============================================================
   SECTIONS ARCHITECTURE & HEADERS
============================================================ */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header .section-tag {
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 01: ENGINEERING VS LEGACY (COMPARISON)
============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compare-col {
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.compare-col.legacy {
  background: var(--card-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.compare-col.kk {
  background: var(--card-bg-hover);
  border: 2px solid var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.compare-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-col-title {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.compare-list li strong {
  color: var(--heading-color);
}

.compare-list li .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legacy-icon { color: var(--rose); }
.kk-icon { color: var(--emerald); }

/* ============================================================
   SECTION 02: SERVICES GRID
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary);
}
.service-icon-wrap .material-symbols-outlined {
  font-size: 26px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: auto;
}

.service-tech-tag {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

/* ============================================================
   SECTION 03: REAL PROJECTS (PORTFOLIO)
============================================================ */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.port-filter-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.port-filter-btn:hover, .port-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portfolio-card-wide {
  grid-column: 1 / -1;
}

.port-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.port-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}


.browser-window-header {
  background: var(--bg-alt);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.browser-dots, .window-dots {
  display: none !important;
}
.browser-url-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg-solid);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.browser-url-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.browser-url-bar a:hover {
  color: var(--heading-color);
}
.port-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--primary-dim);
  border: 1px solid var(--badge-border);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}


.browser-dots {
  display: flex;
  gap: 6px;
}





.browser-url-bar {
  flex-grow: 1;
  background: var(--card-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.browser-url-bar .ssl-icon {
  color: var(--emerald);
  font-size: 14px;
}
.browser-url-bar a {
  color: var(--text-muted);
}
.browser-url-bar a:hover {
  color: var(--primary);
}

.port-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.port-header-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.port-badge {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.port-status-live {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.port-card h3 {
  font-size: 1.48rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.port-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.port-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.port-metric-item .p-metric-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--heading-color);
}
.port-metric-item .p-metric-lbl {
  font-size: 0.74rem;
  font-family: var(--font-sans);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.port-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.port-chip {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.port-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}
.port-actions .btn {
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 12px;
  font-size: 0.86rem;
}

/* ============================================================
   SECTION 04: ONEPAGE 2500 OFFER SHOWCASE
============================================================ */
.offer-showcase-box {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
}
.offer-showcase-box:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.offer-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 34px;
  gap: 24px;
  flex-wrap: wrap;
}

.offer-price-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: right;
}
.offer-price-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--heading-color);
  line-height: 1.05;
  margin: 4px 0;
  letter-spacing: -0.01em;
}
.offer-price-val span {
  color: var(--primary);
  font-size: 1.6rem;
}

.offer-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 36px;
}
.offer-meta-col .o-meta-lbl {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 4px;
}
.offer-meta-col .o-meta-val {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--heading-color);
}

.offer-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.offer-scope-item {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}
.offer-scope-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--card-bg-solid);
}

.offer-scope-num {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-scope-info h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 3px;
}
.offer-scope-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.offer-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 32px;
}

/* ============================================================
   SECTION 05: INTERACTIVE CALCULATOR
============================================================ */
.calc-card-outer {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--card-shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
}

.calc-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--heading-color);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-types-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.calc-type-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}
.calc-type-btn:hover {
  border-color: var(--primary);
  background: var(--card-bg-solid);
}
.calc-type-btn.active {
  background: var(--badge-bg);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}
.calc-type-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--heading-color);
}
.calc-type-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.calc-slider-wrap {
  margin-bottom: 28px;
  background: var(--panel-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-subtle);
}
.calc-slider-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}
.calc-slider-head span:last-child {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--primary);
}
.calc-range-input {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: var(--border-strong);
  border-radius: 4px;
  outline: none;
}
.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 12px var(--primary-glow);
  border: 2px solid #ffffff;
}

.calc-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.calc-mod-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  color: var(--text);
}
.calc-mod-checkbox:hover {
  border-color: var(--primary);
}
.calc-mod-checkbox.active-mod {
  background: var(--badge-bg);
  border-color: var(--badge-border);
}
.calc-mod-checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.calc-urgency-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-urg-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 0.88rem;
  transition: var(--transition);
  color: var(--text-muted);
}
.calc-urg-btn.active {
  background: var(--emerald-dim);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Calculator Result Panel */
.calc-summary-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.calc-price-box {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}
.calc-price-lbl {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 8px;
}
.calc-total-number {
  font-family: var(--font-heading);
  font-size: 2.9rem;
  font-weight: 900;
  color: var(--heading-color);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.calc-total-number span {
  color: var(--primary);
  font-size: 1.5rem;
}
.calc-eta-line {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}

.calc-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-grow: 1;
}
.calc-summary-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-summary-list li .material-symbols-outlined {
  font-size: 18px;
  color: var(--emerald);
}

.calc-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   SECTION 06: SPEED AUDIT SIMULATOR
============================================================ */
.audit-card {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--card-shadow);
}
.audit-input-bar {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 40px;
}
.audit-input {
  flex-grow: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
}
.audit-input:focus {
  border-color: var(--primary);
}

.audit-scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.audit-score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--emerald);
  border: 4px solid var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
  background: var(--panel-bg);
}
.audit-score-lbl {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================
   SECTION 07: BLOG & KNOWLEDGE BASE
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.blog-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.blog-tag {
  color: var(--primary);
  background: var(--badge-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.blog-time {
  color: var(--text-dim);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.blog-card-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

/* ============================================================
   SECTION 08: FAQ
============================================================ */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading-color);
  user-select: none;
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.faq-item.active .faq-answer {
  display: block;
}

/* ============================================================
   SECTION 09: CONTACT FORM & DETAILS
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--card-shadow);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}

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

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--footer-bg);
  padding: 70px 0 34px;
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-desc {
  margin: 16px 0 24px;
  max-width: 340px;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================================
   MODALS & TOASTS
============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  padding: 38px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close-btn:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card-bg-solid);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.92rem;
  z-index: 10000;
  transform: translateY(120px);
  opacity: 0;
  transition: var(--transition);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE QUERIES & MOBILE CONTAINER CONTAINMENT
============================================================ */
@media (max-width: 1180px) {
  .nav-links {
    display: none !important;
  }
  .nav-hamburger {
    display: inline-flex !important;
  }
  .tech-strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  /* Bento Grid Collapse */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 50px;
  }
  .bento-col-12,
  .bento-col-8,
  .bento-col-7,
  .bento-col-6,
  .bento-col-5,
  .bento-col-4 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 32px 0 18px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.5rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    font-weight: 800;
  }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 26px;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-stat-item {
    padding: 10px 12px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .compare-col {
    padding: 24px 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card {
    padding: 24px 20px;
  }
  .calc-card-outer {
    padding: 24px 18px;
  }
  .calc-types-row, .calc-modules-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .audit-scores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .blog-card {
    padding: 22px 18px;
  }
  .contact-form-card {
    padding: 24px 18px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .offer-showcase-box {
    padding: 24px 18px;
  }
  .offer-meta-grid, .offer-scope-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .offer-price-card {
    text-align: left;
    width: 100%;
  }
  .offer-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .tech-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bento-body {
    padding: 22px 18px;
  }
  .bento-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .bento-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .filter-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .filter-tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 6px;
    gap: 6px;
  }
  .filter-btn {
    width: 100%;
    border-radius: var(--radius-sm);
    justify-content: center;
  }
  .hero-portfolio h1 {
    font-size: clamp(1.85rem, 5.5vw, 2.6rem);
  }
  .hero-portfolio p.lead {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .port-actions {
    grid-template-columns: 1fr;
  }
  .port-metrics-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
}

@media (max-width: 600px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    font-size: 0.92rem;
    white-space: normal;
    text-align: center;
  }
  .showcase-deck-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .deck-project-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
  }
  .deck-tab {
    padding: 6px 3px;
    font-size: 0.68rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .showcase-card-body {
    padding: 18px 14px;
    min-height: auto;
    gap: 14px;
  }
  .showcase-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  .showcase-summary {
    font-size: 0.85rem;
    line-height: 1.55;
  }
  .showcase-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .showcase-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .showcase-cta-links {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .showcase-cta-links .btn-deck-arch,
  .showcase-cta-links .btn-deck-live {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  .showcase-deck-statusbar {
    padding: 8px 14px;
    font-size: 0.72rem;
  }
  /* CLI responsive */
  .cli-screen {
    padding: 14px;
    font-size: 0.74rem;
  }
  .cli-title {
    font-size: 0.72rem;
    word-break: break-all;
  }
  #cli-form {
    padding: 12px 14px !important;
  }
  .cli-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cli-input-row .btn {
    width: 100%;
    justify-content: center;
  }
  /* Benchmark responsive */
  .bench-card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }
  .bench-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .bench-stat-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.82rem;
  }
  /* Modals */
  .modal-box {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    max-width: calc(100vw - 24px);
  }
  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 44px 0 34px;
  }
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    line-height: 1.24;
    margin-bottom: 16px;
  }
  .hero-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.01em;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 18px;
  }
  .hero-stat-item {
    padding: 10px 8px;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .hero-stat-item .stat-num {
    font-size: 1.35rem;
    justify-content: center;
  }
  .hero-stat-item .stat-lbl {
    font-size: 0.68rem;
    margin-top: 2px;
  }
  .nav-cta-btn {
    display: none !important;
  }
  .tech-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tech-item {
    padding: 8px 6px;
    font-size: 0.74rem;
    gap: 5px;
  }
  .compare-col {
    padding: 18px 14px;
  }
  .service-card {
    padding: 18px 14px;
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .telemetry-item {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
  }
  .telemetry-val {
    font-size: 1.45rem;
  }
  .telemetry-lbl {
    font-size: 0.65rem;
  }
  .bento-body {
    padding: 18px 14px;
  }
  .bento-title {
    font-size: 1.25rem !important;
  }
  .bento-metrics {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 12px;
  }
  .calc-card-outer {
    padding: 16px 12px;
  }
  .calc-summary-panel {
    padding: 18px 14px;
  }
  .calc-price-amount {
    font-size: 1.95rem;
  }
  .offer-showcase-box {
    padding: 18px 14px;
  }
  .contact-form-card {
    padding: 18px 14px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

/* ============================================================
   PORTFOLIO & BENTO HUB COMPONENTS
============================================================ */
.hero-portfolio {
  padding: 85px 0 50px;
  position: relative;
}

.hero-portfolio-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-portfolio h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 22px;
  letter-spacing: -0.035em;
}

.hero-portfolio p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Telemetry HUD Cards */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 48px 0 20px;
}

.telemetry-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.telemetry-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.telemetry-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.telemetry-lbl {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-top: 8px;
  font-weight: 600;
}

/* Filter Bar */
.filter-wrapper {
  margin: 50px 0 35px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-full);
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
}

.filter-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
}
.filter-btn:hover {
  color: var(--heading-color);
}
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
  margin-bottom: 80px;
}

.bento-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}
.bento-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8  { grid-column: span 8; }
.bento-col-7  { grid-column: span 7; }
.bento-col-6  { grid-column: span 6; }
.bento-col-5  { grid-column: span 5; }
.bento-col-4  { grid-column: span 4; }

.bento-window-bar {
  padding: 14px 22px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.window-dots {
  display: flex;
  gap: 7px;
}





.window-url-bar {
  flex: 1;
  max-width: 420px;
  background: var(--card-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.window-url-bar span.lock-icon {
  font-size: 15px;
  color: var(--emerald);
}

.bento-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.bento-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bento-badge {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--emerald);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bento-title {
  font-size: 1.65rem;
  margin-bottom: 12px;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.bento-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}
.metric-box {
  text-align: center;
}
.metric-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--heading-color);
}
.metric-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-top: 4px;
}

.bento-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.bento-chip {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.bento-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.bento-actions .btn {
  flex: 1;
}

/* Modal Tabs & Simulator */
.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}
.modal-tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
}
.modal-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.arch-flow-box {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text);
  margin: 20px 0;
}

.preview-simulator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.viewport-switch {
  display: flex;
  gap: 7px;
}
.v-btn {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--card-bg-solid);
  transition: var(--transition);
}
.v-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.v-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.simulator-frame-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s ease;
  margin: 0 auto;
}
.simulator-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}


/* Hero Kicker (Clean, Non-AI) */
.hero-kicker {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 16px;
  display: inline-block;
}

/* Section Tag (Refined, Non-AI) */
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Contact Availability Box */
.contact-availability-box {
  padding: 18px 20px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.contact-avail-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}
.contact-avail-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer Guarantee Line */
.footer-status-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 8px;
}


/* ============================================================
   REFINED BESPOKE HEADER (CLEAN, ELEGANT, NON-AI)
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 10, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.site-header .container {
  max-width: 1320px;
  padding: 0 24px;
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #ffffff;
}

.logo-k {
  color: var(--primary);
}

.logo-studio {
  color: #ffffff;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: normal;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
  letter-spacing: normal;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

.nav-cta-btn {
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 91, 255, 0.35);
}

.nav-hamburger {
  display: none;
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--heading-color);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none !important;
  }
  .nav-hamburger {
    display: inline-flex !important;
  }
}


/* ============================================================
   AMBIENT SCROLL-DRIVEN CODE STREAM (PERMANENT & EXPANDING DOWNWARDS)
   Stała animacja kodu, bez chowania, rozwijająca się do dołu wraz ze skrolowaniem
============================================================ */
.scroll-code-rail {
  position: fixed;
  left: 0;
  top: 130px;
  width: 320px;
  z-index: 950;
  background: rgba(9, 11, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: 10px 20px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(30, 91, 255, 0.16);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transform: none !important; /* Stała na ekranie - nie chowa się w lewą krawędź */
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.scroll-code-rail:hover {
  box-shadow: 14px 24px 55px rgba(0, 0, 0, 0.85), 0 0 35px rgba(30, 91, 255, 0.24);
  border-color: rgba(30, 91, 255, 0.4);
}

.scroll-code-rail.is-active-typing {
  border-color: rgba(30, 91, 255, 0.55);
  box-shadow: 14px 24px 55px rgba(0, 0, 0, 0.85), 0 0 35px rgba(30, 91, 255, 0.3);
}

/* Boczny pasek dockowania ukryty - widget jest teraz na stałe otwarty */
.code-rail-dock-tab {
  display: none !important;
}

/* Obsługa ręcznego zminimalizowania */
.scroll-code-rail.is-minimized .code-rail-body,
.scroll-code-rail.is-minimized .code-rail-footer {
  display: none !important;
}

.scroll-code-rail.is-minimized {
  box-shadow: 6px 12px 30px rgba(0, 0, 0, 0.6);
}

/* Pulsująca dioda aktywności w nagłówku */
.code-rail-status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  flex-shrink: 0;
  animation: codeRailStatusPulse 2s infinite ease-in-out;
}

@keyframes codeRailStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Tablet & Mobile responsive docked widget */
@media (max-width: 1024px) {
  .scroll-code-rail {
    top: auto;
    bottom: 16px;
    left: 14px;
    width: auto;
    max-width: calc(100% - 28px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(30, 91, 255, 0.12);
    z-index: 990;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Kiedy zminimalizowany na mobile - dyskretny, kompaktowy pasek/pastylka */
  .scroll-code-rail.is-minimized {
    border-radius: var(--radius-full);
    width: auto;
    max-width: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(30, 91, 255, 0.1);
  }

  .scroll-code-rail.is-minimized .code-rail-header {
    padding: 7px 12px 7px 10px;
    border-bottom: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    gap: 10px;
  }

  .scroll-code-rail.is-minimized .code-rail-line-counter,
  .scroll-code-rail.is-minimized #code-rail-copy {
    display: none;
  }

  .scroll-code-rail.is-minimized .code-rail-filename {
    font-size: 0.72rem;
  }

  /* Kiedy rozwinięty przez użytkownika na mobile - kompaktowe okno */
  .scroll-code-rail:not(.is-minimized) {
    width: calc(100% - 28px);
    max-width: 330px;
    max-height: 52vh;
  }

  .scroll-code-rail:not(.is-minimized) .code-rail-body {
    max-height: 200px;
  }
}

/* Header */
.code-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.code-rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-rail-icon {
  font-size: 16px;
  color: var(--primary-light);
  transition: color 0.3s ease;
}

.code-rail-filename {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.code-rail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-rail-line-counter {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.code-rail-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.code-rail-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Body - Rozwija się płynnie do dołu wraz ze skrolowaniem */
.code-rail-body {
  display: flex;
  padding: 12px 14px;
  height: auto;
  min-height: 52px;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 0.73rem;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.3);
  transition: max-height 0.3s ease, background-color 0.3s ease;
}

.code-line-numbers {
  display: flex;
  flex-direction: column;
  padding-right: 10px;
  margin-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
  text-align: right;
  color: rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
  min-width: 16px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.code-rail-pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
  transition: color 0.3s ease;
}

.code-rail-caret {
  display: inline-block;
  width: 6px;
  height: 1.15em;
  background: var(--primary-light);
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 1px;
  transition: box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.3s ease;
}

.scroll-code-rail.is-active-typing .code-rail-caret {
  background: #60a5fa;
  box-shadow: 0 0 10px #3b82f6, 0 0 20px rgba(59, 130, 246, 0.6);
  opacity: 1 !important;
}

.scroll-code-rail:not(.is-active-typing) .code-rail-caret {
  animation: codeCaretBlink 0.9s infinite steps(2, start);
}

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

/* Syntax Highlighting */
.c-comment { color: #64748b; font-style: italic; transition: color 0.3s ease; }
.c-kw      { color: #60a5fa; font-weight: 600; transition: color 0.3s ease; }
.c-fn      { color: #fbbf24; font-weight: 500; transition: color 0.3s ease; }
.c-str     { color: #34d399; transition: color 0.3s ease; }
.c-num     { color: #f472b6; transition: color 0.3s ease; }
.c-prop    { color: #cbd5e1; transition: color 0.3s ease; }

/* Footer - Clean Status Bar */
.code-rail-footer {
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.code-rail-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.code-rail-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e5bff, #ff5500);
  transition: width 0.08s linear;
}

.code-rail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
}

.code-rail-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.code-rail-pct {
  color: var(--primary-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* ============================================================
   LIGHT THEME ADAPTATION FOR CODE STREAM RAIL (html.light)
   Elegancki, profesjonalny edytor kodu w jasnym motywie
============================================================ */
html.light .scroll-code-rail {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: #ded9ce;
  box-shadow: 10px 20px 45px rgba(15, 23, 42, 0.08), 0 0 25px rgba(30, 91, 255, 0.08);
}

html.light .scroll-code-rail:hover {
  box-shadow: 14px 24px 50px rgba(15, 23, 42, 0.12), 0 0 30px rgba(30, 91, 255, 0.15);
  border-color: rgba(30, 91, 255, 0.45);
}

html.light .scroll-code-rail.is-active-typing {
  border-color: #1e5bff;
  box-shadow: 14px 24px 50px rgba(15, 23, 42, 0.14), 0 0 30px rgba(30, 91, 255, 0.2);
}

html.light .scroll-code-rail.is-minimized {
  box-shadow: 6px 12px 24px rgba(15, 23, 42, 0.07);
}

html.light .code-rail-header {
  background: rgba(245, 243, 238, 0.88);
  border-bottom: 1px solid #e5e0d5;
}

html.light .code-rail-filename {
  color: #0f172a;
}

html.light .code-rail-icon {
  color: #1e5bff;
}

html.light .code-rail-line-counter {
  color: #64748b;
}

html.light .code-rail-btn {
  color: #64748b;
}

html.light .code-rail-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

html.light .code-rail-body {
  background: rgba(250, 249, 246, 0.95);
  scrollbar-color: rgba(0, 0, 0, 0.16) transparent;
}

html.light .code-line-numbers {
  color: #94a3b8;
  border-right: 1px solid #e5e0d5;
}

html.light .code-rail-pre {
  color: #0f172a;
}

html.light .code-rail-caret {
  background: #1e5bff;
}

html.light .scroll-code-rail.is-active-typing .code-rail-caret {
  background: #1e5bff;
  box-shadow: 0 0 8px rgba(30, 91, 255, 0.65);
}

/* Kolorowanie składni w trybie jasnym (kontrastowy styl VS Code / GitHub Light) */
html.light .c-comment { color: #64748b; font-style: italic; }
html.light .c-kw      { color: #0969da; font-weight: 600; }
html.light .c-fn      { color: #b45309; font-weight: 600; }
html.light .c-str     { color: #047857; font-weight: 500; }
html.light .c-num     { color: #c026d3; font-weight: 600; }
html.light .c-prop    { color: #334155; }

html.light .code-rail-footer {
  background: rgba(245, 243, 238, 0.88);
  border-top: 1px solid #e5e0d5;
}

html.light .code-rail-progress-bar {
  background: #e5e0d5;
}

html.light .code-rail-meta {
  color: #64748b;
}

html.light .code-rail-pill {
  color: #475569;
}

html.light .code-rail-pct {
  color: #1e5bff;
}

@media (max-width: 1024px) {
  html.light .scroll-code-rail {
    border-left: 1px solid #ded9ce;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 0 15px rgba(30, 91, 255, 0.08);
  }

  html.light .scroll-code-rail.is-minimized {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  }
}



/* ============================================================
   PORTFOLIO TECH HUB & BENCHMARK STYLES
============================================================ */

/* Hero Portfolio */
.hero-portfolio {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}
.hero-portfolio-content {
  max-width: 860px;
  margin: 0 auto;
}
.hero-portfolio h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--heading-color);
  line-height: 1.15;
  margin: 16px 0;
}
.hero-portfolio p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}
.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Featured Ribbon */
.featured-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(30, 91, 255, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
  z-index: 5;
}

/* Tech Chips in Bento */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-chip {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition);
}
.tech-chip:hover {
  border-color: var(--primary);
  color: var(--heading-color);
}

.metric-caption {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* Estimator Widget Inside Bento */
.est-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.est-opt-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: var(--transition);
}
.est-opt-btn:hover {
  border-color: var(--primary);
  color: var(--heading-color);
}
.est-opt-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
}

/* ============================================================
   DEVELOPER CLI TERMINAL CONSOLE
============================================================ */
.cli-section {
  padding: 80px 0;
  position: relative;
}

.cli-box {
  background: #080a12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(30, 91, 255, 0.1);
  overflow: hidden;
}

.cli-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0d101d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.cli-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cli-title .material-symbols-outlined {
  color: var(--primary-light);
}

.cli-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cli-quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.cli-quick-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.cli-screen {
  padding: 24px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #e2e8f0;
  background: #070910;
  scrollbar-width: thin;
}

.cli-line {
  margin-bottom: 6px;
  word-break: break-all;
  white-space: pre-wrap;
}
.cli-out { color: #94a3b8; }
.cli-prompt { color: var(--primary-light); font-weight: 700; margin-right: 8px; }
.cli-cmd { color: #ffffff; font-weight: 600; }
.cli-highlight { color: #34d399; font-weight: 600; }
.cli-accent { color: #fbbf24; font-weight: 600; }
.cli-warn { color: #f87171; }

.cli-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #ffffff;
  outline: none;
}
.cli-input::placeholder {
  color: #475569;
}

/* ============================================================
   SYSTEM BENCHMARK COMPARISON
============================================================ */
.benchmark-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .benchmark-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.bench-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.bench-card.legacy {
  border-color: rgba(239, 68, 68, 0.25);
}
.bench-card.modern {
  border-color: rgba(30, 91, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(30, 91, 255, 0.1);
}

.bench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.bench-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.bench-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bench-pill.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.bench-pill.good {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bench-stat-row {
  margin-bottom: 20px;
}
.bench-stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.bench-stat-label strong {
  font-weight: 700;
}

.bench-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bench-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}
.bench-bar-fill.red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.bench-bar-fill.green {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* ============================================================
   NATIVE CASE STUDY MODAL DIALOG
============================================================ */
dialog#case-modal {
  width: 90vw;
  max-width: 840px;
  max-height: 88vh;
  padding: 0;
  margin: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--modal-bg);
  color: var(--text);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
}
dialog#case-modal::backdrop {
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
}
.case-modal-inner {
  padding: 32px 36px;
  max-height: 88vh;
  overflow-y: auto;
}
.case-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}
.case-modal-close-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.case-modal-close-btn:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

@media (max-width: 600px) {
  dialog#case-modal {
    width: 95vw;
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }
  .case-modal-inner {
    padding: 20px 14px;
  }
  .case-modal-header h2 {
    font-size: 1.25rem !important;
  }
  .modal-tabs {
    flex-direction: column;
    gap: 6px;
  }
  .modal-tab-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.84rem;
    padding: 8px 12px;
  }
  .arch-flow-box {
    font-size: 0.68rem !important;
    padding: 12px 10px !important;
    overflow-x: auto;
  }
}

/* ============================================================
   ONEPAGE PROPOSAL SHEET & DOCUMENT LAYOUT
============================================================ */
.proposal-wrapper {
  padding: 40px 0 80px;
}
.proposal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.proposal-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.proposal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.proposal-back-link:hover {
  color: var(--primary);
}
.proposal-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.proposal-sheet {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.proposal-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.proposal-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
}
.proposal-title h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.proposal-subtitle {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
}
.proposal-price-box {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: right;
  min-width: 240px;
}
.proposal-price-lbl {
  font-size: 0.74rem;
  font-family: var(--font-sans);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.proposal-price-val {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin: 6px 0;
}
.proposal-price-val span {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.proposal-price-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.proposal-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 40px;
}
.proposal-meta-item .p-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.proposal-meta-item .p-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading-color);
}
.proposal-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  margin: 36px 0 20px;
  color: var(--heading-color);
}
.proposal-section-heading .material-symbols-outlined {
  color: var(--primary);
}
.proposal-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.proposal-scope-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.proposal-scope-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proposal-scope-content h4 {
  font-size: 0.96rem;
  margin-bottom: 4px;
  color: var(--heading-color);
}
.proposal-scope-content p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.proposal-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.proposal-tech-card {
  padding: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.proposal-tech-card .t-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--heading-color);
  margin-bottom: 8px;
}
.proposal-tech-card .t-head .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
}
.proposal-tech-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.proposal-proof-box {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.proposal-proof-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--heading-color);
}
.proposal-proof-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.proposal-proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.proposal-proof-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.proposal-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.proposal-step-card {
  padding: 18px 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.proposal-step-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.proposal-step-card h5 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--heading-color);
}
.proposal-step-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.proposal-terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.proposal-terms-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.proposal-terms-item .material-symbols-outlined {
  color: var(--emerald);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.proposal-terms-item strong {
  color: var(--heading-color);
}
.proposal-accept-card {
  background: linear-gradient(135deg, rgba(30, 91, 255, 0.12), rgba(16, 185, 129, 0.06));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.proposal-accept-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.proposal-accept-card p {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: 0.92rem;
}
.proposal-accept-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive proposal queries */
@media (max-width: 860px) {
  .proposal-header-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proposal-price-box {
    text-align: left;
    width: 100%;
    min-width: auto;
  }
  .proposal-meta-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .proposal-scope-grid {
    grid-template-columns: 1fr;
  }
  .proposal-tech-grid {
    grid-template-columns: 1fr;
  }
  .proposal-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .proposal-container {
    padding: 0 14px;
  }
  .proposal-sheet {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }
  .proposal-meta-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .proposal-timeline-grid {
    grid-template-columns: 1fr;
  }
  .proposal-accept-card {
    padding: 20px 14px;
  }
  .proposal-accept-actions {
    flex-direction: column;
    width: 100%;
  }
  .proposal-accept-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .proposal-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .proposal-quick-actions {
    width: 100%;
  }
  .proposal-quick-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
