/* Portal Wspólnoty Landing Page
   Design Direction: Bold, Modern Polish Architecture
   ============================================ */

/* ============================================
   Design Tokens
   ============================================ */
:root {
  /* Slate Scale */
  --slate-0: #f8fafc;
  --slate-1: #f1f5f9;
  --slate-2: #e2e8f0;
  --slate-3: #cbd5e1;
  --slate-4: #94a3b8;
  --slate-5: #64748b;
  --slate-6: #475569;
  --slate-7: #334155;
  --slate-8: #1e293b;
  --slate-9: #0f172a;

  /* Copper Scale */
  --copper-0: #fdf8f4;
  --copper-1: #f9ede3;
  --copper-2: #f2dac7;
  --copper-3: #e8c4a6;
  --copper-4: #d9a87c;
  --copper-5: #c2956e;
  --copper-6: #a67d5a;
  --copper-7: #8a6548;
  --copper-8: #6e4f38;
  --copper-9: #523a2a;

  /* Warm Grays */
  --warm-0: #faf9f7;
  --warm-1: #f5f4f2;
  --warm-2: #f1f0ed;

  /* Semantic */
  --color-bg: var(--warm-0);
  --color-surface: #ffffff;
  --color-text: var(--slate-9);
  --color-text-muted: var(--slate-5);
  --color-border: var(--slate-2);
  --color-accent: var(--copper-5);
  --color-primary: var(--slate-9);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family: var(--font-body); /* Default to body font */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Sizing */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --nav-height: 72px;

  /* Borders */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   Typography
   ============================================ */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em; /* Less tight for better word spacing */
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; }

.text-copper { color: var(--copper-5); }

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-5xl) 0;
}


/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--copper-5);
  color: #fff;
  border-color: var(--copper-5);
}

.btn-primary:hover {
  background: var(--copper-6);
  border-color: var(--copper-6);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--slate-9);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xs);
}

.nav-cta:hover {
  background: var(--slate-8);
}

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

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-9);
  transition: all 0.2s ease;
}

/* Mobile menu open state */
.nav-mobile-toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Mobile Menu (separate element for z-index)
   ============================================ */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height, 72px);
  left: 0;
  right: 0;
  bottom: 0;
  background: #faf9f7;
  padding: var(--space-xl);
  gap: var(--space-sm);
  z-index: 1000;
  overflow-y: auto;
}

.nav-mobile-menu.open {
  display: flex;
  animation: mobileMenuSlideDown 0.3s ease-out;
}

@keyframes mobileMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile-menu a {
  padding: var(--space-md) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-9);
  border-bottom: 1px solid var(--slate-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile-menu a:hover {
  color: var(--copper-6);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu .nav-cta {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  background: var(--slate-9);
  color: #fff !important;
  border-radius: var(--radius-xs);
  border-bottom: none;
}

.nav-mobile-menu .nav-cta:hover {
  background: var(--slate-8);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--slate-9);
  color: #fff;
  overflow: hidden;
  padding-top: var(--nav-height, 72px);
}

/* Architectural grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* Building skyline */
.hero-buildings {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  pointer-events: none;
}

.building {
  position: absolute;
  bottom: 0;
  background: var(--slate-8);
}

.b1 { left: 0; width: 100px; height: 45%; animation: rise 0.8s ease-out 0.1s both; }
.b2 { left: 90px; width: 60px; height: 55%; background: var(--copper-6); animation: rise 0.8s ease-out 0.2s both; }
.b3 { left: 140px; width: 80px; height: 35%; animation: rise 0.8s ease-out 0.15s both; }
.b4 { right: 45%; width: 120px; height: 50%; animation: rise 0.8s ease-out 0.25s both; }
.b5 { right: 25%; width: 70px; height: 60%; animation: rise 0.8s ease-out 0.3s both; }
.b6 { right: 10%; width: 100px; height: 40%; background: var(--copper-7); animation: rise 0.8s ease-out 0.35s both; }
.b7 { right: 0; width: 80px; height: 70%; animation: rise 0.8s ease-out 0.4s both; }

@keyframes rise {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Hero content layout */
.hero-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero-content {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.hero-title {
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero-cta .btn-primary {
  background: var(--copper-5);
  border-color: var(--copper-5);
}

.hero-cta .btn-primary:hover {
  background: var(--copper-4);
  border-color: var(--copper-4);
}

.hero-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Hero visual - product mockups */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-screenshot {
  background: var(--slate-8);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
}

.screenshot-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--slate-7);
}

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

.screenshot-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-5);
}

