/* ============================================
   Face Buddy Website — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

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

:root {
  --bg-root: #0A0A0F;
  --bg-default: #141420;
  --bg-secondary: #1E1E2E;
  --border: #2A2A3A;
  --border-light: #3A3A4A;
  --text-primary: #ECEDEE;
  --text-secondary: #9BA1A6;
  --text-tertiary: #6B7280;
  --blue-500: #5BC8FF;
  --blue-600: #3AB8F0;
  --blue-glow: rgba(91, 200, 255, 0.15);
  --blue-glow-strong: rgba(91, 200, 255, 0.25);
  --success: #86EFAC;
  --warning: #FDE68A;
  --error: #FCA5A5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-600);
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--bordered {
  border-top: 1px solid var(--border);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text-primary);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  position: relative;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue-500), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--blue-500);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}

.hero__cta:hover {
  background: var(--blue-600);
  color: #000;
  transform: translateY(-1px);
}

.hero__app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 32px;
  box-shadow: 0 8px 32px rgba(91, 200, 255, 0.2);
}

/* ============================================
   Features
   ============================================ */

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-default);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-glow-strong);
  border: 2px solid var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-500);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ============================================
   Footer
   ============================================ */

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

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

.footer__copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-secondary);
}

/* ============================================
   Legal Pages (Privacy, Support, Terms)
   ============================================ */

.legal {
  padding: 140px 0 80px;
}

.legal h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal ul, .legal ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}

.legal li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Support Page
   ============================================ */

.support-card {
  background: var(--bg-default);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.support-card h3 {
  margin-bottom: 12px;
}

.support-card a {
  font-weight: 600;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 130px 0 60px; }
  .section { padding: 60px 0; }

  .nav__links {
    gap: 16px;
  }

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

@media (max-width: 480px) {
  .nav__links {
    display: none;
  }
}
