/* ============================================
   OUTREPD Landing Page — Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-bg: #000000;
  --color-bg-elevated: #0A0A0F;
  --color-accent: #00AAFF;
  --color-accent-glow: rgba(0, 170, 255, 0.35);
  --color-accent-dim: rgba(0, 170, 255, 0.12);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0A0B8;
  --color-text-muted: #5A5A6E;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-glass: rgba(10, 10, 18, 0.75);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-hero: clamp(2.25rem, 4vw, 3rem); /* 36px - 48px */
  --font-size-sub: clamp(0.875rem, 1.5vw, 1.125rem); /* 14px - 18px */
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-nav: 0.95rem;

  --nav-height: 72px;
  --max-width: 1100px;
  --radius-pill: 100px;
  --radius-md: 16px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

p, h1, h2, h3, h4, h5, h6, a, li, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(12, 12, 20, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 0 28px;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 8, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 170, 255, 0.04);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--color-text-primary);
}

/* Nav CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: var(--font-size-nav);
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-bg);
  background: var(--color-text-primary);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 24px var(--color-accent-glow);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 72px) 0 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Two-column layout */
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.hero__headline {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #C0D8F0 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.15s;
}

.hero__subheadline {
  font-size: var(--font-size-sub);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;

  /* Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.35s;
}

/* --- App Mockup --- */
.hero__mockup-wrapper {
  position: relative;
  z-index: 1;

  /* Animation */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.9s ease forwards;
  animation-delay: 0.55s;
}

.hero__mockup {
  position: relative;
  display: inline-block;
}

/* App Mockup SVG Image */
.hero__mockup-img {
  width: auto;
  height: 480px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 50px rgba(0, 170, 255, 0.05));
}

/* Glow under device */
.hero__mockup::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60px;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* --- App Store Badge --- */
.hero__store-badge {
  position: relative;
  z-index: 1;

  /* Animation */
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.75s;
}

.store-badge-link {
  display: inline-block;
  transition: all var(--transition-base);
}

.store-badge-link:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.store-badge-link:active {
  transform: scale(1.02);
}

.store-badge-link img,
.store-badge-link svg {
  height: 52px;
  width: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 24px;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-small);
}

.footer__link {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__separator {
  color: var(--color-text-muted);
  user-select: none;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatDevice {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --font-size-hero: 2.25rem;
  }

  .navbar {
    width: calc(100% - 32px);
    padding: 0 16px;
    top: 12px;
  }

  .nav-brand__name {
    font-size: 1.05rem;
    letter-spacing: 1.4px;
  }

  .nav-cta {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 56px);
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__left {
    align-items: center;
  }

  .hero__mockup-img {
    height: 400px;
  }

  .hero__subheadline {
    margin-bottom: 30px;
  }

  .legal__title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-hero: 1.85rem;
  }

  .navbar {
    width: calc(100% - 24px);
    padding: 0 12px;
    top: 8px;
  }

  .nav-brand__name {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .hero__mockup-img {
    height: 320px;
  }

  .store-badge-link img,
  .store-badge-link svg {
    height: 44px;
  }

  .legal__title {
    font-size: 1.75rem;
  }
}

/* ============================================
   LEGAL PAGES (Terms, Privacy)
   ============================================ */
.legal {
  padding: calc(var(--nav-height) + 96px) 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal__header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.legal__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal__date {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.legal__body {
  color: var(--color-text-secondary);
  font-size: 0.975rem;
  line-height: 1.8;
}

.legal__body h2 {
  color: var(--color-text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal__body p {
  margin-bottom: 20px;
}

.legal__body ul {
  margin-left: 20px;
  margin-bottom: 24px;
}

.legal__body li {
  margin-bottom: 10px;
}

.legal__body a {
  word-break: break-all;
}
