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

/* =============================
   BASE - Modern Color Scheme
============================= */
:root{
  --dark: #0F172A;        /* Deep navy - header/footer */
  --page: #E0F2FE;        /* Light blue background */
  --band: #1E293B;        /* Dark slate for alternating sections */
  --text-dark: #FFFFFF;   /* White text on dark backgrounds */
  --text-light: #1E293B;  /* Dark text on light backgrounds */
  --primary: #3B82F6;     /* Modern blue for primary actions */
  --accent: #0EA5E9;      /* Sky blue accent */
  --success: #10B981;     /* Green for success states */
  --border-light: rgba(226, 232, 240, 0.8);
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html { 
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body{
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--page);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =============================
   TYPOGRAPHY BASELINE
============================= */
p {
  margin-bottom: 1.25rem;
}

h1, h2, h3, h4 {
  margin-bottom: 0.75em;
  font-weight: 600;
  color: inherit;
}

ul, ol {
  margin: 1.25rem 0 1.5rem 0;
  padding-left: 2rem;
  list-style-position: outside;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  padding-left: 0.5rem;
}

li::marker {
  color: var(--primary);
}

/* Nested lists */
ul ul, ol ul, ul ol, ol ol {
  margin: 0.75rem 0 0.75rem 0;
  padding-left: 2rem;
}

/* =============================
   LAYOUT
============================= */
.container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.section{
  padding: 84px 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

/* =============================
   CURVED SECTIONS - Updated Colors
============================= */
.section-wave-concave,
.section-wave-convex{
  background: var(--band);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.section-wave-concave > .container,
.section-wave-convex > .container{
  position: relative;
  z-index: 1;
}

.section-wave-concave::before,
.section-wave-concave::after,
.section-wave-convex::before,
.section-wave-convex::after{
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 96px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 0;
}

.section-wave-concave::before,
.section-wave-convex::before{ top: 0; }

.section-wave-concave::after,
.section-wave-convex::after{
  bottom: 0;
  transform: rotate(180deg);
}

/* CONCAVE: light background bites into dark section */
.section-wave-concave::before,
.section-wave-concave::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23E0F2FE' d='M0,0H1440V0C1200,0 1040,110 720,110C400,110 240,0 0,0Z'/%3E%3C/svg%3E");
}

/* CONVEX: dark section bulges into light background */
.section-wave-convex::before,
.section-wave-convex::after{
  top: -96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%231E293B' d='M0,120H1440V10C1200,10 1040,120 720,120C400,120 240,10 0,10Z'/%3E%3C/svg%3E");
}

.section-wave-convex::after{
  top: auto;
  bottom: -96px;
}

.section-wave-concave,
.section-wave-convex{
  padding-top: calc(96px + 32px);
  padding-bottom: calc(96px + 32px);
}

@media (max-width: 640px){
  .section-wave-concave::before,
  .section-wave-concave::after,
  .section-wave-convex::before,
  .section-wave-convex::after{
    height: 64px;
  }

  .section-wave-convex::before{ top: -64px; }
  .section-wave-convex::after{ bottom: -64px; }

  .section-wave-concave,
  .section-wave-convex{
    padding-top: calc(64px + 24px);
    padding-bottom: calc(64px + 24px);
  }
}

.eyebrow{
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* Dark sections eyebrow */
.section-wave-concave .eyebrow,
.section-wave-convex .eyebrow {
  color: var(--accent);
}

h1, h2, h3 { letter-spacing: -0.02em; }

h1{
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
}

h2{
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 750;
  line-height: 1.18;
  margin-bottom: 14px;
}

h3{
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Dark sections h3 */
.section-wave-concave h3,
.section-wave-convex h3 {
  color: var(--accent);
}

.section-intro{
  max-width: 860px;
  font-size: 1.05rem;
  margin-top: 8px;
}

.muted {
  opacity: 0.85;
}

/* =============================
   HEADER
============================= */
header {
  background: var(--dark);
  backdrop-filter: blur(10px);
  padding: 20px 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
}

header img {
  height: 52px;
}

.login-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  transition: all 0.25s ease;
}

.login-link:hover {
  background: var(--primary);
  color: var(--text-dark);
  transform: translateY(-1px);
}

/* =============================
   HERO
============================= */
.hero{
  background: linear-gradient(135deg, #1E3A8A 0%, #1E293B 100%);
  padding: 72px 0 48px;
  color: var(--text-dark);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.hero-inner{
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
}

.hero-lead{
  margin: 16px auto 0;
  max-width: 980px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero-tagline{
  margin: 2px auto 34px;
  max-width: 920px;
  font-weight: 600;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Screenshot container - remove background bleed */
.hero-media--screenshot{
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  max-width: 920px;
  margin: 40px auto 0;
  padding: 0 40px;
}

.hero-media--screenshot img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Video player styling */
.hero-media--screenshot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  background: #000;
}

.hero-media--screenshot video::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.8);
}

.hero-media--screenshot video::-webkit-media-controls-play-button,
.hero-media--screenshot video::-webkit-media-controls-current-time-display,
.hero-media--screenshot video::-webkit-media-controls-time-remaining-display {
  color: #fff;
}

.hero-screenshot{
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
}

.hero-cta{
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;  
}

.btn{
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 28px;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary{
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #2563EB;
}

.btn-ghost{
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover{
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-media{
  margin: 34px auto 0;
  max-width: 1140px;
  padding: 0 40px;
}

.hero-media img{
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

/* =============================
   GRID / CARDS
============================= */
.grid{
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.grid.cards{
  grid-template-columns: repeat(12, 1fr);
}

.card{
  grid-column: span 4;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: var(--text-light);
}

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

/* Cards in dark sections */
.section-wave-concave .card,
.section-wave-convex .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.section-wave-concave .card:hover,
.section-wave-convex .card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.callout{
  margin-top: 26px;
  background: #EFF6FF;
  border: 2px solid var(--primary);
  color: var(--text-light);
  padding: 20px 24px;
  border-radius: 12px;
}

/* Stats */
.stat-card{
  text-align: center;
  grid-column: span 6;
  padding: 32px 24px;
}

.stat-number{
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

/* Dark sections stat number */
.section-wave-concave .stat-number,
.section-wave-convex .stat-number {
  color: var(--accent);
}

.stat-label{
  color: inherit;
  opacity: 0.8;
  margin-top: 6px;
  font-weight: 600;
}

/* Testimonials */
.testimonials{
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.quote{
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--text-dark);
  position: relative;
  padding-left: 48px;
}

.quote::before{
  content: """;
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 3rem;
  color: var(--accent);
  font-weight: 800;
  opacity: 0.5;
}

/* =============================
   HOW IT WORKS
============================= */
#how .how-wrap{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "text"
    "media";
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

#how .how-steps{ grid-area: text; }
#how .how-media{
  grid-area: media;
  margin-top: 8px;
}

#how .how-media img{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 12px;
}

.steps{
  margin-left: 18px;
  margin-top: 10px;
  color: var(--text-dark);
}

.steps li{
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* =============================
   WHO IT'S FOR
============================= */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.panel{
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 24px;
  color: var(--text-dark);
}

.bullets{
  margin-top: 8px;
  margin-left: 18px;
  color: var(--text-dark);
}

.bullets li{ 
  margin-bottom: 10px;
  color: var(--text-dark);
}

.who-media{
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.who-media img{
  width: min(220px, 70%);
  opacity: 0.95;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

/* =============================
   LEGAL PAGES STYLING
============================= */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

section h3 {
  color: var(--text-light);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

section p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

section ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

section li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

section strong {
  color: var(--primary);
  font-weight: 600;
}

section a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

section a:hover {
  color: var(--accent);
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--dark);
  color: #E6E8EB;
  padding: 55px 20px;
  text-align: center;
  border-top: 1px solid var(--border-dark);
}

footer a {
  color: #CBD5E1;
  text-decoration: none;
  margin: 0 14px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

footer p {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-top: 20px;
}

/* =============================
   FLOATING DEMO BUTTON
============================= */
.floating-demo-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--primary);
  color: var(--text-dark);
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-demo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
  background: #2563EB;
}

.floating-demo-btn:active {
  transform: translateY(-1px);
}

/* Hide on mobile to avoid blocking content */
@media (max-width: 640px) {
  .floating-demo-btn {
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 980px){
  .card{ grid-column: span 6; }
  .how-wrap{ grid-template-columns: 1fr; }
  
  header {
    padding: 20px 40px;
  }
}

@media (max-width: 640px){
  .card{ grid-column: span 12; }
  .two-col{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  
  header {
    padding: 16px 20px;
  }
  
  header img {
    height: 40px;
  }
  
  .stat-card {
    grid-column: span 12;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero-inner {
    padding: 0 20px;
  }
}

/* =============================
   iOS/iPhone SPECIFIC FIXES
   Add these to your landing.css file
============================= */

/* 1. Fix viewport and prevent zoom on input focus */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 2. Fix smooth scrolling on iOS */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* 3. Fix button rendering on iOS */
button, 
.btn,
a.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 4. Prevent iOS from adding tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 5. Fix video playback on iOS */
video {
  -webkit-playsinline: true;
  playsinline: true;
}

/* 6. Fix font rendering on iOS */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 7. Fix sticky header on iOS Safari */
header {
  position: -webkit-sticky;
  position: sticky;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 8. Fix backdrop-filter on iOS */
header {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 9. Fix gradient rendering on iOS */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E293B 100%);
  background: -webkit-linear-gradient(135deg, #1E3A8A 0%, #1E293B 100%);
}

/* 10. Fix overflow issues on iOS */
body, html {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* 11. Fix button active states on iOS */
.btn:active,
.login-link:active,
.floating-demo-btn:active {
  opacity: 0.9;
}

/* 12. Ensure proper rendering of curved sections */
.section-wave-concave::before,
.section-wave-concave::after,
.section-wave-convex::before,
.section-wave-convex::after {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.section-wave-concave::after,
.section-wave-convex::after {
  -webkit-transform: rotate(180deg) translateZ(0);
  transform: rotate(180deg) translateZ(0);
}

/* 13. Fix safe area for notched iPhones */
@supports (padding: max(0px)) {
  header {
    padding-left: max(80px, env(safe-area-inset-left));
    padding-right: max(80px, env(safe-area-inset-right));
  }
  
  footer {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(55px, env(safe-area-inset-bottom));
  }
  
  .floating-demo-btn {
    bottom: max(30px, calc(30px + env(safe-area-inset-bottom)));
    right: max(30px, env(safe-area-inset-right));
  }
}

/* 14. iPhone-specific media queries */
@media (max-width: 640px) {
  /* Fix header spacing on iPhone */
  header {
    padding: 16px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  
  /* Fix container padding */
  .container,
  .hero-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  
  /* Ensure hero media doesn't overflow */
  .hero-media--screenshot {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  
  /* Fix floating button on notched phones */
  .floating-demo-btn {
    bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
    right: max(20px, env(safe-area-inset-right));
  }
}

/* 15. Fix for older iOS versions */
@supports not (backdrop-filter: blur(10px)) {
  header {
    background: rgba(15, 23, 42, 0.95);
  }
}

/* 16. Prevent bounce scroll on iOS (optional - use if you want to disable) */
/* Uncomment if you want to prevent overscroll bounce
body {
  overscroll-behavior-y: none;
}
*/

/* 17. Fix transform animations on iOS */
.card,
.btn,
.login-link,
.floating-demo-btn {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* 18. Fix video poster image on iOS */
video[poster] {
  object-fit: cover;
}