/* ==========================================================================
   Remy AI — Landing Page Styles (v2)
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --bg: #040811;
  --bg-mid: #091225;
  --bg-soft: #0e1830;
  --surface: rgba(14, 22, 42, 0.75);
  --surface-solid: #101b34;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #f0ece4;
  --text-muted: #a0aabf;
  --text-faint: #5e6a82;

  --peach: #f5c89b;
  --pink: #f1acb5;
  --blue: #8aa8ff;

  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.25);

  --max-w: 1140px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Avenir Next", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 206, 157, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 157, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #040811 0%, #091225 30%, #0e1830 70%, #060c19 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 62% 35%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.3px 1.3px at 78% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(0.8px 0.8px at 88% 55%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 35% 68%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.2px 1.2px at 55% 52%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.9px 0.9px at 72% 72%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.4px 1.4px at 8% 85%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 92% 12%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(0.7px 0.7px at 50% 90%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.1px 1.1px at 18% 48%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 82% 78%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.3px 1.3px at 38% 28%, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

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

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

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Ambient Glows ---------- */
.ambient {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}

.ambient-blue {
  top: 8rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(120, 160, 255, 0.9), transparent 70%);
}

.ambient-warm {
  top: -10rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(245, 200, 155, 0.85), transparent 70%);
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach);
}

/* ---------- Layout ---------- */
.container {
  width: min(calc(100% - 2rem), var(--max-w));
  margin-inline: auto;
}

/* ---------- Glass Card Mixin ---------- */
.glass {
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #0e1320;
  background: linear-gradient(135deg, var(--peach), #f5e1c3 46%, var(--pink));
  box-shadow: 0 14px 36px rgba(245, 200, 155, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px rgba(245, 200, 155, 0.24);
}

.btn-outline {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 200ms ease, border-color 200ms ease;
}

.header.is-scrolled {
  background: rgba(4, 8, 17, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(5.5rem + var(--section-gap) * 0.3) 0 var(--section-gap);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-sub {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-disclaimer {
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

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

.hero-screenshot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-screenshot img {
  width: 100%;
}

/* ---------- Trust ---------- */
.trust {
  padding: var(--section-gap) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.trust-value {
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.trust-note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Features ---------- */
.feature {
  padding: var(--section-gap) 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

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

.feature-row-reverse .feature-text {
  order: 2;
}

.feature-row-reverse .feature-visual {
  order: 1;
}

.feature-text h2 {
  margin-bottom: 1rem;
}

.feature-text > p {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.feature-bullets {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.feature-bullets li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.97rem;
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  box-shadow: 0 0 12px rgba(245, 200, 155, 0.2);
}

.screenshot-phone {
  display: flex;
  justify-content: center;
}

.screenshot-phone img {
  max-width: 360px;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.screenshot-wide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.screenshot-wide img {
  width: 100%;
}

/* ---------- How it Works ---------- */
.how-section {
  padding: var(--section-gap) 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: border-color 200ms ease;
}

.step:hover {
  border-color: var(--border-strong);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0e1320;
  background: linear-gradient(135deg, var(--peach), var(--pink));
}

.step h3 {
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Reviews ---------- */
.reviews-section {
  padding: var(--section-gap) 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease;
}

.review-card:hover {
  border-color: var(--border-strong);
}

.review-card > p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}

.review-card footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.review-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--peach);
}

.review-card footer span::before {
  content: "\00b7\00a0";
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: var(--section-gap) 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  transition: border-color 200ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-faint);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding-top: 0.75rem;
}

.faq-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.cta-panel {
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-panel h2 {
  margin-bottom: 0;
}

.cta-panel > p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 460px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 0 0 var(--section-gap);
}

.contact-block {
  text-align: center;
}

.contact-block h3 {
  margin-bottom: 0.75rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  transition: color 160ms ease;
}

.contact-email:hover {
  color: var(--peach);
}

/* ---------- Footer ---------- */
.footer {
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.footer-inner {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .logo-icon {
  width: 2rem;
  height: 2rem;
}

.footer-tagline {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

/* ---------- Animations ---------- */
.reveal,
.reveal-delay {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal-delay {
  transition-delay: 200ms;
}

.reveal.is-visible,
.reveal-delay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  min-height: 100vh;
  padding-top: 6rem;
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: var(--section-gap);
}

.legal-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 50, 0.78),
    rgba(10, 18, 36, 0.82)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.legal-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.legal-card h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 0.5rem;
}

.legal-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.legal-card li {
  margin-top: 0.45rem;
  line-height: 1.75;
}

.legal-card a {
  color: var(--peach);
  transition: color 160ms ease;
}

.legal-card a:hover {
  color: var(--pink);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.legal-actions .btn-primary,
.legal-actions .btn-primary:hover {
  color: #0e1320;
}

.legal-actions .btn-outline,
.legal-actions .btn-outline:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

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

  .feature-row-reverse .feature-text,
  .feature-row-reverse .feature-visual {
    order: initial;
  }

  .screenshot-phone img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .trust-grid,
  .steps,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 2rem;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(4, 8, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner .btn {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-card {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-delay,
  .btn,
  .header,
  .step,
  .review-card,
  .faq-item {
    transition: none;
  }

  .reveal,
  .reveal-delay {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}