.screenshot-dots span:first-child { background: #ef4444; }
.screenshot-dots span:nth-child(2) { background: #f59e0b; }
.screenshot-dots span:nth-child(3) { background: #22c55e; }

.screenshot-url {
  font-size: 0.75rem;
  color: var(--slate-4);
}

.screenshot-content {
  display: flex;
  min-height: 280px;
}

.screenshot-sidebar {
  width: 50px;
  background: var(--slate-9);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-item {
  height: 32px;
  background: var(--slate-7);
  border-radius: var(--radius-xs);
}

.sidebar-item.active {
  background: var(--copper-5);
}

.screenshot-main {
  flex: 1;
  padding: var(--space-md);
  background: var(--warm-0);
}

.screenshot-card {
  background: #fff;
  border-radius: var(--radius-xs);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.card-header {
  height: 16px;
  width: 120px;
  background: var(--slate-2);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-md);
}

.card-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--slate-1);
}

.card-row:last-child { border-bottom: none; }

.card-badge {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.card-badge.urgent { background: #ef4444; }
.card-badge.high { background: #f59e0b; }
.card-badge.medium { background: var(--slate-4); }

.card-text {
  flex: 1;
  height: 12px;
  background: var(--slate-2);
  border-radius: var(--radius-xs);
}

.card-status {
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 600;
}

.card-status.new { background: var(--slate-2); color: var(--slate-6); }
.card-status.progress { background: var(--copper-2); color: var(--copper-7); }
.card-status.done { background: #dcfce7; color: #166534; }

/* Phone mockup */
.hero-phone {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 160px;
  background: var(--slate-9);
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--slate-7);
  animation: floatPhone 3s ease-in-out infinite;
}

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

.phone-notch {
  width: 60px;
  height: 20px;
  background: var(--slate-8);
  border-radius: 0 0 12px 12px;
  margin: 0 auto var(--space-sm);
}

.phone-content {
  background: var(--warm-0);
  border-radius: 16px;
  padding: var(--space-sm);
  min-height: 200px;
}

.phone-header {
  background: var(--slate-9);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.phone-card {
  background: #fff;
  border-radius: var(--radius-xs);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.phone-title {
  height: 10px;
  width: 80%;
  background: var(--slate-2);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-xs);
}

.phone-address {
  height: 8px;
  width: 60%;
  background: var(--slate-1);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-md);
}

.phone-buttons {
  display: flex;
  gap: var(--space-xs);
}

.phone-btn {
  flex: 1;
  padding: 6px;
  border-radius: var(--radius-xs);
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
}

.phone-btn.accept {
  background: var(--copper-5);
  color: #fff;
}

.phone-btn.reject {
  background: var(--slate-2);
  color: var(--slate-6);
}

/* ============================================
   Section Badges & Headers
   ============================================ */
.section-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--slate-1);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-6);
  margin-bottom: var(--space-md);
}

.section-badge.badge-copper {
  background: var(--copper-1);
  border-color: var(--copper-2);
  color: var(--copper-7);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto; /* Center the subtitle */
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   Problem Section
   ============================================ */
.problem {
  background: #fff;
}

.problem-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
}

.problem-card {
  padding: var(--space-xl);
  background: var(--warm-0);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.problem-card:hover {
  border-color: var(--copper-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: var(--slate-9);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.problem-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.problem-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.problem-quote {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--slate-9);
  color: #fff;
  border-radius: var(--radius-xs);
}

.problem-quote blockquote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.problem-quote cite {
  font-size: 0.95rem;
  color: var(--copper-4);
  font-style: normal;
}

/* ============================================
   Solution Section
   ============================================ */
.solution {
  background: var(--warm-0);
}

.solution-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.solution-feature {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: #fff;
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.solution-feature:hover {
  border-color: var(--copper-4);
  box-shadow: var(--shadow-md);
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--copper-4);
  line-height: 1;
  letter-spacing: -0.03em;
}

.feature-content h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots {
  background: #fff;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.screenshot-item {
  text-align: center;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, var(--slate-1) 0%, var(--slate-0) 100%);
  border: 2px dashed var(--slate-3);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--slate-4);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-xl);
  transition: all 0.2s ease;
}

.screenshot-placeholder:hover {
  border-color: var(--copper-3);
  background: linear-gradient(135deg, var(--copper-0) 0%, var(--warm-0) 100%);
}

.screenshot-placeholder svg {
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.screenshot-placeholder span {
  font-weight: 500;
}

.screenshot-caption {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-7);
}

/* For real screenshots - replace .screenshot-placeholder with .screenshot-image */
.screenshot-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.screenshot-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Comparison Section
   ============================================ */
.comparison {
  background: #fff;
  padding: var(--space-5xl) 0;
}

.comparison-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
}

