/* ============================================================
   NOTIHUB — Landing Page Design System
   ------------------------------------------------------------
   The Inter webfont is loaded from <head> (preconnect + <link>)
   rather than @import here, which would serialise the request
   behind this stylesheet and delay first paint.
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg-base:        #080810;
  --bg-surface:     #0e0e1a;
  --bg-card:        #12121f;
  --bg-card-hover:  #181828;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.15);

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
  --grad-text:    linear-gradient(135deg, #a5b4fc 0%, #f9a8d4 50%, #fcd34d 100%);
  --grad-glow:    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99,102,241,0.25) 0%, transparent 70%);

  --accent-blue:   #6366f1;
  --accent-pink:   #ec4899;
  --accent-amber:  #f59e0b;
  --accent-cyan:   #22d3ee;

  --text-primary:   #f0f0ff;
  --text-secondary: #8888aa;
  --text-muted:     #55556a;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur:   blur(20px);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Keyboard users need to see where they are; mouse users never see this. */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-primary);
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  color: #a5f3fc;
  background: rgba(0,0,0,0.3);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Ambient glow background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; height: 100vh;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: 0;
}

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

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  padding: 6px 14px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 0 24px;
}

.nav.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* The app icon artwork sits on a white tile, exactly as macOS renders it —
   rounding it here keeps it reading as an app icon instead of a white square. */
.nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 22%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-links a:hover { color: var(--text-primary); background: var(--glass-bg); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(99,102,241,0.45);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.07);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--accent-blue);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--accent-pink);
  top: 50px; right: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--accent-amber);
  bottom: 50px; left: 40%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  /* Inherited body line-height (1.6) inflates this text's line box well past
     its glyphs; align-items:center then centers that oversized box, not the
     visible letters, so the dot reads as sitting above the text. */
  line-height: 1;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: var(--glass-blur);
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 22%;
  margin-bottom: 24px;
  animation: logo-float 6s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 26px rgba(99,102,241,0.35);
}

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

.hero-title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-actions .btn { font-size: 15px; padding: 12px 24px; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Hero Overlapping Stacked Screenshots ── */
.hero-stack-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 380px;
}

.hero-stack-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hero-stack-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Back card: App Settings */
.card-back {
  width: 68%;
  top: 15px;
  right: 0;
  z-index: 1;
  opacity: 0.7;
  transform: rotate(6deg);
  animation: float-back 7s ease-in-out infinite;
}

/* Mid card: Add Services */
.card-mid {
  width: 72%;
  bottom: 15px;
  left: 0;
  z-index: 2;
  opacity: 0.85;
  transform: rotate(-5deg);
  animation: float-mid 8s ease-in-out infinite -2s;
}

/* Front card: Main Web App */
.card-front {
  width: 80%;
  top: 50%;
  left: 50%;
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-1deg);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(99, 102, 241, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: float-front 6s ease-in-out infinite -1s;
}

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

@keyframes float-mid {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-3.5deg) translateY(6px); }
}

@keyframes float-front {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg) translateY(0); }
  50%      { transform: translate(-50%, -50%) rotate(0.5deg) translateY(-8px); }
}

/* Interactive hover effect: fan cards out slightly */
.hero-stack-container:hover .card-back {
  opacity: 0.95;
  transform: rotate(9deg) translate(15px, -15px);
}

.hero-stack-container:hover .card-mid {
  opacity: 0.95;
  transform: rotate(-8deg) translate(-15px, 15px);
}

.hero-stack-container:hover .card-front {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-stack-container {
    height: 320px;
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  /* Leave room for the fanned-out cards' rotation, which otherwise gets
     clipped against the hero's overflow:hidden edge. */
  .hero-stack-container {
    height: 250px;
    max-width: 86%;
  }
}


/* ── Section Common ── */
section { position: relative; z-index: 1; }

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

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Features ── */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
  /* Purely decorative, but as an absolutely-positioned, z-index:auto layer it
     paints after (on top of) the card's static in-flow content in the CSS2.1
     stacking order — without this it silently eats clicks on anything below it. */
  pointer-events: none;
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(99,102,241,0.1);
}

.feature-card:hover::before,
.feature-card:focus-visible::before { opacity: 0.04; }

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Feature cards are text-only by design. They used to hold a hover-revealed
   thumbnail, but these screenshots are of a 1100pt-wide app window: at the
   ~200px a 4-column card gives them, the app's own 13px UI text renders at
   about 2px. No amount of object-fit tuning makes that readable, so the
   screenshots moved to .modes and the gallery, where they get the ~850px of
   width they actually need. */

/* ── Modes Spotlight ── */
.modes {
  padding: 100px 0;
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.mode-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mode-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.mode-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.mode-text--center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 34px;
}
.mode-text--center .mode-title { justify-content: center; }
.mode-text--center .mode-desc { margin-bottom: 0; }

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

.mode-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.mode-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.mode-shot img {
  width: 100%;
  height: auto;          /* beats the width/height attributes' implied height */
  display: block;
  border-radius: var(--radius-md);
}

