/* ============================================
   OfflineRollCall Landing Page - Design Tokens
   ============================================ */
:root {
  --color-bg: #0f0f12;
  --color-bg-elevated: #18181c;
  --color-surface: #1e1e24;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-accent: #8b5cf6;
  --color-accent-hover: #a78bfa;
  --color-accent-muted: rgba(139, 92, 246, 0.15);
  --color-success: #22c55e;
  --font-sans: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(15, 15, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}

.hero__content {
  flex: 1;
  max-width: 540px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero__description {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: white;
  border: none;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn--secondary {
  background: var(--color-accent-muted);
  color: var(--color-accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn--secondary:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--color-accent);
}

/* Hero Visual - Phone Mockup */
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__phone-frame {
  position: relative;
  max-width: 320px;
  width: 100%;
  padding: 2px;
  background: transparent;
  border: 5px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero__mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================
   Responsive - Hero
   ============================================ */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    max-width: 280px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 1rem 3rem;
    gap: 2.5rem;
  }

  .hero__phone-frame {
    max-width: 260px;
    padding: 10px;
    border-width: 4px;
  }

  .hero__mockup {
    border-radius: var(--radius-sm);
  }
}

/* ============================================
   Section Common
   ============================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

/* ============================================
   Feature Blocks (with mockups)
   ============================================ */
.feature-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.feature-block:last-of-type {
  margin-bottom: 4rem;
}

.feature-block--reverse {
  flex-direction: row-reverse;
}

.feature-block__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-block__content {
  flex: 1;
  max-width: 480px;
}

.feature-block--reverse .feature-block__content {
  margin-left: 0;
  margin-right: auto;
}

.feature-block:not(.feature-block--reverse) .feature-block__content {
  margin-left: auto;
  margin-right: 0;
}

.feature-block__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-block__desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.phone-frame {
  max-width: 280px;
  width: 100%;
  padding: 2px;
  background: transparent;
  border: 5px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.phone-frame__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================
   Features Grid (text-only cards)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.feature-card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   Who Is This App For
   ============================================ */
.audience {
  background: var(--color-bg-elevated);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.audience-card__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.audience-card__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ============================================
   Why Choose This App
   ============================================ */
.why-list {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
}

.why-list__item {
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-text);
}

.why-list__item:last-child {
  margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 5rem 1.5rem;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.footer__content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.footer__tagline {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

/* ============================================
   Responsive - Features & Sections
   ============================================ */
@media (max-width: 968px) {
  .feature-block,
  .feature-block--reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .feature-block__content {
    max-width: 100%;
    text-align: center;
  }

  .feature-block--reverse .feature-block__content,
  .feature-block:not(.feature-block--reverse) .feature-block__content {
    margin-left: auto;
    margin-right: auto;
  }

  .phone-frame {
    max-width: 260px;
    border-width: 4px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .section__title {
    margin-bottom: 2rem;
  }

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

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