.comparison-side {
  flex: 1;
  max-width: 400px;
}

.comparison-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.comparison-side.old .comparison-label {
  color: var(--slate-4);
}

.comparison-side.new .comparison-label {
  color: var(--copper-6);
}

/* Old way - scattered items */
.comparison-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  opacity: 0.6;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--slate-1);
  border: 1px dashed var(--slate-3);
  border-radius: var(--radius-xs);
  transform: rotate(-2deg);
  transition: all 0.2s ease;
}

.stack-item:nth-child(2) { transform: rotate(1deg); }
.stack-item:nth-child(3) { transform: rotate(-1deg); }
.stack-item:nth-child(4) { transform: rotate(2deg); }

.stack-item svg {
  width: 32px;
  height: 32px;
  color: var(--slate-4);
}

.stack-item span {
  font-size: 0.75rem;
  color: var(--slate-5);
  font-weight: 500;
}

/* Arrow */
.comparison-arrow {
  flex-shrink: 0;
}

.comparison-arrow svg {
  width: 48px;
  height: 48px;
  color: var(--copper-5);
}

/* New way - clean app */
.comparison-app {
  animation: fadeInUp 0.6s ease-out both;
}

.app-window {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-2);
}

.app-header {
  padding: var(--space-sm) var(--space-md);
  background: var(--slate-1);
  border-bottom: 1px solid var(--slate-2);
}

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

.app-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-dots span:first-child { background: #ef4444; }
.app-dots span:nth-child(2) { background: #f59e0b; }
.app-dots span:nth-child(3) { background: #22c55e; }

.app-content {
  padding: var(--space-md);
}

.app-search {
  height: 36px;
  background: var(--slate-1);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-md);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.app-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--warm-0);
  border-radius: var(--radius-xs);
  border: 1px solid var(--slate-2);
}

.item-priority {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.item-priority.urgent { background: #ef4444; }
.item-priority.high { background: #f59e0b; }
.item-priority.medium { background: var(--slate-4); }

.item-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
}

.item-status {
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
}

.item-status.in-progress {
  background: var(--copper-2);
  color: var(--copper-7);
}

.item-status.assigned {
  background: var(--slate-2);
  color: var(--slate-6);
}

.item-status.done {
  background: #dcfce7;
  color: #166534;
}

/* ============================================
   How It Works / Workflow
   ============================================ */
.how-it-works {
  background: var(--slate-9);
  color: #fff;
}

.how-it-works .section-badge {
  background: var(--slate-8);
  border-color: var(--slate-7);
  color: var(--slate-4);
}

.how-it-works .section-title {
  color: #fff;
}

.workflow {
  max-width: 700px;
  margin: 0 auto;
}

.workflow-step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.step-visual {
  position: relative;
  flex-shrink: 0;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--copper-5);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--slate-9);
  border: 2px solid var(--copper-5);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: #fff;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--slate-4);
  line-height: 1.6;
}

.workflow-connector {
  width: 2px;
  height: 48px;
  background: var(--slate-7);
  margin-left: 27px;
}

/* ============================================
   Apps Section
   ============================================ */
.apps {
  background: var(--warm-0);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.app-card {
  background: #fff;
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-xs);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.2s ease;
}

.app-card:hover {
  border-color: var(--copper-4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.app-card-logo {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.app-card-logo svg {
  width: 56px;
  height: 56px;
}

.app-card-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  padding: 0.25rem 0.75rem;
  background: var(--slate-1);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-6);
}

.app-card-badge.badge-soon {
  background: var(--copper-1);
  color: var(--copper-7);
}

.app-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.app-role {
  color: var(--copper-5);
  font-weight: 600;
}

.app-card > p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.app-features {
  border-top: 1px solid var(--slate-2);
  padding-top: var(--space-md);
}

.app-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
  color: var(--slate-6);
}

.app-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--copper-5);
  flex-shrink: 0;
}

