/* =============================================
   KEEPSTACK — Landing Page Styles
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F7F9FC;
  color: #1A1A2E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   NAV
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 238, 255, 0.6);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-wordmark {
  font-size: 17px;
  font-weight: 700;
  color: #0D2B66;
  letter-spacing: -0.3px;
}

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

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #5AC8FA, #2196F3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 100px;
}

h3 .coming-soon-badge {
  font-size: 10px;
  padding: 3px 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav-notify-link {
  font-size: 14px;
  font-weight: 600;
  color: #2196F3;
  transition: color 0.15s;
}

.nav-notify-link:hover {
  color: #0D2B66;
}

.coming-soon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #6B7280;
  font-weight: 500;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(90, 200, 250, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
    #F7F9FC;
  padding: 80px 24px 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-headline {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #0D2B66;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: #6B7280;
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Phone frames */
.hero-screens {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 480px;
}

.phone-frame {
  position: absolute;
  width: 220px;
  border-radius: 44px;
  border: 10px solid #1A1A2E;
  background: #1A1A2E;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(13, 43, 102, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.phone-left {
  transform: rotate(-3deg) translateX(-60px);
  z-index: 1;
}

.phone-right {
  transform: rotate(3deg) translateX(60px);
  z-index: 2;
}

.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
}

/* =============================================
   FEATURES
   ============================================= */

.features {
  padding: 96px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2196F3;
  text-align: center;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 36px;
  font-weight: 700;
  color: #0D2B66;
  letter-spacing: -0.8px;
  text-align: center;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(2),
.features-grid .feature-card:nth-child(3) {
  grid-column: span 2;
}

.features-grid .feature-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.features-grid .feature-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.feature-card {
  background: #fff;
  border: 1px solid #E0EEFF;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(33, 150, 243, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.12);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: #EEF6FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2196F3;
  margin-bottom: 20px;
}

/* Per-card icon colours */
.features-grid .feature-card:nth-child(1) .feature-icon-wrap {
  background: #FFF3E0;
  color: #F97316;
}

.features-grid .feature-card:nth-child(2) .feature-icon-wrap {
  background: #E8F5E9;
  color: #22C55E;
}

.features-grid .feature-card:nth-child(3) .feature-icon-wrap {
  background: #F3E8FF;
  color: #A855F7;
}

.features-grid .feature-card:nth-child(4) .feature-icon-wrap {
  background: #EEF6FF;
  color: #2196F3;
}

.features-grid .feature-card:nth-child(5) .feature-icon-wrap {
  background: #E0F7FA;
  color: #0097A7;
}

.feature-heading {
  font-size: 18px;
  font-weight: 700;
  color: #0D2B66;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-copy {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.65;
}

/* =============================================
   SHOWCASE
   ============================================= */

.showcase {
  background: #fff;
  padding: 96px 24px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  margin-bottom: 80px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row--reverse {
  direction: rtl;
}

.showcase-row--reverse > * {
  direction: ltr;
}

.showcase-image {
  display: flex;
  justify-content: center;
}

.showcase-screenshot {
  width: 260px;
  border: 8px solid #1A1A2E;
  border-radius: 36px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(13, 43, 102, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.showcase-heading {
  font-size: 30px;
  font-weight: 700;
  color: #0D2B66;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.showcase-copy {
  font-size: 16px;
  color: #6B7280;
  line-height: 1.7;
  max-width: 400px;
}

/* =============================================
   CTA BANNER
   ============================================= */

.cta-banner {
  background: linear-gradient(135deg, #5AC8FA 0%, #2196F3 100%);
  padding: 96px 24px;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cta-heading {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  border-top: 1px solid #E7EEFF;
  padding: 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 14px;
  color: #6B7280;
}

.footer-link {
  font-size: 14px;
  color: #6B7280;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #2196F3;
}

/* =============================================
   RESPONSIVE — TABLET (768px–1024px)
   ============================================= */

@media (max-width: 1024px) {
  .hero-headline {
    font-size: 48px;
  }

  .hero-inner {
    gap: 40px;
  }

  .phone-frame {
    width: 180px;
  }

  .hero-screens {
    height: 390px;
  }

  .showcase-row {
    gap: 48px;
  }

  .showcase-screenshot {
    width: 220px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (<768px)
   ============================================= */

@media (max-width: 767px) {
  /* Nav */
  .nav-cta {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 56px 24px 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-headline {
    font-size: 42px;
    letter-spacing: -1.5px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-screens {
    height: auto;
    gap: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 16px;
  }

  .phone-frame {
    position: static;
    width: 150px;
    transform: none !important;
    flex-shrink: 0;
  }

  /* Features */
  .features {
    padding: 64px 24px;
  }

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

  .features-grid .feature-card:nth-child(n) {
    grid-column: auto;
  }

  .section-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }

  /* Showcase */
  .showcase {
    padding: 64px 24px;
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
    direction: ltr;
  }

  .showcase-row--reverse {
    direction: ltr;
  }

  .showcase-image {
    order: -1;
  }

  .showcase-screenshot {
    width: 200px;
    margin: 0 auto;
  }

  .showcase-heading {
    font-size: 24px;
    text-align: center;
  }

  .showcase-copy {
    text-align: center;
    margin: 0 auto;
  }

  /* CTA */
  .cta-banner {
    padding: 64px 24px;
  }

  .cta-heading {
    font-size: 30px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
