:root {
  --purple: #6B2D9B;
  --purple-dark: #4A1F6B;
  --purple-light: #F5F0FA;
  --purple-mid: #8B5CF6;
  --navy: #0F1C3F;
  --text: #1A1A2E;
  --muted: #5A5A7A;
  --white: #FFFFFF;
  --gray-50: #F8F9FC;
  --gray-100: #EEF0F6;
  --gray-200: #E2E5EF;
  --success: #0D9488;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 28, 63, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 28, 63, 0.12);
  --phone-frame: #1a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--purple);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.active { color: var(--purple); }
.nav-cta {
  background: var(--purple);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--purple-dark); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: 6px;
  line-height: 1;
  z-index: 110;
}
.mobile-toggle[aria-expanded="true"] {
  color: var(--purple);
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 28, 63, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.mobile-nav.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-panel {
  background: white;
  padding: 12px 0 28px;
  box-shadow: 0 12px 40px rgba(15, 28, 63, 0.15);
  transform: translateY(-8px);
  transition: transform 0.25s ease;
}
.mobile-nav.open .mobile-nav-panel {
  transform: translateY(0);
}
.mobile-nav-panel a {
  display: block;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: var(--purple-light);
  color: var(--purple);
}
.mobile-nav-panel .mobile-cta {
  margin: 20px 24px 0;
  display: block;
  text-align: center;
  background: var(--purple);
  color: white !important;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 600;
}
.mobile-nav-panel .mobile-cta:hover {
  background: var(--purple-dark);
  color: white !important;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 14px rgba(107, 45, 155, 0.3);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.btn-white {
  background: white;
  color: var(--purple);
}
.btn-white:hover { background: var(--gray-50); }

/* ========== Hero ========== */
.hero {
  padding: 72px 0 90px;
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--white) 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero h1 span { color: var(--purple); }
.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========== Realistic Phone Mock ========== */
.phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  background: linear-gradient(145deg, #2a2a2a 0%, #111 40%, #1a1a1a 100%);
  border-radius: 40px;
  padding: 11px;
  box-shadow: 
    0 30px 60px -15px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 0 0 3px #0d0d0d;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 14px;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.phone::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.phone-screen {
  background: #f8f7fc;
  border-radius: 30px;
  overflow: hidden;
  height: 562px;
  min-height: 562px;
  max-height: 562px;
  position: relative;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #f8f7fc;
  letter-spacing: 0.02em;
}
.phone-app-header {
  background: linear-gradient(180deg, #7B3AA8 0%, #6B2D9B 100%);
  color: white;
  padding: 15px 18px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(107,45,155,0.25);
}
.phone-app-header .back {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1;
}
.phone-list {
  background: white;
}
.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #f0eef5;
  font-size: 0.94rem;
  color: #1a1a2e;
  transition: background 0.15s;
}
.phone-row:active { background: #faf8fc; }
.phone-row .label { font-weight: 500; }
.phone-row .value {
  color: #8a8aa0;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-row .chevron { color: #c4c0d0; font-size: 1.15rem; font-weight: 300; }
.phone-row.req .label::after {
  content: " *";
  color: #c026d3;
  font-weight: 600;
}
.phone-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  background: #faf9fc;
  font-size: 0.86rem;
  color: #666;
  border-top: 1px solid #f0eef5;
}
.toggle {
  width: 46px;
  height: 26px;
  background: #ddd;
  border-radius: 13px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.toggle.on { background: var(--purple); }
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.on::after { left: 22px; }

/* Charge sheet mock */
.charge-header {
  background: white;
  padding: 13px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.charge-table {
  width: 100%;
  font-size: 0.7rem;
  border-collapse: collapse;
}
.charge-table th {
  background: #f3f0f8;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #e5e0f0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.charge-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.charge-table tr:last-child td {
  font-weight: 700;
  background: #faf8fc;
  border-bottom: none;
}

/* Guide mock */
.guide-header {
  background: white;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.guide-note {
  background: linear-gradient(90deg, #fef9c3 0%, #fef08a 100%);
  color: #854d0e;
  font-size: 0.68rem;
  padding: 8px 12px;
  line-height: 1.4;
  border-bottom: 1px solid #fde68a;
}
.guide-img {
  padding: 20px 16px;
  text-align: center;
  background: white;
}
.guide-img .plate {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 12px;
  height: 90px;
  background: linear-gradient(145deg, #86efac 0%, #4ade80 40%, #22c55e 100%);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 6px 16px rgba(34,197,94,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.guide-img .plate::before,
.guide-img .plate::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #166534;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.guide-img .plate::before { left: 18%; }
.guide-img .plate::after { right: 18%; }

/* Hand holding effect for hero */
.hero-visual {
  position: relative;
}
.hero-visual .phone {
  transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-visual:hover .phone {
  transform: perspective(800px) rotateY(-2deg) rotateX(0deg);
}

/* ========== Sections ========== */
.section { padding: 90px 0; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.08rem;
  color: var(--muted);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover {
  background: white;
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--purple);
}
.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Audience / Solutions */
.audiences {
  background: var(--navy);
  color: white;
  padding: 90px 0;
}
.audiences .section-header h2 { color: white; }
.audiences .section-header p { color: rgba(255,255,255,0.7); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.audience-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: background 0.2s;
}
.audience-card:hover { background: rgba(255,255,255,0.1); }
.audience-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.audience-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.audience-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.audience-card li {
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255,255,255,0.92);
}
.audience-card li::before {
  content: "✓";
  color: #A78BFA;
  font-weight: 700;
  flex-shrink: 0;
}
.audience-card .link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #C4B5FD;
}
.audience-card .link:hover { color: white; }

/* Feature detail rows (for inner pages) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:nth-child(even) { direction: rtl; }
.feature-row:nth-child(even) > * { direction: ltr; }
.feature-row h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-row p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.feature-row ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-row li {
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-row li::before {
  content: "→";
  color: var(--purple);
  font-weight: 700;
}

/* Testimonials */
.testimonials { padding: 90px 0; background: var(--gray-50); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial blockquote {
  font-size: 0.96rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* CTA band */
.cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 10px; display: inline-block; }
.footer-brand p { font-size: 0.88rem; max-width: 260px; }
.footer-col h4 {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--white) 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Screenshot gallery */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.shot-card {
  text-align: center;
}
.shot-card .phone {
  width: 280px;
  margin-bottom: 16px;
}
.shot-card .phone-screen {
  height: 562px;
  min-height: 562px;
  max-height: 562px;
  overflow: hidden;
}
.shot-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.shot-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid,
  .feature-row,
  .features-grid,
  .audience-grid,
  .testimonial-grid,
  .footer-grid,
  .shot-gallery {
    grid-template-columns: 1fr;
  }
  .feature-row:nth-child(even) { direction: ltr; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { order: -1; margin-bottom: 32px; }
  .phone { width: 250px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 48px 0 36px; }
}

@media (min-width: 961px) {
  .mobile-nav { display: none !important; }
}

/* Stack automation highlight cards on mobile */
@media (max-width: 800px) {
  .section[style*="background: var(--navy)"] .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