/* ============================================
   Differentiator Section
   ============================================ */
.differentiator {
  background: #fff;
  border-top: 4px solid var(--copper-5);
}

.diff-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.diff-content h2 {
  margin-bottom: var(--space-md);
}

.diff-content > p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.diff-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: left;
}

.diff-point {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--warm-0);
  border-radius: var(--radius-xs);
}

.diff-check {
  width: 32px;
  height: 32px;
  background: var(--copper-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-check svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.diff-point span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--slate-9);
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-md);
}

.cta-content > p {
  font-size: 1.125rem;
  color: var(--slate-4);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cta-benefit svg {
  width: 24px;
  height: 24px;
  color: var(--copper-4);
  flex-shrink: 0;
}

.cta-benefit span {
  font-size: 0.95rem;
  color: var(--slate-3);
}

/* CTA Form */
.cta-form {
  background: #fff;
  padding: var(--space-2xl);
  border-radius: var(--radius-xs);
  color: var(--color-text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--slate-7);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 2px solid var(--slate-2);
  border-radius: var(--radius-xs);
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--slate-9);
}

.form-group input::placeholder {
  color: var(--slate-4);
}

.cta-form .btn-primary {
  background: var(--copper-5);
  border-color: var(--copper-5);
}

.cta-form .btn-primary:hover {
  background: var(--copper-6);
  border-color: var(--copper-6);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--slate-9);
  color: #fff;
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--slate-8);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--slate-4);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--space-4xl);
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-5);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  color: var(--slate-3);
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--copper-4);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--slate-8);
  font-size: 0.875rem;
  color: var(--slate-5);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a:hover {
  color: #fff;
}

/* ============================================
   Animations & Micro-interactions
   ============================================ */

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Button micro-interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn:focus-visible {
  outline: 3px solid var(--copper-3);
  outline-offset: 2px;
}

/* Nav link hover underline */
.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper-5);
  transition: width 0.2s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

