/* ============================================
   Gloopi Landing Page
   ============================================ */

/* ---- Fonts ---- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700&f[]=general-sans@400,500,600&display=swap');

:root {
  --bg-deep: #0A0A0A;
  --bg-surface: #111111;
  --brand: #E85D3A;
  --brand-light: #FF8C6B;
  --accent-warm: #FF8C6B;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #666666;
  --surface: #1A1A1A;
  --surface-hover: #222222;
  --border: #2A2A2A;
  --border-light: #383838;
  --max: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Satoshi', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Dot grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

img.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 200ms ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  animation: heroFadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 .brand-highlight {
  color: var(--brand);
}

.hero-sub {
  max-width: 440px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.app-store-badge {
  height: 52px;
  transition: transform 200ms ease;
}

.app-store-badge:hover {
  transform: scale(1.04);
}

.hero-proof {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---- Device Showcase (hero right) ---- */
.showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 800ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

/* Warm glow behind phone */
.showcase::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(232, 93, 58, 0.20) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.showcase__device {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(232, 93, 58, 0.15)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.showcase__device img {
  display: block;
  width: 100%;
}

.showcase__device--hero {
  width: 280px;
  transform: rotate(-4deg);
}

/* ---- Companion Section ---- */
.companion-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.companion-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}

.companion-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.companion-phone > img:not(.companion-avatar) {
  width: 100%;
  filter: drop-shadow(0 12px 40px rgba(232, 93, 58, 0.12));
}

.companion-avatar {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 8px 24px rgba(232, 93, 58, 0.25));
}

.companion-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.companion-intro {
  font-size: 1.1rem;
  color: var(--brand-light);
  font-weight: 500;
  margin-bottom: 24px;
}

.companion-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---- Outcome Sections ---- */
.outcomes-section {
  padding: 60px 0;
}

.outcome {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.outcome--reverse {
  grid-template-columns: 260px 1fr;
}

.outcome--reverse .outcome-phone {
  order: -1;
}

.outcome-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.outcome-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.outcome-phone img {
  width: 100%;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.3));
}

/* ---- Theme Section ---- */
.theme-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.theme-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.theme-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.theme-sub {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.theme-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.theme-phone {
  width: 180px;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.3));
}

.theme-phone:first-child {
  transform: rotate(8deg) translateY(20px);
  margin-right: -24px;
}

.theme-phone--center {
  z-index: 2;
  width: 200px;
  transform: translateY(-10px);
}

.theme-phone:last-child {
  transform: rotate(-8deg) translateY(20px);
  margin-left: -24px;
}

/* ---- Final CTA ---- */
.cta-section {
  padding: 100px 0 120px;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.cta-section h2 .cta-accent {
  color: var(--accent-warm);
}

.cta-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
}

.cta-section .app-store-badge {
  margin: 0 auto;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ---- Animations ---- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal — vertical (default) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0);
}


/* ---- Legal Pages ---- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card a:hover {
  color: var(--text-primary);
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-footer .footer-links a {
  font-size: 0.82rem;
}

/* ---- FAQ Accordion ---- */
.faq-list {
  list-style: none;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .showcase__device--hero {
    width: 220px;
    transform: rotate(-3deg);
  }

  .companion-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .companion-phone {
    max-width: 220px;
    margin: 0 auto;
  }

  .outcome {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .outcome--reverse {
    grid-template-columns: 1fr;
  }

  .outcome--reverse .outcome-phone {
    order: 0;
  }

  .outcome-phone {
    max-width: 220px;
    margin: 0 auto;
  }

  .outcome-text p {
    max-width: 100%;
  }

  .theme-phone {
    width: 140px;
  }

  .theme-phone--center {
    width: 160px;
  }

  .cta-section {
    padding: 72px 0 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 110px 0 40px;
  }

  .showcase__device--hero {
    width: 200px;
  }

  .legal-card {
    padding: 28px 20px;
  }
}
