:root {
  --bg: #f0f7ff;
  --bg-secondary: #e8f4fd;
  --bg-accent: #d6ecf8;
  --card: rgba(255, 255, 255, 0.9);
  --card-hover: rgba(255, 255, 255, 1);
  --text: #1a2e3f;
  --text-secondary: #4a5f73;
  --muted: rgba(74, 95, 115, 0.7);
  --muted-light: rgba(74, 95, 115, 0.9);
  --line: rgba(26, 46, 63, 0.1);
  --line-hover: rgba(26, 46, 63, 0.2);
  --btn: rgba(255, 255, 255, 0.95);
  --btn-hover: rgba(255, 255, 255, 1);
  --primary: #2d9cdb;
  --primary-hover: #1e8bc7;
  --primary-light: rgba(45, 156, 219, 0.1);
  --secondary: #27ae60;
  --secondary-hover: #229954;
  --secondary-light: rgba(39, 174, 96, 0.1);
  --accent-blue: #5dade2;
  --accent-green: #52c9a6;
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1080px;
  --shadow: 0 4px 20px rgba(45, 156, 219, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 156, 219, 0.12);
  --shadow-card: 0 2px 12px rgba(26, 46, 63, 0.06);
}

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

html, body { 
  margin: 0; 
  padding: 0; 
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #e8f4fd 0%, #d6ecf8 25%, #e0f0fa 50%, #d1e8f5 75%, #e8f4fd 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(45, 156, 219, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(39, 174, 96, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(93, 173, 226, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: all 0.2s ease;
}

a:hover { 
  text-decoration: none; 
}

.container { 
  max-width: var(--max); 
  margin: 0 auto; 
  padding: 32px 24px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 4px 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  position: sticky; 
  top: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-card);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav:hover {
  border-color: var(--line-hover);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.95);
}

.brand { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  font-weight: 700; 
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.brand a {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.brand .logo {
  height: 48px;
  width: auto;
  display: block;
}

.badge { 
  font-size: 11px; 
  padding: 5px 14px; 
  border: 1px solid var(--primary-light); 
  border-radius: 999px; 
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.links { 
  display: flex; 
  gap: 8px; 
}

.links a { 
  padding: 10px 16px; 
  border-radius: var(--radius-sm); 
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.links a:hover { 
  background: var(--primary-light); 
  color: var(--primary);
  transform: translateY(-1px);
}

.links a:active {
  transform: translateY(0);
}

.links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(45, 156, 219, 0.2);
}

/* Hero split layout */
.heroSplit {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-top: 40px;
  align-items: center;
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.heroSplit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 50%, var(--secondary) 100%);
  opacity: 0.6;
}

.heroSplit:hover {
  border-color: var(--line-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.heroLeft {
  position: relative;
  z-index: 1;
}

.heroRight {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Device mockup styles */
.deviceStack {
  position: relative;
  width: min(420px, 100%);
  height: 360px;
}

.phoneMock {
  position: absolute;
  left: 0;
  top: 10px;
  width: 240px;
  height: 340px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(26, 46, 63, 0.12), rgba(26, 46, 63, 0.08));
  border: 1.5px solid var(--line);
  box-shadow: 0 30px 70px rgba(26, 46, 63, 0.15);
  overflow: hidden;
}

.phoneNotch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(26, 46, 63, 0.2);
}

.phoneScreen {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
}

.screenHeader {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid rgba(45, 156, 219, 0.25);
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.pill.ghost {
  background: var(--secondary-light);
  border-color: rgba(39, 174, 96, 0.3);
  color: var(--secondary);
}

.screenBlock {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.barRow {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 46, 63, 0.1);
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.miniCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.mini {
  height: 42px;
  border-radius: 12px;
  background: rgba(26, 46, 63, 0.06);
  border: 1px solid var(--line);
}

.line {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 46, 63, 0.1);
  margin-bottom: 10px;
}

.line.short {
  width: 72%;
}

.sideCard {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: 210px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.sideTitle {
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
}

.sideMetric {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.sideLines {
  margin-top: 10px;
}

.kicker { 
  color: var(--primary); 
  font-size: 13px; 
  margin: 0 0 20px; 
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  border-radius: 20px;
}

h1 { 
  margin: 0 0 24px; 
  font-size: 52px; 
  line-height: 1.1; 
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.lead { 
  margin: 0 0 36px; 
  color: var(--text-secondary); 
  font-size: 20px; 
  line-height: 1.7;
  max-width: 720px;
  font-weight: 400;
}

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

.card {
  grid-column: span 6;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 50%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 0.3;
}

.card h3 { 
  margin: 0 0 14px; 
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p { 
  margin: 0; 
  color: var(--text-secondary); 
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.ctaRow { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 12px; 
  margin-top: 0; 
  align-items: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: all 0.2s ease;
  opacity: 1;
}

.store-badge img {
  height: 60px;
  width: auto;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 14px 28px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}

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

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

.btn.primary { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(45, 156, 219, 0.25);
}

.btn.primary:hover { 
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 6px 24px rgba(45, 156, 219, 0.35);
  transform: translateY(-3px);
  border-color: var(--primary-hover);
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.small { 
  font-size: 14px; 
  color: var(--muted); 
  line-height: 1.5;
  margin-top: 16px;
}

.footer { 
  margin-top: 80px; 
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); 
  font-size: 14px; 
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

form { 
  display: grid; 
  gap: 20px; 
  margin-top: 32px;
  max-width: 600px;
}

label { 
  display: grid; 
  gap: 8px; 
  color: var(--text-secondary); 
  font-size: 15px; 
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card-hover);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-card);
  transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

textarea { 
  min-height: 160px; 
  resize: vertical; 
  line-height: 1.6;
}

form .btn {
  margin-top: 8px;
}

/* Contact page specific styles */
.card a.btn {
  text-decoration: none;
  word-break: break-all;
}

.card a.btn:hover {
  text-decoration: none;
}

@media (max-width: 920px) {
  .heroSplit {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .deviceStack {
    height: 320px;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 24px 20px;
  }

  .nav {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .links {
    width: 100%;
    justify-content: center;
    order: 3;
  }

  h1 { 
    font-size: 38px; 
    letter-spacing: -0.8px;
  }

  .heroSplit {
    padding: 40px 28px;
    margin-top: 24px;
  }

  .lead {
    font-size: 18px;
  }

  .card { 
    grid-column: span 12; 
    padding: 28px;
  }

  .grid {
    gap: 18px;
    margin-top: 28px;
  }

  .ctaRow {
    flex-direction: column;
  }

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

  .kicker {
    font-size: 12px;
    padding: 5px 12px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 32px;
    letter-spacing: -0.6px;
  }

  .heroSplit {
    padding: 32px 24px;
  }

  .brand {
    font-size: 18px;
  }

  .card {
    padding: 24px;
  }

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

  .deviceStack {
    height: 300px;
  }

  .phoneMock {
    width: 200px;
    height: 300px;
  }
}

/* Smooth scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heroSplit,
.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
