/* ==========================================================================
   Rack Maps — Landing Page Styles
   ========================================================================== */

/* ----- Custom Properties ----- */
:root {
  --color-bg:          #0f172a;
  --color-bg-elevated: #1e293b;
  --color-bg-card:     #162032;
  --color-surface:     #1e293b;
  --color-border:      #334155;
  --color-border-faint:#1e293b;
  --color-text:        #f1f5f9;
  --color-text-muted:  #94a3b8;
  --color-text-faint:  #64748b;
  --color-accent:      #3B82F6;
  --color-accent-hover:#2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.25);
  --color-accent-soft: rgba(59, 130, 246, 0.08);
  --color-success:     #22c55e;
  --color-error:       #ef4444;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--color-accent-glow);

  --transition:  200ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

ul {
  list-style: none;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.75em;
  font-family: var(--font-family);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
}

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

/* ----- Animations ----- */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 150ms; }
.animate-delay-2 { transition-delay: 300ms; }
.animate-delay-3 { transition-delay: 450ms; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(15, 23, 42, 0.95);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.nav-logo {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}

.nav-cta-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

/* Grid background pattern */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}

/* Accent glow blob */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.hero-title-accent {
  background: linear-gradient(135deg, var(--color-accent), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 480px;
}

.hero-subtitle strong {
  color: var(--color-text);
  font-weight: 700;
}

.hero-audience {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

/* ----- Form (shared hero + bottom CTA) ----- */
.form-group {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.form-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: var(--color-text-faint);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-width: 160px;
}

.form-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.form-btn:active {
  transform: translateY(0);
}

.form-btn.loading .form-btn-text { opacity: 0; }
.form-btn.loading .form-btn-loading { opacity: 1; }

.form-btn-loading {
  position: absolute;
  opacity: 0;
  transition: opacity var(--transition);
}

.spinner {
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
}

.form-hint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}

.form-success {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-success);
}

.form-error {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--color-error);
}

/* ----- Hero Image Placeholder ----- */
.hero-image {
  position: relative;
}

.hero-image-placeholder,
.feature-image-placeholder,
.render-card-image {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image-placeholder {
  aspect-ratio: 16 / 11;
}

.feature-image-placeholder {
  aspect-ratio: 16 / 10;
}

/* Shared base for illustrated feature scenes */
.feature-scene {
  min-height: 180px;
}

/* Placeholder chrome bar (fake browser/window header) */
.placeholder-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--color-border-faint);
}

.placeholder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-faint);
  opacity: 0.4;
}

.placeholder-dot:first-child { background: #ef4444; opacity: 0.6; }
.placeholder-dot:nth-child(2) { background: #eab308; opacity: 0.6; }
.placeholder-dot:nth-child(3) { background: #22c55e; opacity: 0.6; }

/* Placeholder label overlay */
.placeholder-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  text-align: center;
}

/* Hero placeholder: editor skeleton */
.placeholder-body {
  display: flex;
  gap: 8px;
  padding: 12px;
  height: calc(100% - 36px);
  align-items: stretch;
}

.placeholder-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 18%;
  min-width: 0;
}

.placeholder-sidebar-item {
  height: 22%;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-faint);
}

.placeholder-sidebar-item.short {
  height: 12%;
}

.placeholder-rack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-faint);
}

.placeholder-rack-unit {
  flex: 1;
  border-radius: 3px;
  border: 1px dashed var(--color-border);
  transition: background var(--transition);
}

.placeholder-rack-unit.filled {
  background: var(--color-surface);
  border-style: solid;
}

.placeholder-rack-unit.filled.accent {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.placeholder-inspector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 22%;
  min-width: 0;
}

.placeholder-inspector-line {
  height: 10px;
  background: var(--color-surface);
  border-radius: 4px;
}

.placeholder-inspector-line.wide {
  height: 16px;
}

.placeholder-inspector-line.short {
  width: 60%;
  height: 10px;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4), transparent);
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--color-text), var(--color-text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-faint);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* ==========================================================================
   SECTION HEADERS (shared)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   PAIN POINTS / WHY SWITCH
   ========================================================================== */
.pain-points {
  padding: 100px 0;
}

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

.pain-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-slow);
}

.pain-card:hover {
  border-color: var(--color-text-faint);
}

.pain-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pain-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 8px;
  flex-shrink: 0;
}

