/* CutMate landing — tokens matched to Flutter app theme */
:root {
  --bg: #050305;
  --bg-elevated: #141014;
  --bg-card: #1a151a;
  --primary: #f9c5a1;
  --secondary: #f6be98;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-soft: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Poppins", sans-serif;
  --max-width: 1120px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.page-glow--left {
  top: -120px;
  left: -180px;
  background: #f9c5a1;
}

.page-glow--right {
  bottom: 10%;
  right: -160px;
  background: #87ceeb;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(16px);
  background: rgba(5, 3, 5, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.nav__name {
  font-size: 22px;
  font-weight: 600;
}

.nav__links {
  display: none;
  gap: 28px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(249, 197, 161, 0.25);
}

.btn--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(249, 197, 161, 0.4);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--secondary);
}

.hero__title span {
  color: var(--text);
}

.hero__subtitle {
  max-width: 480px;
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badges--center {
  justify-content: center;
}

.store-badge {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge img {
  display: block;
  width: 180px;
  height: auto;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge--button {
  font: inherit;
}

.inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stats strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.hero__stats span {
  font-size: 12px;
  color: var(--text-soft);
}

/* Phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.phone {
  width: min(260px, 72vw);
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a222a, #0d0b0d);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone__screen {
  overflow: hidden;
  border-radius: 28px;
  background: #000;
}

.phone__header {
  display: flex;
  gap: 6px;
  padding: 14px 16px 10px;
}

.phone__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.phone__content {
  position: relative;
  padding: 0;
}

.phone__content--screenshot {
  display: block;
  line-height: 0;
}

.phone__screenshot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.style-grid {
  position: relative;
  height: 300px;
}

.style-card {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 25px;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.style-card--1 {
  top: 8%;
  left: 4%;
  transform: rotate(-8deg);
}

.style-card--2 {
  top: 14%;
  right: 4%;
  transform: rotate(8deg);
}

.style-card--3 {
  bottom: 8%;
  left: 8%;
  transform: rotate(-6deg);
}

.style-card--4 {
  bottom: 14%;
  right: 6%;
  transform: rotate(6deg);
}

/* Screenshots gallery */
.section--screenshots {
  padding-top: 32px;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2));
}

.screenshots {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
}

.screenshots__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.screenshots__nav {
  display: none;
  gap: 10px;
}

.screenshots__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.screenshots__arrow:hover {
  border-color: rgba(249, 197, 161, 0.45);
  background: rgba(249, 197, 161, 0.08);
}

.screenshots__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 197, 161, 0.35) transparent;
}

.screenshots__track::-webkit-scrollbar {
  height: 6px;
}

.screenshots__track::-webkit-scrollbar-thumb {
  background: rgba(249, 197, 161, 0.35);
  border-radius: 999px;
}

.screenshot-card {
  flex: 0 0 min(220px, 62vw);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  line-height: 0;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 166 / 296;
  object-fit: contain;
  object-position: center;
}

/* Modal */
.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(249, 197, 161, 0.25);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
}

.modal__text {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.phone__pill {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 10px 28px;
  border-radius: 22px;
  background: var(--primary);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hero__badge {
  position: absolute;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.hero__badge--top {
  top: 8%;
  right: 4%;
}

.hero__badge--bottom {
  bottom: 12%;
  left: 0;
  color: var(--primary);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 72px 24px;
}

.section--dark {
  background: rgba(0, 0, 0, 0.35);
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2));
}

.section__head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--secondary);
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(249, 197, 161, 0.25);
  transform: translateY(-2px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(249, 197, 161, 0.12);
  color: var(--primary);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
}

.step__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Premium */
.premium {
  display: grid;
  gap: 32px;
  align-items: start;
}

.premium__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
}

.premium__pro {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--primary);
  color: #000;
  font-size: 13px;
  font-weight: 700;
}

.premium__list {
  margin: 24px 0 0;
  padding: 24px;
  list-style: none;
  border-radius: 20px;
  background: var(--bg-elevated);
}

.premium__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}

.premium__list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--primary);
  font-weight: 700;
}

.premium__plans {
  display: grid;
  gap: 12px;
}

.plan-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1.4px solid transparent;
}

.plan-card--selected {
  border-color: var(--primary);
}

.plan-card__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.plan-card__sub {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.plan-card__price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.plan-card__price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: 0 24px 88px;
}

.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(249, 197, 161, 0.14), rgba(20, 16, 20, 0.9));
  border: 1px solid rgba(249, 197, 161, 0.2);
}

.cta__inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--secondary);
}

.cta__inner > p {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__note {
  margin: 20px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
}

.footer__brand p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__copy {
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
}

/* Responsive */
@media (min-width: 768px) {
  .screenshots__nav {
    display: flex;
  }

  .screenshot-card {
    flex-basis: 240px;
  }

  .nav__links {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 72px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .premium {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .premium__plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero__visual {
    justify-content: flex-end;
    padding-right: 24px;
  }
}
