/* ============================================
   Alba Landing Page - Design Tokens & Styles
   ============================================ */

/* --- CSS Custom Properties (from Figma tokens) --- */
:root {
  /* Primary */
  --primary-600: #c6531d;
  --primary-500: #f07230;
  --primary-400: #fca679;
  --primary-300: #ffccb1;
  --primary-100: #ffeee5;

  /* Secondary */
  --secondary-600: #ffb93b;
  --secondary-500: #ffc44a;

  /* Yellow */
  --yellow-200: #ffda8f;
  --yellow-100: #ffefce;

  /* Neutral */
  --neutral-900: #0f0f0f;
  --neutral-800: #272727;
  --neutral-700: #4a3f3f;
  --neutral-500: #957c7c;
  --neutral-200: #ddc4c4;
  --neutral-100: #f8f5f5;
  --neutral-50: #ffffff;
  --neutral-50-10: rgba(255, 255, 255, 0.1);
  --neutral-50-5: rgba(255, 255, 255, 0.05);

  /* Tertiary */
  --tertiary-600: #448fff;
  --tertiary-300: #9ec5ff;
  --tertiary-100: #d3e5ff;

  /* Red */
  --red: #ff383c;
  --red-200: #ff7d80;

  /* Shadows */
  --shadow: 0 0 20px rgba(121, 64, 34, 0.4);
  --shadow-orange: 0 0 20px rgba(252, 166, 121, 0.4);

  /* Gradients */
  --bg-gradient: linear-gradient(336deg, rgba(237, 237, 237, 0.6) 0%, rgba(158, 197, 255, 0.6) 100%);
  --gradient-warm: linear-gradient(336deg, rgba(237, 237, 237, 0.6) 0%, rgba(255, 204, 177, 0.6) 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Typography --- */
.text-title-large {
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
}

.text-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
}

.text-title-s {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.text-body-bold {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.text-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.text-body-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.text-caption {
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

.nav-brand span {
  font-size: 20px;
  font-weight: 900;
  color: var(--neutral-900);
}

.nav-download-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-download-badge:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.nav-download-badge img {
  height: 40px;
  width: auto;
}

/* --- Hero Section --- */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--primary-100) 0%, var(--neutral-50) 100%);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-500);
  color: white;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--neutral-900);
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--primary-500);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--neutral-700);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

.hero-visual {
  flex: 0 0 320px;
  position: relative;
}

.hero-phone {
  width: 280px;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(240, 114, 48, 0.25);
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-100);
  color: var(--primary-600);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  line-height: 28px;
  color: var(--neutral-500);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--neutral-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--neutral-500);
}

/* --- Screenshots Gallery --- */
.gallery {
  padding: 80px 0;
  background: var(--neutral-900);
  overflow: hidden;
}

.gallery .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-400);
}

.gallery .section-title {
  color: var(--neutral-50);
}

.gallery .section-subtitle {
  color: var(--neutral-200);
}

.gallery-track {
  display: flex;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1396px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 260px;
  scroll-snap-align: center;
}

.gallery-item img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--neutral-50) 0%, var(--primary-100) 50%, var(--neutral-50) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

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

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-500);
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  line-height: 20px;
  color: var(--neutral-500);
  max-width: 280px;
  margin: 0 auto;
}

/* connector lines between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -24px;
  width: 48px;
  height: 2px;
  background: var(--primary-300);
}

/* --- CTA Section --- */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta-card {
  background: var(--primary-500);
  border-radius: 32px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--secondary-500);
  opacity: 0.2;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary-600);
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  color: white;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta .app-store-badge img {
  height: 54px;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-900);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--neutral-500);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--neutral-500);
}

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

@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 32px;
  }

  .cta-title {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    gap: 32px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
  }

  .hero-phone {
    width: 240px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-item {
    flex: 0 0 220px;
  }

  .cta-card {
    padding: 48px 24px;
    border-radius: 24px;
  }

  .cta-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .gallery-item {
    flex: 0 0 200px;
  }

  .nav-download-badge img {
    height: 32px;
  }
}