/* width, not justify-self:center — centering makes the grid item shrink-to-fit,
   and a shrink-to-fit parent gives the width:100% image no definite width to
   resolve against, collapsing the whole thing to zero. */
.mode-shot--tall {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}

/* Full container width — below roughly 850px this window's UI text stops
   being readable, which is the whole reason this section exists. */
.mode-shot--wide {
  width: 100%;
  max-width: 900px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
}

/* ── Screenshots Gallery ── */
.gallery {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.04) 50%, transparent 100%);
}

.gallery-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.carousel-track-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(99,102,241,0.12);
  position: relative;
}

/* No painted window chrome here: every screenshot is a real macOS window
   capture and already carries its own title bar and traffic lights. */

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 480px;
  background: var(--bg-surface);
}

/* left top, not center top: cropping the sides evenly would slice the traffic
   lights and the settings gear off the real window chrome. */
.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left top;
}

/* The menu bar panel is a 420pt-wide portrait window — cropping it to the
   landscape slot would show a sliver, so it is fitted whole instead. */
.carousel-slide--tall img {
  object-fit: contain;
  object-position: center top;
  padding: 18px 0 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,0.13) 0%, transparent 70%);
}

.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 24px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

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

.carousel-dot {
  width: 6px; height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent-blue);
  width: 20px;
  border-radius: 3px;
}

/* ── Services ── */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.service-pill:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.service-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.tbl-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  vertical-align: -4px;
  margin-right: 8px;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.service-status {
  font-size: 11px;
  color: var(--text-muted);
}

/* Services table — five columns don't fit a phone, so the wrapper scrolls
   horizontally instead of clipping the last columns off. */
.services-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.services-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.services-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.services-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.services-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.check { color: #22c55e; font-size: 16px; }
.custom-row td { color: var(--text-muted); font-style: italic; }

/* ── Install ── */
.install {
  padding: 100px 0;
}

.install-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  align-items: stretch;
}

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  min-width: 0; /* CRITICAL: prevents grid item from expanding when child has long text */
}

.install-card.featured {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, var(--bg-card) 100%);
}

.install-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -1px; right: 20px;
  padding: 4px 12px;
  background: var(--grad-primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

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

.install-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.install-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.install-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.install-or {
  margin: 16px 0 8px;
  font-size: 12px;
}

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

.install-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.install-note strong { color: var(--text-secondary); }

/* Each command is its own .code-line block. The old version relied on
   white-space:pre-wrap over indented markup, so the HTML source's own
   indentation was rendered as leading spaces on every line. */
.code-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  /* Fira Code turns "--cask" into a single long dash. A command line has to be
     copyable by eye, so ligatures are off here. */
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'clig' 0, 'calt' 0;
  font-size: 12px;
  color: #a5f3fc;
  line-height: 1.6;
  position: relative;
  max-width: 100%;
}

.code-line {
  display: block;
  overflow-wrap: anywhere;   /* long URLs wrap instead of widening the card */
}

/* Room for the Copy button so it never lands on top of the first command. */
.code-line:first-child { padding-right: 58px; }

.code-block .copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.code-block .copy-btn:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text-primary);
}

.code-block .copy-btn.copied {
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  padding: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0.05;
  /* Absolutely-positioned + z-index:auto paints after the banner's static
     title/desc/buttons in stacking order, so without this the Download and
     Star buttons underneath were visually fine but completely unclickable —
     every click landed on this decorative tint instead. */
  pointer-events: none;
}

.cta-banner-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-banner-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

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

.cta-banner-actions .btn { font-size: 15px; padding: 14px 28px; }

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.footer-brand img { width: 24px; height: 24px; object-fit: cover; border-radius: 22%; }
.footer-brand strong { color: var(--text-primary); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--text-primary); background: var(--glass-bg); }

.footer-links .sep {
  color: var(--border-hover);
  font-size: 12px;
}

.footer-right {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .hero-title { font-size: 36px; letter-spacing: -1.2px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .install-cards { grid-template-columns: 1fr; }
  .nav-mobile-toggle { display: flex; }
  .carousel-slide { height: 380px; }

  /* Stack the menu bar row; the portrait shot goes above its copy rather than
     shrinking into a column too narrow to read. */
  .mode-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }
  .mode-row .mode-text { order: 2; }
  .mode-row .mode-shot { order: 1; }
  .mode-title { font-size: 21px; }

  /* Collapsed drop-down menu (was injected from script.js at runtime, which
     meant a flash of the desktop nav before the stylesheet existed). */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(8,8,16,0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 10px 12px; font-size: 15px; }
  .nav-cta { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 30px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-table { font-size: 12px; }
  .services-table th, .services-table td { padding: 10px 12px; }
  .cta-banner { padding: 36px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section-title { font-size: 26px; }
  /* Too narrow to crop a 1100pt-wide window and still show anything useful —
     fit the whole thing instead. */
  .carousel-slide { height: 270px; }
  .carousel-slide img {
    object-fit: contain;
    object-position: center top;
  }
  .carousel-caption { padding: 26px 16px 14px; font-size: 12px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .feature-card:hover,
  .install-card:hover,
  .service-pill:hover { transform: none; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
