/* ===== Variables ===== */
:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --cream: #f3e8d8;
  --brown: #4a3728;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--amber-50) 0%, #fff7ed 100%);
  min-height: 100vh;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--slate-600);
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--amber-100);
  transition: all 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--amber-700);
  border: 2px solid var(--amber-200);
}

.btn-secondary:hover {
  background: var(--amber-50);
  border-color: var(--amber-300);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background:
    radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--slate-600);
}

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

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--amber-50) 0%, white 100%);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  padding: 2rem 1rem 1rem;
  color: white;
  text-align: center;
}

.phone-header h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.phone-header p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.phone-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-card {
  background: white;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-card-icon {
  width: 40px;
  height: 40px;
  background: var(--amber-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.phone-card-text h5 {
  font-size: 0.875rem;
  color: var(--slate-800);
  margin-bottom: 0.125rem;
}

.phone-card-text p {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.phone-screen-real {
  padding: 0;
}

.phone-screen-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}

.floating-emoji {
  position: absolute;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.floating-emoji:nth-child(1) {
  top: 10%;
  left: -20%;
  animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
  top: 30%;
  right: -15%;
  animation-delay: 0.5s;
}

.floating-emoji:nth-child(3) {
  bottom: 20%;
  left: -15%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* ===== Features Section ===== */
.features {
  background: white;
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.features-header h2 {
  color: var(--brown);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--slate-50);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--amber-200);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--amber-100) 0%, var(--amber-200) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--slate-800);
}

.feature-card p {
  color: var(--slate-600);
}

/* ===== How It Works ===== */
.how-it-works {
  background: linear-gradient(180deg, var(--amber-50) 0%, white 100%);
}

.how-it-works-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.how-it-works-header h2 {
  color: var(--brown);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.step h3 {
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--slate-600);
}

/* ===== Screenshots Gallery ===== */
.screenshots {
  background: white;
  overflow: hidden;
}

.screenshots-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.screenshots-header h2 {
  color: var(--brown);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.screenshot-item {
  text-align: center;
}

.screenshot-phone {
  background: #1a1a1a;
  border-radius: 24px;
  padding: 8px;
  margin-bottom: 1rem;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot-phone:hover {
  transform: translateY(-10px);
}

.screenshot-phone img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.screenshot-item h4 {
  color: var(--slate-800);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.screenshot-item p {
  color: var(--slate-500);
  font-size: 0.875rem;
}

@media (max-width: 968px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .screenshot-phone {
    border-radius: 16px;
    padding: 5px;
  }

  .screenshot-phone img {
    border-radius: 12px;
  }
}

/* ===== Highlights Section ===== */
.highlights {
  background: var(--brown);
  color: white;
}

.highlights-header {
  text-align: center;
  margin-bottom: 4rem;
}

.highlights-header h2 {
  color: white;
}

.highlights-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.highlight-item {
  padding: 1.5rem;
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight-item h3 {
  color: var(--amber-400);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== PWA Section ===== */
.pwa-section {
  background: white;
}

.pwa-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pwa-text h2 {
  color: var(--brown);
}

.pwa-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.pwa-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pwa-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--slate-700);
}

.pwa-features li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--amber-100);
  color: var(--amber-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

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

.install-demo {
  background: var(--slate-100);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  max-width: 300px;
}

.install-demo img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.install-demo h4 {
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.install-demo p {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.install-demo .btn {
  width: 100%;
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  text-align: center;
  color: white;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-secondary {
  background: white;
  color: var(--amber-700);
  border: none;
}

.cta .btn-secondary:hover {
  background: var(--amber-50);
  transform: translateY(-2px);
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
footer {
  background: var(--slate-900);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.875rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--slate-500);
  font-size: 0.875rem;
}

.responsibility-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-400);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .hero-image {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
  }

  .floating-emoji {
    display: none;
  }

  .pwa-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pwa-features {
    display: inline-block;
    text-align: left;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .phone-mockup {
    width: 200px;
    height: 420px;
  }
}
