:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --green-500: #22c55e;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: var(--gray-900);
  line-height: 1.6;
}

/* Navigation */
.nav {
  position: fixed;
  max-width: 1100px;
  margin: 0 auto;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 8px 8px 8px 16px;
}

.nav-container {
  max-width: none;
  margin: 0;
  padding: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--gray-900);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--gray-900);
}

.footer .logo-icon {
  color: var(--purple-600)
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.beta-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  background: var(--purple-100);
  color: var(--purple-600);
  border-radius: 4px;
  margin-left: 5px;
}

.feature-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

/* Hamburger button - hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -4px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  width: calc(100% - 32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-link {
  display: block;
  text-align: center;
  color: var(--gray-700);
  text-decoration: none;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-link:hover {
  background: var(--gray-100);
}

.mobile-menu-cta {
  width: 100%;
  justify-content: center;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(147, 51, 234, 0.12), 0 4px 12px rgba(147, 51, 234, 0.16);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-600) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.24), 0 2px 8px rgba(147, 51, 234, 0.16);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

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

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Hero Section */
.hero {
  padding: 160px 24px 140px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  height: 1600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.badge-dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: 80px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--gray-900);
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 21px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 820px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-cta {
  margin-bottom: 72px;
}

.cta-note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Browser Window Preview */
.hero-image {
  max-width: 1000px;
  margin: 0 auto;
}

.browser-window {
  background: white;
  border-radius: 12px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.12),
              0 8px 24px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.browser-header {
  height: 40px;
  background: linear-gradient(180deg, #f9fafb 0%, #f4f4f5 100%);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.browser-url {
  flex: 1;
  text-align: left;
  font-size: 12px;
  color: var(--gray-500);
  background: white;
  padding: 4px 12px;
  border-radius: 6px;
  max-width: 300px;
}

.browser-content {
  background: var(--gray-50);
}

.hero-screenshot {
  width: 100%;
  display: block;
}

/* Dashboard Preview */
.dashboard-preview {
  display: flex;
  gap: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  height: 360px;
}

.sidebar-preview {
  width: 200px;
  background: var(--gray-50);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  height: 32px;
  background: var(--gray-200);
  border-radius: 6px;
  opacity: 0.6;
}

.sidebar-item.active {
  background: var(--purple-600);
  opacity: 1;
}

.content-preview {
  flex: 1;
  padding: 20px;
}

.header-preview {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-title {
  width: 200px;
  height: 24px;
  background: var(--gray-200);
  border-radius: 4px;
}

.header-actions {
  width: 100px;
  height: 32px;
  background: var(--purple-600);
  border-radius: 6px;
}

.table-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.row-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.row-status.queue {
  background: var(--gray-300);
}

.row-status.ready {
  background: var(--purple-600);
}

.row-status.shipped {
  background: var(--green-500);
}

.row-content {
  flex: 1;
  height: 16px;
  background: var(--gray-200);
  border-radius: 3px;
}

/* Product Showcase Section */
/* Stacked showcase cards */
.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.showcase-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--gray-50);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.showcase-card.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.showcase-card.reverse .showcase-card-content {
  order: 2;
}

.showcase-card.reverse .showcase-card-image {
  order: 1;
}

.showcase-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.showcase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-card-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0 14px;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.showcase-card-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
}

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

