/* Rimawari landing page — dark/violet theme matching the app */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #0e0c14;
  --bg-elev: #17141f;
  --bg-elev-2: #1d1928;
  --text: #f6f4fb;
  --muted: #9c93b3;
  --muted-2: #746c8c;
  --accent: #a78bfa;
  --accent-soft: #b9a6f5;
  --accent-pink: #f0a8c4;
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 15% -10%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(600px 500px at 100% 10%, rgba(240, 168, 196, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */

.nav {
  position: relative;
  z-index: 10;
  padding: 24px 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.08);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: 64px 0 90px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 880px;
  margin: 0 auto;
}

h1 .accent {
  background: linear-gradient(100deg, var(--accent-soft), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 1.09rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.store-badges img {
  height: 52px;
  width: auto;
  display: block;
}

.store-badges a {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Section shell ---------- */

section {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

/* ---------- AI demo ---------- */

.demo {
  padding: 40px 0 100px;
}

.demo-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  position: relative;
}

.demo-card::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
  right: -120px;
  top: -100px;
  pointer-events: none;
}

.demo-text {
  position: relative;
  z-index: 1;
}

.demo-text .section-label { margin-bottom: 16px; }

.demo-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.demo-text p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
  max-width: 420px;
}

.demo-inputs {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Phone mockup ---------- */

.phone {
  width: 240px;
  flex-shrink: 0;
  background: #030204;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(167, 139, 250, 0.15);
  position: relative;
  z-index: 1;
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1290 / 2796;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #030204;
  border-radius: 14px;
  z-index: 2;
}

.phone.large { width: 280px; }

/* ---------- Benefits ---------- */

.benefits {
  padding: 20px 0 100px;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.benefit-row:first-child { padding-top: 0; }
.benefit-row:last-child { border-bottom: none; }

.benefit-row:nth-child(even) .benefit-media {
  order: 2;
}

.benefit-media {
  display: flex;
  justify-content: center;
}

.benefit-text .index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.benefit-text h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 16px;
}

.benefit-text p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 440px;
}

/* ---------- Feature strip ---------- */

.feature-strip {
  padding: 0 0 100px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-soft);
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */

.cta {
  padding: 20px 0 110px;
  text-align: center;
}

.cta-card {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.14), rgba(240, 168, 196, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 auto;
}

.cta-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .demo-card {
    grid-template-columns: 1fr;
    padding: 40px 26px;
    text-align: center;
  }
  .demo-text p { margin-left: auto; margin-right: auto; }
  .demo-inputs { justify-content: center; }
  .demo-card .phone { margin: 0 auto; }

  .benefit-row {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .benefit-row:nth-child(even) .benefit-media { order: 0; }
  .benefit-text p { margin-left: auto; margin-right: auto; }

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

  footer .wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .hero { padding: 44px 0 64px; }
  .demo-card, .cta-card { padding: 36px 20px; }
  .phone { width: 200px; }
}
