/* ============================================
   Riptap — Stylesheet
   Light theme with indigo/purple + neon cyan accents
   ============================================ */

:root {
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --bg-tint: #F3F1FC;           /* light purple tint for sections */
  --indigo: #1A0F3D;            /* dark indigo from app */
  --indigo-mid: #2E1B6B;        /* mid indigo */
  --purple: #5A3EC8;            /* vibrant purple */
  --cyan: #00F2E6;              /* neon cyan accent */
  --cyan-dark: #00C9BE;         /* slightly muted cyan */
  --text-primary: #1A1A2E;      /* near-black with purple tint */
  --text-secondary: #6B6B80;
  --text-muted: #9E9EB0;
  --border: rgba(26, 15, 61, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(26, 15, 61, 0.06);
  --shadow-hover: 0 8px 32px rgba(26, 15, 61, 0.12);
  --transition: 0.3s ease;
  /* System fonts only: the site makes no third-party font requests. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--indigo-mid);
  letter-spacing: -0.5px;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--indigo);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-mid);
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90, 62, 200, 0.3);
}

.nav-cta svg {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-tint) 100%);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--indigo);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--indigo-mid);
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(90, 62, 200, 0.35);
}

.btn-primary svg {
  width: 22px;
  height: 22px;
}

/* hero-app-icon removed — logo now in nav */

/* Background orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--bg-tint);
  top: -150px;
  right: -200px;
  opacity: 0.8;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 242, 230, 0.08);
  bottom: -150px;
  left: -150px;
  opacity: 1;
}

/* --- Showcase Section (Features + Screenshots merged) --- */
.showcase {
  padding: 100px 0;
  background: var(--bg-white);
}

.showcase .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.showcase .section-header h2 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--indigo);
}

.showcase .section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

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

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

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

.showcase-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.showcase-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.showcase-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dark);
}

.showcase-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--indigo);
}

.showcase-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.showcase-screenshot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-placeholder {
  width: 280px;
  height: 560px;
  background: linear-gradient(160deg, var(--indigo), #2E1B6B);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(26, 15, 61, 0.2);
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 32px 32px 0 0;
}

.screenshot-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(26, 15, 61, 0.25);
  display: block;
}

/* Carousel within showcase */
.carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active::before {
  background: var(--purple);
  transform: translate(-50%, -50%) scale(1.3);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 32px;
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-email {
  color: var(--cyan) !important;
  transition: opacity var(--transition);
}

.footer-email:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: rgba(0, 242, 230, 0.15);
  color: var(--cyan);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--bg-white);
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--indigo);
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--indigo);
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ul li::marker {
  color: var(--purple);
}

.legal-page a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(90, 62, 200, 0.3);
  text-underline-offset: 3px;
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--indigo);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--purple);
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .showcase .section-header h2 {
    font-size: 2rem;
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .showcase-screenshot {
    order: -1;
  }

  .carousel {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    text-align: center;
  }

  .screenshot-placeholder {
    width: 240px;
    height: 480px;
  }

  .screenshot-img {
    max-width: 280px;
  }

  .carousel {
    max-width: 300px;
  }

  .carousel-dots {
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 18px;
  }

  .legal-page h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .showcase .section-header h2 {
    font-size: 1.75rem;
  }

  .screenshot-placeholder {
    width: 200px;
    height: 400px;
  }

  .screenshot-img {
    max-width: 240px;
  }

  .carousel {
    max-width: 260px;
  }

  .carousel-dots {
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 16px;
  }

  .carousel-dot {
    padding: 6px;
    width: 8px;
    height: 8px;
  }

  .carousel-dot::before {
    width: 8px;
    height: 8px;
  }
}
