:root {
  --color-primary: #e86c1d;
  --color-primary-light: #f28a3d;
  --color-primary-dark: #c45a12;
  --color-charcoal: #444444;
  --color-charcoal-dark: #333333;
  --color-bg: #ffffff;
  --color-bg-alt: #fdf8f4;
  --color-bg-warm: #fff7f0;
  --color-bg-dark: #2d2d2d;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-inverse: #f8f8f8;
  --color-border: #eee3d9;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --max-width: 1120px;
  --gutter: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

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

.header-logo img {
  height: 48px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--color-text);
}

/* ── Hero ── */

.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #fff7f0 0%, #fff1e6 40%, #fef3c7 100%);
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-charcoal-dark);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.badge svg {
  width: 18px;
  height: 18px;
}

.badge--award {
  background: var(--color-primary);
  color: white;
}

/* ── Section common ── */

section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal-dark);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
}

.section-sub.center {
  margin: 0 auto;
  text-align: center;
}

/* ── App showcase ── */

.app-showcase {
  background: var(--color-bg-alt);
}

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

.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: var(--color-charcoal-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  display: block;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-info .section-heading {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.feature-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-charcoal-dark);
}

.feature-text span {
  font-size: 0.925rem;
  color: var(--color-text-light);
}

/* ── Screenshots gallery ── */

.screenshots {
  background: var(--color-bg);
  overflow: hidden;
}

.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.screenshot-item {
  width: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.screenshot-item:hover {
  transform: translateY(-4px);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

/* ── Portfolio ── */

.portfolio {
  background: var(--color-bg-alt);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 108, 29, 0.08);
}

.portfolio-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-image--title {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.portfolio-image--title img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.portfolio-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal-dark);
}

.portfolio-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-warm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Features grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 108, 29, 0.08);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.feature-card-icon.orange {
  background: #fff1e6;
  color: var(--color-primary);
}

.feature-card-icon.amber {
  background: #fef3c7;
  color: #d97706;
}

.feature-card-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.feature-card-icon.rose {
  background: #ffe4e6;
  color: #e11d48;
}

.feature-card-icon.sky {
  background: #e0f2fe;
  color: #0284c7;
}

.feature-card-icon.teal {
  background: #ccfbf1;
  color: #0d9488;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal-dark);
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--color-text-light);
}

/* ── About ── */

.about {
  background: var(--color-bg-alt);
}

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

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(232, 108, 29, 0.25);
}

.about-avatar span {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: white;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ── FAQ ── */

.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Footer ── */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 48px 0 24px;
}

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

.footer-brand img {
  height: 40px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.925rem;
  color: #999;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.925rem;
  color: #ccc;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
}

/* ── Privacy page ── */

.page-header {
  padding: 120px 0 40px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-light);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--color-text);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase-visual {
    order: -1;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .screenshots-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 var(--gutter);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .screenshot-item {
    scroll-snap-align: center;
    width: 180px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem var(--gutter);
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  section {
    padding: 60px 0;
  }

  .phone-frame {
    width: 220px;
  }

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