/* Parcelie Marketing Website — Corporate-Grade Redesign */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #00F5FF;
  --accent-rgb: 0, 245, 255;
  --dark-bg: #030712;
  --dark-surface: rgba(15, 23, 42, 0.65);
  --dark-surface-hover: rgba(30, 41, 59, 0.7);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --beta: #8B5CF6;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --header-h: 80px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-header: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --in-oklch: ;
}

@supports (linear-gradient(in oklch, white, black)) {
  :root {
    --in-oklch: in oklch;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark-bg);
}

body {
  font-family: var(--font);
  color: var(--text-secondary);
  background: var(--dark-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Background Grid Overlay & Ambient Lights */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2000px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #fff 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.bg-grid-fixed {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #fff 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  height: 100vh;
}
  z-index: 0;
}
.glow-orb-1 { top: 10%; left: -10%; }
.glow-orb-2 { top: 40%; right: -10%; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%); }
.glow-orb-3 { bottom: 10%; left: 20%; background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, transparent 70%); }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
}

.gradient-text {
  background: linear-gradient(135deg var(--in-oklch), var(--text-primary) 30%, rgba(248, 250, 252, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text-glow {
  background: linear-gradient(90deg var(--in-oklch), #00F5FF 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section {
  padding: 120px 0;
}
.section-sm {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}
.section-header p {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg var(--in-oklch), var(--primary) 0%, #1D4ED8 100%);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), 0 0 12px rgba(0, 245, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline {
  background: var(--dark-surface);
  color: var(--text-primary);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 245, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 245, 255, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.15);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFF 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover {
  color: var(--accent);
}
.nav-mobile .btn {
  margin-top: 24px;
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-content .badge {
  margin-bottom: 24px;
}
.hero-content h1 {
  margin-bottom: 24px;
}
.hero-content .lead {
  margin-bottom: 40px;
  max-width: 580px;
}

/* Mockups Layout & styling */
.mockup-wrap {
  position: relative;
  z-index: 2;
}

.mockup-backdrop {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.command-center {
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.cc-header span {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

.cc-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cc-live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  box-shadow: 0 0 8px var(--green);
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.cc-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  min-height: 300px;
}

.cc-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  background: #0B0F19;
}

.cc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.cc-metric {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.cc-metric strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: var(--font-header);
}
.cc-metric span {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 4px;
}

.cc-drivers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-driver {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  gap: 8px;
}

.cc-driver-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.72rem;
}

.cc-status {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
}
.status-route { background: rgba(37, 99, 235, 0.15); color: #60A5FA; border: 1px solid rgba(37, 99, 235, 0.3); }
.status-scan { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-done { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }

.cc-map {
  position: relative;
  background: #0d121f;
  overflow: hidden;
}
.cc-map svg {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.cc-scan-toast {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cc-scan-icon {
  width: 36px;
  height: 36px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.cc-scan-toast strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.72rem;
}
.cc-scan-toast span {
  font-size: 0.625rem;
  color: var(--text-secondary);
}

.phone-mockup {
  position: absolute;
  bottom: -32px;
  left: -48px;
  width: 160px;
  background: #020617;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.phone-screen {
  background: #0f172a;
  border-radius: 28px;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-notch {
  height: 24px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch span {
  width: 50px;
  height: 5px;
  background: #1e293b;
  border-radius: 10px;
}

.phone-app-header {
  padding: 12px;
  background: var(--primary);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-header);
}

.phone-stops {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.6rem;
  color: var(--text-primary);
}
.phone-stop-num {
  width: 20px;
  height: 20px;
  background: rgba(0, 245, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Trust Bar */
.trust-bar {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  text-align: center;
}

.trust-bar .eyebrow {
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 8vw, 88px);
  flex-wrap: wrap;
}

.trust-logos span {
  font-family: var(--font-header);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  transition: var(--transition);
}
.trust-logos span:hover {
  color: var(--text-secondary);
}

/* Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--dark-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(0, 245, 255, 0.25);
  box-shadow: 0 12px 40px -10px rgba(0, 245, 255, 0.15);
  transform: translateY(-4px) scale(1.01);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}
.card:hover .card-icon {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.card h3 {
  margin-bottom: 16px;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Platform Preview Section */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.preview-card {
  background: var(--dark-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.preview-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.preview-svg-wrap {
  width: 100%;
  background: #0b0f19;
  border-bottom: 1px solid var(--border);
  padding: 16px;
}
.preview-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.preview-card figcaption {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-header);
  background: rgba(15, 23, 42, 0.2);
}

.preview-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 36px;
}
.preview-note code {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

/* Beta Benefits */
.beta-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.beta-benefit {
  background: var(--dark-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 5px solid var(--beta);
  transition: var(--transition);
}
.beta-benefit:hover {
  transform: translateY(-2px);
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}
.beta-benefit h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.beta-benefit p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.expectations-list {
  background: var(--dark-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.expectations-list li {
  padding: 16px 0 16px 36px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-primary);
}
.expectations-list li:last-child {
  border-bottom: none;
}
.expectations-list li::before {
  content: '→';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(29, 78, 216, 0.15) 100%);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  text-align: center;
  padding: 96px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
  filter: blur(50px);
}
.cta-band h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 800;
}
.cta-band p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-group {
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Split Layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-card {
  background: var(--dark-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 {
  margin-bottom: 16px;
}
.contact-card p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-primary);
}
.contact-detail:first-of-type {
  border-top: none;
}

.cal-embed-wrap {
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 700px;
  box-shadow: var(--shadow-lg);
}
.cal-embed-wrap iframe {
  width: 100%;
  height: 700px;
  border: 0;
}

.cal-embed-inline {
  min-height: 680px;
  width: 100%;
}

.contact-layout {
  max-width: 1000px;
  margin: 0 auto 48px;
}

.contact-email-row {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-email-row .contact-card {
  text-align: center;
}

.cal-fallback {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 20px;
}
.cal-fallback a {
  color: var(--accent);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 120px;
  position: relative;
  z-index: 1;
}
.legal-content h1 {
  margin-bottom: 12px;
}
.legal-content .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
  display: block;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  font-family: var(--font-header);
}
.legal-content p, .legal-content li {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-content ul {
  padding-left: 28px;
  margin-bottom: 24px;
}

/* Footer Section */
.site-footer {
  background: #020617;
  color: var(--text-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

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

.footer-brand .logo {
  font-size: 1.75rem;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.6;
}
.footer-tagline {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Utils */
.bg-white { background: #0b0f19; }
.bg-navy { background: #030712; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid, .split, .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .hero-content {
    order: 1;
    text-align: center;
  }
  .hero-content .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content .btn-group {
    justify-content: center;
  }
  .mockup-wrap {
    order: 2;
    max-width: 600px;
    margin: 0 auto;
  }
  .phone-mockup {
    left: -20px;
    bottom: -20px;
    width: 130px;
  }
  .cc-body {
    grid-template-columns: 1fr;
  }
  .cc-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cc-map {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .container {
    padding: 0 24px;
  }

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

  /* Header mobile */
  .nav-desktop,
  .header-cta .btn:not(.nav-mobile-cta) {
    display: none;
  }
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  .nav-toggle span {
    background-color: var(--text-primary) !important;
    flex-shrink: 0;
  }
  .logo {
    font-size: 1.45rem;
  }

  /* Hero Mobile */
  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
  }
  .hero-grid {
    gap: 48px;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    min-height: 48px; /* Touch target accessibility */
  }
  .btn-ghost {
    padding-left: 0;
    padding-right: 0;
  }

  .mockup-backdrop {
    padding: 12px;
    border-radius: var(--radius);
  }
  .phone-mockup {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 24px auto 0;
    width: 140px;
  }

  .cc-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cc-metric strong {
    font-size: 1.15rem;
  }
  .cc-driver {
    padding: 8px 10px;
  }
  
  /* Trust logos Mobile */
  .trust-bar {
    padding: 40px 0;
  }
  .trust-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .trust-logos span {
    font-size: 1.25rem;
  }

  /* Cards & grids */
  .card {
    padding: 32px 24px;
  }
  .card-grid,
  .preview-grid,
  .beta-benefits,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .expectations-list {
    padding: 24px 20px;
  }

  /* CTA Mobile */
  .cta-band {
    padding: 64px 24px;
    border-radius: var(--radius);
  }
  .cta-band p {
    font-size: 1.05rem;
  }
  .cta-band .btn-group {
    align-items: stretch;
  }

  /* Contact page Mobile */
  .cal-embed-wrap,
  .cal-embed-inline {
    min-height: 550px;
  }
  .cal-embed-wrap iframe {
    height: 550px;
  }
  .contact-card {
    padding: 32px 24px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 60px 0 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
  .trust-logos {
    grid-template-columns: 1fr;
  }
  .trust-logos span {
    font-size: 1.15rem;
  }
  .cc-header span {
    font-size: 0.72rem;
  }
}

/* Mobile Mockup Styles */
.mobile-mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.mobile-phone-frame {
  width: 280px;
  height: 560px;
  background: #030712;
  border-radius: 40px;
  border: 4px solid #1f2937;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 0 10px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-phone-notch {
  width: 120px;
  height: 24px;
  background: #030712;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 10;
}

.mobile-phone-speaker {
  width: 40px;
  height: 4px;
  background: #374151;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
}

.mobile-phone-screen {
  flex: 1;
  margin: 10px;
  border-radius: 32px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.mobile-placeholder-content {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-placeholder-content .pulse-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: pulseGlow 2s infinite ease-in-out;
}

.mobile-placeholder-content .pulse-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.mobile-placeholder-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--font-header);
}

.mobile-placeholder-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.mobile-placeholder-content .loading-bar {
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.mobile-placeholder-content .loading-bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 2px;
  animation: loadingSlide 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(139, 92, 246, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Screenshot Showcase Tabs */
.screenshot-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cc-live::before {
    animation: none;
  }
  .cc-scan-toast {
    animation: none;
  }
}