/* Card lift effect with shadow */
.problem-card,
.solution-feature,
.app-card,
.diff-point {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Icon hover spin/bounce */
.problem-icon,
.app-card-logo,
.step-icon {
  transition: transform 0.3s ease;
}

.problem-card:hover .problem-icon,
.app-card:hover .app-card-logo {
  transform: scale(1.08);
}

/* Feature number pulse on hover */
.feature-number {
  transition: transform 0.2s ease, color 0.2s ease;
}

.solution-feature:hover .feature-number {
  transform: scale(1.1);
  color: var(--copper-5);
}

/* Workflow step icon glow */
.step-icon {
  box-shadow: 0 0 0 0 rgba(194, 149, 110, 0);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.workflow-step:hover .step-icon {
  box-shadow: 0 0 0 8px rgba(194, 149, 110, 0.15);
  transform: scale(1.05);
}

/* Comparison arrow pulse */
.comparison-arrow svg {
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.7; }
}

/* Stack items wobble on hover */
.stack-item {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.comparison-side.old:hover .stack-item {
  opacity: 0.8;
}

.comparison-side.old:hover .stack-item:nth-child(1) { transform: rotate(-4deg) translateY(-2px); }
.comparison-side.old:hover .stack-item:nth-child(2) { transform: rotate(3deg) translateY(-2px); }
.comparison-side.old:hover .stack-item:nth-child(3) { transform: rotate(-2deg) translateY(-2px); }
.comparison-side.old:hover .stack-item:nth-child(4) { transform: rotate(4deg) translateY(-2px); }

/* App window hover lift */
.app-window {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-side.new:hover .app-window {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Check icon bounce */
.diff-check {
  transition: transform 0.2s ease;
}

.diff-point:hover .diff-check {
  transform: scale(1.15);
}

/* CTA benefit icons */
.cta-benefit svg {
  transition: transform 0.2s ease;
}

.cta-benefit:hover svg {
  transform: scale(1.1);
}

/* Form input focus glow (matching login page) */
.form-group input:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(194, 149, 110, 0.15);
}

/* Hero visual hover effects */
.hero-screenshot {
  transition: transform 0.4s ease;
}

.hero-visual:hover .hero-screenshot {
  transform: translateY(-4px);
}

.hero-visual:hover .hero-phone {
  animation-play-state: paused;
  transform: translateY(-12px);
}

/* Building skyline parallax-like effect on scroll (via JS) */
.building {
  transition: transform 0.1s ease-out;
}

/* Logo hover */
.nav-logo {
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

/* Footer link underline */
.footer-col a {
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper-4);
  transition: width 0.2s ease;
}

.footer-col a:hover::after {
  width: 100%;
}

/* App badge hover */
.app-card-badge {
  transition: background 0.2s ease, color 0.2s ease;
}

.app-card:hover .app-card-badge {
  background: var(--copper-2);
  color: var(--copper-7);
}

.app-card:hover .app-card-badge.badge-soon {
  background: var(--copper-3);
}

/* Screenshot card row hover */
.card-row {
  transition: background 0.15s ease;
}

.card-row:hover {
  background: var(--slate-0);
}

/* App item in comparison hover */
.app-item {
  transition: transform 0.15s ease, background 0.15s ease;
}

.app-item:hover {
  transform: translateX(4px);
  background: #fff;
}

/* Section badge hover */
.section-badge {
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

/* Smooth scroll indicator */
@keyframes scrollIndicator {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* Quote text emphasis */
.problem-quote blockquote {
  position: relative;
}

.problem-quote blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 4rem;
  color: var(--copper-5);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* CTA form card shadow */
.cta-form {
  transition: box-shadow 0.3s ease;
}

.cta-form:hover {
  box-shadow: var(--shadow-xl);
}

/* Form input focus state (matching login page) */
.form-group.input-focused label {
  color: var(--copper-6);
}

.form-group.input-focused input,
.form-group.input-focused select {
  border-color: var(--slate-9);
  box-shadow: 0 0 0 3px rgba(194, 149, 110, 0.15);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1s ease-out 1.5s both;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hero-scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hero-scroll-indicator svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

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

/* Screenshot placeholder for future images */
.screenshot-placeholder {
  background: linear-gradient(135deg, var(--slate-2) 0%, var(--slate-1) 100%);
  border: 2px dashed var(--slate-3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--slate-4);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-xl);
}

.screenshot-placeholder svg {
  display: block;
  margin: 0 auto var(--space-sm);
  opacity: 0.5;
}

/* Brand continuity with login - matching styles */
.nav-logo span,
.footer-logo span {
  font-family: var(--font-family);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Active states for touch devices */
@media (hover: none) {
  .btn:active {
    transform: scale(0.98);
  }

  .problem-card:active,
  .solution-feature:active,
  .app-card:active {
    transform: scale(0.99);
  }
}

/* ============================================
   Responsive - Mobile First Approach
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hide desktop hero visual, show mobile version */
  .hero-visual {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
    margin-top: var(--space-lg);
  }

  .solution-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .cta-content {
    text-align: center;
  }

  .cta-benefits {
    align-items: center;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
    --nav-height: 64px;
  }

  /* Typography adjustments for mobile readability */
  body {
    font-size: 1.0625rem; /* 17px - slightly larger for mobile */
    line-height: 1.65;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Navigation */
  .nav-container {
    height: var(--nav-height);
  }

  .nav-logo {
    font-size: 1.125rem;
  }

  .nav-logo svg {
    width: 28px;
    height: 28px;
  }

  .nav-links--desktop {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
    padding: 12px;
    margin-right: -12px;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto; /* Let content determine height on mobile */
    padding-top: var(--nav-height);
    padding-bottom: var(--space-xl);
  }

  .hero-container {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
  }

  .hero-visual-mobile {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .hero-scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: var(--space-sm);
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }

  .hero-title {
    margin-bottom: var(--space-md);
  }

  .hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
  }

  .hero-cta .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .hero-note {
    font-size: 0.8rem;
    margin-top: var(--space-md);
  }

  /* Buildings - simplified for mobile */
  .hero-buildings {
    height: 40%;
    opacity: 0.4;
  }

  .b1, .b2, .b3, .b4, .b5, .b6, .b7 {
    animation-duration: 0.5s;
  }

  /* Sections */
  section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Problem section */
  .problem-header {
    margin-bottom: var(--space-2xl);
  }

  .problem-grid {
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
  }

  .problem-card {
    padding: var(--space-lg);
  }

  .problem-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-md);
  }

  .problem-icon svg {
    width: 22px;
    height: 22px;
  }

  .problem-card h3 {
    font-size: 1.0625rem;
  }

  .problem-card p {
    font-size: 0.9375rem;
  }

  .problem-quote {
    padding: var(--space-xl);
    margin: 0 calc(var(--container-padding) * -1);
    border-radius: 0;
  }

  .problem-quote blockquote {
    font-size: 1.25rem;
  }

  .problem-quote blockquote::before {
    top: -10px;
    left: 0;
    font-size: 2.5rem;
  }

  /* Solution section */
  .solution-feature {
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .feature-number {
    font-size: 2rem;
    min-width: 48px;
  }

  .feature-content h3 {
    font-size: 1.0625rem;
  }

  .feature-content p {
    font-size: 0.9375rem;
  }

  /* Screenshots section */
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .screenshot-placeholder {
    min-height: 180px;
    padding: var(--space-lg);
  }

  /* Comparison section */
  .comparison {
    padding: var(--space-3xl) 0;
  }

  .comparison-visual {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .comparison-arrow {
    transform: rotate(90deg);
    padding: var(--space-sm) 0;
  }

  .comparison-arrow svg {
    width: 36px;
    height: 36px;
  }

  .comparison-side {
    max-width: 100%;
    width: 100%;
  }

  .comparison-label {
    font-size: 0.75rem;
    margin-bottom: var(--space-md);
  }

  .comparison-stack {
    gap: var(--space-sm);
  }

  .stack-item {
    padding: var(--space-md);
  }

  .stack-item svg {
    width: 28px;
    height: 28px;
  }

  .stack-item span {
    font-size: 0.7rem;
  }

  .app-content {
    padding: var(--space-sm);
  }

  .app-item {
    padding: var(--space-xs) var(--space-sm);
  }

  .item-text {
    font-size: 0.8rem;
  }

  .item-status {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* Workflow section */
  .workflow {
    padding: 0 var(--space-sm);
  }

  .workflow-step {
    gap: var(--space-md);
  }

  .step-icon {
    width: 48px;
    height: 48px;
  }

  .step-icon svg {
    width: 24px;
    height: 24px;
  }

  .step-number {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    top: -6px;
    right: -6px;
  }

  .step-content h3 {
    font-size: 1.125rem;
  }

  .step-content p {
    font-size: 0.9375rem;
  }

  .workflow-connector {
    height: 32px;
    margin-left: 23px;
  }

  /* Apps section */
  .app-card {
    padding: var(--space-lg);
  }

  .app-card-logo {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
  }

  .app-card-logo svg {
    width: 48px;
    height: 48px;
  }

  .app-card h3 {
    font-size: 1.0625rem;
  }

  .app-card > p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
  }

  .app-features li {
    font-size: 0.875rem;
  }

  /* Differentiator section */
  .diff-content > p {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
  }

  .diff-points {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .diff-point {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .diff-check {
    width: 28px;
    height: 28px;
  }

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

  .diff-point span {
    font-size: 0.9375rem;
  }

  /* CTA section */
  .cta-section {
    padding-bottom: calc(var(--space-3xl) + 80px); /* Space for sticky button */
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content > p {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
  }

  .cta-benefit {
    gap: var(--space-sm);
  }

  .cta-benefit svg {
    width: 20px;
    height: 20px;
  }

  .cta-benefit span {
    font-size: 0.9375rem;
  }

  .cta-form {
    padding: var(--space-xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group label {
    font-size: 0.9375rem;
  }

  .form-group input,
  .form-group select {
    padding: 1rem;
    font-size: 1rem;
    /* Prevent iOS zoom on focus */
    font-size: 16px;
  }

  .cta-form .btn-lg {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    padding-bottom: calc(var(--space-lg) + 80px); /* Space for sticky button */
  }

  .footer-main {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand p {
    font-size: 0.9375rem;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    font-size: 0.75rem;
  }

  .footer-col a {
    font-size: 0.875rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    padding-top: var(--space-lg);
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .footer-legal {
    gap: var(--space-md);
  }

  .footer-legal a {
    font-size: 0.8rem;
  }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .workflow-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .workflow-connector {
    width: 2px;
    height: 24px;
    margin: var(--space-sm) auto;
  }

  .step-content {
    text-align: center;
  }

  .comparison-stack {
    grid-template-columns: 1fr 1fr;
  }

  .stack-item {
    padding: var(--space-sm);
  }

  /* Ensure touch targets are at least 48px */
  .btn,
  .nav-cta,
  input,
  select,
  .form-group input,
  .form-group select {
    min-height: 48px;
  }
}

/* ============================================
   Mobile Hero Visual - Dashboard Mockup
   ============================================ */
.hero-visual-mobile {
  display: none;
  width: 100%;
  max-width: 360px;
  margin: var(--space-xl) auto var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-dashboard-mobile {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
}

.hero-dashboard-mobile .dashboard-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--slate-1);
  border-bottom: 1px solid var(--slate-2);
}

.hero-dashboard-mobile .dashboard-dots {
  display: flex;
  gap: 5px;
}

.hero-dashboard-mobile .dashboard-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-dashboard-mobile .dashboard-dots span:first-child { background: #ef4444; }
.hero-dashboard-mobile .dashboard-dots span:nth-child(2) { background: #f59e0b; }
.hero-dashboard-mobile .dashboard-dots span:nth-child(3) { background: #22c55e; }

.hero-dashboard-mobile .dashboard-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-6);
}

.hero-dashboard-mobile .dashboard-content {
  padding: var(--space-sm);
  background: var(--warm-0);
}

.hero-dashboard-mobile .dashboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: #fff;
  border-radius: var(--radius-xs);
  border: 1px solid var(--slate-2);
  margin-bottom: var(--space-xs);
}

.hero-dashboard-mobile .dashboard-item:last-child {
  margin-bottom: 0;
}

.hero-dashboard-mobile .item-priority {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-dashboard-mobile .item-priority.urgent { background: #ef4444; }
.hero-dashboard-mobile .item-priority.high { background: #f59e0b; }
.hero-dashboard-mobile .item-priority.medium { background: var(--slate-4); }

.hero-dashboard-mobile .item-info {
  flex: 1;
  min-width: 0;
}

.hero-dashboard-mobile .item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-dashboard-mobile .item-address {
  font-size: 0.6875rem;
  color: var(--slate-5);
}

.hero-dashboard-mobile .item-status {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-dashboard-mobile .item-status.in-progress {
  background: var(--copper-2);
  color: var(--copper-7);
}

.hero-dashboard-mobile .item-status.assigned {
  background: var(--slate-2);
  color: var(--slate-6);
}

.hero-dashboard-mobile .item-status.done {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 1024px) {
  .hero-visual-mobile {
    display: block;
  }
}

/* ============================================
   Sticky Mobile CTA
   ============================================ */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  padding: var(--space-sm) var(--container-padding);
  border-top: 1px solid var(--slate-2);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta-mobile.visible {
  transform: translateY(0);
}

.sticky-cta-mobile .btn {
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: block;
  }
}

/* Hide sticky CTA when near the contact form */
.sticky-cta-mobile.hidden {
  transform: translateY(100%);
}

/* ============================================
   Touch Device Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .problem-card:hover,
  .solution-feature:hover,
  .app-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Active states instead */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .problem-card:active,
  .solution-feature:active,
  .app-card:active {
    transform: scale(0.99);
    border-color: var(--copper-4);
  }

  /* Remove hover-dependent animations */
  .comparison-arrow svg {
    animation: none;
  }

  /* Ensure no hover underlines persist */
  .nav-links a:not(.nav-cta)::after,
  .footer-col a::after {
    display: none;
  }
}

/* ============================================
   Safe Area Insets (for notched phones)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky-cta-mobile {
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
  }

  @media (max-width: 768px) {
    .footer {
      padding-bottom: calc(var(--space-lg) + 80px + env(safe-area-inset-bottom));
    }

    .cta-section {
      padding-bottom: calc(var(--space-3xl) + 80px + env(safe-area-inset-bottom));
    }
  }
}

/* ============================================
   Landscape Mobile Optimizations
   ============================================ */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: var(--space-xl);
  }

  .hero-container {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .hero-buildings {
    height: 50%;
  }

  .hero-visual-mobile {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  section {
    padding: var(--space-2xl) 0;
  }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .building {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-phone {
    animation: none;
  }

  .comparison-arrow svg {
    animation: none;
  }

  .hero-scroll-indicator svg {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