.pain-icon svg {
  width: 100%;
  height: 100%;
}

.pain-icon-red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.pain-icon-green {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.pain-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

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

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pain-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: #ef4444;
  border-radius: 50%;
  opacity: 0.6;
}

/* Solution row */
.solution-row {
  margin-top: 8px;
}

.solution-card {
  padding: 36px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

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

.solution-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.solution-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-check svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   FEATURE SHOWCASE
   ========================================================================== */
.features {
  padding: 100px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--color-accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 7.5l2 2 5-5' stroke='%233B82F6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.feature-image {
  position: relative;
}

/* ----- Feature Scene: Drag & Drop ----- */
.drag-drop-scene {
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.scene-library {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-lib-item {
  width: 72px;
  height: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.scene-lib-item.dragging {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  animation: float 2s ease-in-out infinite;
}

.scene-arrow {
  width: 48px;
  color: var(--color-text-faint);
  opacity: 0.5;
}

.scene-arrow svg {
  width: 100%;
}

.scene-rack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.scene-rack-unit {
  width: 100px;
  height: 22px;
  border: 1px dashed var(--color-border);
  border-radius: 3px;
}

.scene-rack-unit.filled {
  background: var(--color-surface);
  border-style: solid;
}

.scene-rack-unit.highlight {
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid var(--color-accent);
  box-shadow: inset 0 0 8px var(--color-accent-glow);
}

/* ----- Feature Scene: Multi-View ----- */
.multi-view-scene {
  display: flex;
  gap: 10px;
  padding: 20px;
  justify-content: center;
  align-items: flex-start;
}

.scene-view-card {
  flex: 1;
  max-width: 120px;
  text-align: center;
}

.scene-view-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 6px;
}

.scene-mini-rack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.scene-mini-unit {
  height: 18px;
  border: 1px dashed var(--color-border);
  border-radius: 2px;
}

.scene-mini-unit.with-ports {
  background: var(--color-surface);
  border-style: solid;
  position: relative;
}

.scene-mini-unit.with-ports::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 4px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0px,
    var(--color-accent) 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 1px;
  opacity: 0.6;
}

.scene-mini-unit.with-ports.rear::after {
  background: repeating-linear-gradient(
    90deg,
    var(--color-text-faint) 0px,
    var(--color-text-faint) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.4;
}

.scene-side-view {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 40px;
  margin: 0 auto;
}

.scene-side-unit {
  height: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

.scene-side-unit.empty {
  background: transparent;
  border-style: dashed;
}

/* ----- Feature Scene: Topology ----- */
.topology-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 0;
}

.topo-tier {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.topo-node {
  padding: 6px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.topo-node.wan  { border-color: #ef4444; color: #fca5a5; background: rgba(239, 68, 68, 0.1); }
.topo-node.gw   { border-color: #f59e0b; color: #fcd34d; background: rgba(245, 158, 11, 0.1); }
.topo-node.sw   { border-color: var(--color-accent); color: #93c5fd; background: var(--color-accent-soft); }

.topo-lines {
  width: 200px;
  height: 30px;
  color: var(--color-text-faint);
  opacity: 0.4;
}

.topo-lines svg {
  width: 100%;
  height: 100%;
}

/* ----- Feature Scene: Cables ----- */
.cable-scene {
  display: flex;
  align-items: stretch;
  padding: 16px;
  gap: 0;
}

.cable-rack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex: 1;
}

.cable-rack-unit {
  flex: 1;
  min-height: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

.cable-svg {
  width: 80px;
  flex-shrink: 0;
  align-self: stretch;
}

/* ==========================================================================
   RENDER MODES
   ========================================================================== */
.render-modes {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.3), transparent);
}

.render-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.render-card {
  text-align: center;
  padding: 0 0 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  transition: border-color var(--transition-slow), transform var(--transition-slow);
}

.render-card:hover {
  border-color: var(--color-text-faint);
  transform: translateY(-4px);
}

.render-card.featured {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.render-card.featured:hover {
  border-color: var(--color-accent);
}

.render-card-image {
  position: relative;
  padding: 24px 20px 40px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-border-faint);
  background: var(--color-bg);
}

.render-rack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 140px;
}

.render-unit {
  height: 24px;
  border-radius: 3px;
}

/* Standard */
.standard-rack .render-unit {
  border: 1px solid var(--color-border);
}

/* Presentation */
.presentation-rack {
  border-color: #475569;
  background: linear-gradient(180deg, rgba(71,85,105,0.1), rgba(30,41,59,0.3));
}

.render-unit.presentation {
  background: linear-gradient(180deg, color-mix(in srgb, var(--base) 100%, white 20%), var(--base), color-mix(in srgb, var(--base) 100%, black 20%));
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* Blueprint */
.blueprint-rack {
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}

.render-unit.blueprint {
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
}

.render-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 20px 20px 8px;
}

.render-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: 0 20px;
}

/* ==========================================================================
   MORE FEATURES GRID
   ========================================================================== */
.more-features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-feature {
  padding: 28px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-slow), transform var(--transition-slow), background var(--transition-slow);
}

.grid-feature:hover {
  border-color: var(--color-text-faint);
  transform: translateY(-2px);
  background: var(--color-bg-elevated);
}

.grid-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  padding: 8px;
}

.grid-feature-icon svg {
  width: 100%;
  height: 100%;
}

.grid-feature-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.grid-feature-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BOTTOM CTA
   ========================================================================== */
.cta-bottom {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.cta-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-form .form-group {
  max-width: 440px;
  margin: 0 auto;
}

.cta-form .form-hint,
.cta-form .form-success,
.cta-form .form-error {
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  color: var(--color-text-faint);
}

.footer-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-audience {
    text-align: center;
  }

  .form-group {
    max-width: 100%;
    justify-content: center;
  }

  .hero-form .form-group {
    max-width: 480px;
    margin: 0 auto;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-text {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
  }

  .feature-list {
    align-items: center;
  }

  .feature-image {
    max-width: 560px;
    margin: 0 auto;
  }

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

  .render-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

/* Mobile large */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .stat-item {
    padding: 0;
  }

  .pain-points {
    padding: 72px 0;
  }

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

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

  .features {
    padding: 72px 0;
  }

  .feature-row {
    margin-bottom: 72px;
  }

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

  .render-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .render-modes,
  .more-features {
    padding: 72px 0;
  }

  .cta-bottom {
    padding: 72px 0;
  }

  .form-group {
    flex-direction: column;
  }

  .form-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Feature scenes: remove aspect-ratio and use explicit min-height */
  .feature-image-placeholder {
    aspect-ratio: auto;
  }

  .feature-scene {
    min-height: 280px;
  }

  /* Move placeholder label inside flow instead of overlapping content */
  .feature-image-placeholder .placeholder-label {
    position: static;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
  }

  /* Multi-view scene: larger cards that fill the space */
  .multi-view-scene {
    gap: 16px;
    padding: 24px 20px;
    align-items: stretch;
    justify-content: space-around;
  }

  .scene-view-card {
    flex: 1;
    max-width: none;
    display: flex;
    flex-direction: column;
  }

  .scene-mini-rack {
    flex: 1;
    gap: 6px;
    padding: 10px;
  }

  .scene-mini-unit {
    flex: 1;
    min-height: 32px;
  }

  .scene-side-view {
    flex: 1;
    width: auto;
    min-width: 50px;
    gap: 6px;
    padding: 10px;
  }

  .scene-side-unit {
    flex: 1;
    min-height: 32px;
  }

  .scene-view-label {
    font-size: 0.75rem;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  /* Cable scene: much taller rack and wider cables */
  .cable-scene {
    padding: 20px;
    min-height: 280px;
  }

  .cable-rack {
    gap: 8px;
    padding: 12px;
    flex: 1;
  }

  .cable-rack-unit {
    min-height: 40px;
    flex: 1;
  }

  .cable-svg {
    width: 120px;
  }

  /* Drag & drop scene */
  .drag-drop-scene {
    padding: 24px 20px;
  }

  .scene-lib-item {
    width: 90px;
    height: 36px;
  }

  .scene-rack {
    padding: 10px;
    gap: 6px;
  }

  .scene-rack-unit {
    width: 120px;
    height: 32px;
  }

  /* Topology scene */
  .topology-scene {
    padding: 28px 20px;
  }

  .topo-node {
    padding: 10px 24px;
    font-size: 0.8125rem;
  }

  .topo-lines {
    height: 40px;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .grid-feature {
    padding: 20px;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  /* Allow render modes heading to wrap on small screens */
  .section-title[style*="white-space"] {
    white-space: normal !important;
  }
}