.section-header h2 {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section-header p {
  font-size: 19px;
  color: var(--gray-600);
  font-weight: 400;
  line-height: 1.6;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.lang-btn:hover {
  color: var(--gray-700);
}

.lang-btn.active {
  color: var(--gray-900);
  font-weight: 600;
}

.lang-sep {
  font-size: 12px;
  color: var(--gray-300);
  user-select: none;
}

.lang-switcher-mobile {
  justify-content: center;
  padding: 8px 0 4px;
  border-top: 1px solid var(--gray-100);
  margin-top: 4px;
}

/* Testimonials */
.testimonials {
  padding: 80px 24px;
  background: #ffffff;
}

.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-headline {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.4;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
  font-style: normal;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  object-fit: cover;
}

.testimonial-cm-badge {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 3px;
}

.testimonial-author > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-meta {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
}

@media (max-width: 700px) {
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}

/* Supported Countries & Carriers */
.supported {
  padding: 120px 24px;
  background: var(--gray-50);
}

.supported-container {
  max-width: 900px;
  margin: 0 auto;
}

.carriers-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.carrier-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.carrier-card.active {
  opacity: 1;
}

.carrier-card.active:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.carrier-card.coming-soon {
  opacity: 1;
}

.carrier-logo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.carrier-logo img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carrier-card.coming-soon .carrier-logo img {
  filter: grayscale(100%);
  opacity: 0.25;
}

.carrier-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gray-200);
  color: var(--gray-500);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.supported-footer {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: white;
}

.supported-footer p {
  font-size: 16px;
  color: var(--gray-600);
}

.supported-footer a {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.supported-footer a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

/* How It Works */
.how-it-works {
  padding: 120px 24px;
  background: white;
}

.how-it-works-container {
  max-width: 1100px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: row;
  gap: 46px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 310px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.25);
  margin-bottom: 24px;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
  letter-spacing: -0.015em;
}

.step-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Comparison Section */
.comparison {
  padding: 120px 24px;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.comparison::before {
  content: '';
  position: absolute;
  top: -0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.comparison-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.comparison-table {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
  box-shadow: var(--shadow-xl);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.comparison-header .comparison-cell {
  padding: 20px 32px;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-header .comparison-cell:first-child {
  border-right: 1px solid var(--gray-200);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}

.comparison-row:hover {
  background: var(--gray-50);
}

.comparison-row:last-of-type {
  border-bottom: none;
}

.comparison-row .comparison-cell:first-child {
  border-right: 1px solid var(--gray-100);
}

.comparison-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.comparison-footer .comparison-cell {
  padding: 24px 32px;
}

.comparison-footer .comparison-cell:first-child {
  border-right: 1px solid var(--gray-100);
}

.section-header.comparison-h2 {
  max-width: 600px;
}

.comparison-cell {
  display: flex;
  align-items: center;
  padding: 24px 32px;
}

.comparison-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-label.manual {
  color: var(--gray-500);
}

.comparison-label.cardsync {
  color: var(--purple-600);
}

.comparison-value {
  font-size: 15px;
  color: var(--gray-600);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.comparison-value.manual-process {
  color: var(--gray-500);
}

.comparison-value.automated {
  color: var(--gray-700);
}

.check-icon-inline {
  width: 18px;
  height: 18px;
  color: var(--purple-600);
  flex-shrink: 0;
  margin-top: 3px;
}

.x-icon-inline {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.time-estimate {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

.calculator-input-inline {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.calculator-input-inline label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calculator-input-inline input {
  width: 120px;
  padding: 10px 14px;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: white;
  color: var(--gray-900);
  text-align: center;
  transition: all 0.2s ease;
}

.calculator-input-inline input:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.total-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.total-time strong {
  font-size: 18px;
  font-weight: 600;
}

.total-time.manual strong {
  color: var(--gray-500);
}

.total-time.automated strong {
  color: var(--purple-600);
}

.time-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

.daily-calc {
  font-size: 13px;
  color: var(--gray-400);
}

.comparison-savings-row {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(147, 51, 234, 0.08) 100%);
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.savings-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.savings-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.savings-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.savings-value {
  font-size: 36px;
  font-weight: 600;
  color: var(--purple-600);
}

.comparison-cta {
  text-align: center;
  margin-top: 48px;
}

.comparison-subtitle {
  font-size: 19px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.comparison-subtitle strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Waitlist Section */
.waitlist {
  padding: 120px 24px;
  background: var(--gray-50);
}

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

.waitlist-content {
  background: white;
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
  color: var(--gray-900);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.08);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.waitlist-form button[type="submit"] {
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 14px;
  margin-top: -8px;
  min-height: 20px;
}

.form-note.success {
  color: var(--green-500);
}

.form-note.error {
  color: var(--red-500);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* CTA Section */
.cta {
  padding: 120px 24px;
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
  text-align: center;
  color: white;
}

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

.cta h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta .btn-primary {
  background: white;
  color: var(--purple-700);
}

.cta .btn-primary:hover {
  background: var(--gray-100);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta .cta-note {
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.faq {
  padding: 120px 24px;
  background: white;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gray-300);
}

.faq-item.active {
  border-color: var(--purple-500);
  background: var(--purple-50);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s ease;
  padding: 24px 28px;
}

.faq-question:hover {
  color: var(--purple-700);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--purple-600);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  padding: 0 28px 24px 28px;
}

.faq-answer a {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 48px 24px 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-left .logo {
  color: white;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--gray-400);
  font-size: 14px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

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

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 14px;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.gdpr-badge,
.eu-hosted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  border: 1px solid var(--gray-700);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.gdpr-badge svg,
.eu-hosted-badge svg {
  color: var(--gray-400);
}

.footer-beta-note {
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 12px;
}

/* Waitlist Modal */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.2s ease;
  padding: 0;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  display: flex;
  gap: 40px;
}

.modal-info {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}

.modal-header {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.modal-intro {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 0;
}

#modal-location-state {
  flex-direction: column;
}

.modal-location-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.modal-location-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: center;
  justify-items: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--gray-50, #f9fafb);
  border: 1.5px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  color: inherit;
}

.modal-location-card:hover {
  border-color: var(--purple-600, #9333ea);
  background: var(--purple-50, #faf5ff);
}

.location-flag {
  font-size: 32px;
  line-height: 1;
}

.modal-location-card strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900, #111827);
  display: block;
}

.location-card-note {
  font-size: 12px;
  color: var(--gray-500, #6b7280);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1.2;
  min-width: 0;
}

.modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.modal-form .form-group input {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
  color: var(--gray-900);
  font-family: inherit;
}

.modal-form .form-group input:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.08);
}

.modal-form .form-group input.error {
  border-color: #ef4444;
}

.modal-form .form-group input.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-error {
  font-size: 13px;
  color: #ef4444;
  min-height: 0;
  line-height: 1.4;
}

.modal-legal {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

.modal-legal a {
  color: var(--gray-500);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.modal-legal a:hover {
  color: var(--gray-700);
}

/* Custom country dropdown */
.country-select {
  position: relative;
}

.country-select-trigger {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  background: white;
  color: var(--gray-900);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  text-align: left;
}

.country-select-trigger:hover {
  border-color: var(--gray-400);
}

.country-select-trigger.error {
  border-color: #ef4444;
}

.country-select.open .country-select-trigger {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.08);
}

.country-chevron {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.country-select.open .country-chevron {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: none;
}

.country-select.open .country-dropdown {
  display: block;
}

.country-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  outline: none;
  border-radius: 8px 8px 0 0;
}

.country-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
  margin: 0;
}

.country-list li {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.country-list li:hover,
.country-list li.highlighted {
  background: var(--purple-50);
  color: var(--purple-700);
}

.country-list li.selected {
  font-weight: 600;
  color: var(--purple-600);
}

/* Modal success state */
.modal-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.modal-success.active {
  display: block;
}

.modal-body.hidden {
  display: none;
}

.success-checkmark {
  margin-bottom: 20px;
}

.success-checkmark svg {
  width: 56px;
  height: 56px;
}

.modal-success .modal-header {
  margin-bottom: 12px;
}

.modal-success .modal-intro {
  margin-bottom: 0;
}

/* Legal Pages */
.legal-page {
  padding: 140px 24px 80px;
  background: white;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--gray-500);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-page p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.legal-page li {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--purple-600);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 24px;
  font-size: 15px;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--gray-200);
  padding: 12px 16px;
  text-align: left;
}

.legal-page th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-800);
}

.legal-page td {
  color: var(--gray-700);
}

/* Responsive */
@media (max-width: 1024px) {
  .showcase-card-content {
    padding: 24px;
  }

  .showcase-card-content h3 {
    font-size: 20px;
  }

  .showcase-card-content p {
    font-size: 15px;
  }

  .steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .step {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 24px 100px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .section-header h2 {
    font-size: 40px;
  }

  .showcase-card {
    grid-template-columns: 1fr;
  }

  .showcase-card.reverse {
    grid-template-columns: 1fr;
  }

  .showcase-card.reverse .showcase-card-content {
    order: 1;
  }

  .showcase-card.reverse .showcase-card-image {
    order: 2;
  }

  .showcase-card-content {
    padding: 20px;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

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

  .footer-right {
    align-items: center;
  }

  .nav-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step {
    width: 100%;
    max-width: 320px;
  }

  .carriers-grid {
    gap: 32px;
  }

  .waitlist-content {
    padding: 32px 24px;
  }

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

  .comparison-header {
    display: none;
  }

  .comparison-row {
    display: none;
  }

  .comparison-row .comparison-cell:first-child {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .comparison-row .comparison-cell {
    padding: 16px 24px;
  }

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

  .comparison-footer .comparison-cell {
    padding: 20px 24px;
    justify-content: center;
  }

  .comparison-footer .comparison-cell:first-child {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .total-time {
    align-items: center;
  }

  .savings-highlight {
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
  }

  .savings-value {
    font-size: 32px;
  }

  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-close {
    position: sticky;
    top: 0;
    right: auto;
    margin-left: auto;
    margin-bottom: -32px;
  }

  .modal-body {
    flex-direction: column;
    gap: 20px;
  }

  .modal-intro {
    margin-bottom: 0;
  }
}
