/* =========================================================
   FlyBrew — дрон-кофейня будущего
   ========================================================= */

:root {
  /* Цвета */
  --bg: #0a0a12;
  --bg-alt: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);

  --text: #f2f2f9;
  --text-dim: #a3a3b8;
  --text-dimmer: #6f6f88;

  --neon-cyan: #35f2e0;
  --neon-purple: #b46bff;
  --neon-green: #7bff8a;

  --gradient-brand: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  --gradient-bg: radial-gradient(circle at 20% 10%, rgba(53, 242, 224, 0.12), transparent 40%),
                 radial-gradient(circle at 80% 0%, rgba(180, 107, 255, 0.15), transparent 45%),
                 radial-gradient(circle at 50% 100%, rgba(53, 242, 224, 0.08), transparent 50%);

  /* Шрифты */
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Разное */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-neon: 0 0 40px rgba(53, 242, 224, 0.15);
  --container-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: var(--gradient-bg);
  background-attachment: fixed;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input {
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input::placeholder { color: var(--text-dimmer); }

input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 224, 0.15);
}

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

.accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.eyebrow--center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  text-align: center;
}

.section-title--left { text-align: left; }

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

section { position: relative; padding: 120px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #06060c;
  box-shadow: 0 0 25px rgba(53, 242, 224, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(53, 242, 224, 0.55);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.btn--small { padding: 10px 22px; font-size: 0.85rem; }
.btn--large { padding: 17px 34px; font-size: 1rem; }
.btn--full { width: 100%; padding: 16px; }

/* ---------- Glassmorphism card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 40px 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 242, 224, 0.35);
  box-shadow: var(--shadow-neon);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo__icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(53, 242, 224, 0.6));
}

.nav {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.header__cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 190px 0 140px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  top: -150px;
  left: -100px;
  opacity: 0.18;
}

.hero__glow--2 {
  width: 450px;
  height: 450px;
  background: var(--neon-purple);
  top: 50px;
  right: -150px;
  opacity: 0.2;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero__subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-dimmer);
  max-width: 120px;
}

/* ---------- Drone visual ---------- */
.drone-scene {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drone-scene__window {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(53, 242, 224, 0.08), rgba(180, 107, 255, 0.08));
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.drone-scene__window::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.drone-scene__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(53, 242, 224, 0.25);
}

.drone-scene__ring--1 {
  width: 380px;
  height: 380px;
  animation: spin 30s linear infinite;
}

.drone-scene__ring--2 {
  width: 440px;
  height: 440px;
  border-color: rgba(180, 107, 255, 0.2);
  animation: spin 45s linear infinite reverse;
}

.drone-scene__drone {
  position: absolute;
  font-size: 5rem;
  z-index: 2;
  animation: hover 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 25px rgba(53, 242, 224, 0.35));
}

.drone-scene__cup {
  position: absolute;
  font-size: 2.6rem;
  bottom: 90px;
  right: 100px;
  animation: hover 3.5s ease-in-out infinite 0.5s;
  filter: drop-shadow(0 10px 15px rgba(180, 107, 255, 0.4));
}

@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.br-desktop { display: inline; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how { background: var(--bg-alt); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step { position: relative; }

.step__num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-dimmer);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.step__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step__text {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #06060c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(53, 242, 224, 0.5);
}

.price-card--hit {
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 50px rgba(53, 242, 224, 0.2);
  transform: scale(1.04);
}

.price-card--hit:hover { transform: scale(1.04) translateY(-6px); }

.price-card__name {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.price-card__desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 24px;
  min-height: 40px;
}

.price-card__price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
}

.price-card__period {
  color: var(--text-dimmer);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.price-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.price-card__list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}

.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-weight: 700;
}

/* =========================================================
   FAQ / ACCORDION
   ========================================================= */
.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.accordion__item.is-open {
  border-color: rgba(53, 242, 224, 0.4);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.accordion__icon {
  font-size: 1.4rem;
  color: var(--neon-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}

.accordion__body p {
  color: var(--text-dim);
  font-size: 0.94rem;
  padding-bottom: 22px;
}

/* =========================================================
   ORDER / FINAL CTA
   ========================================================= */
.order__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.order__text {
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 480px;
}

.order__perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order__perks li {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.order-form__title {
  font-size: 1.4rem;
  margin-bottom: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field__label {
  font-size: 0.82rem;
  color: var(--text-dimmer);
  font-weight: 500;
}

.order-form__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--neon-green);
  min-height: 20px;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-alt);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.logo--footer { font-size: 1.2rem; }

.footer__tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 380px;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--neon-cyan); }

.footer__social {
  display: flex;
  gap: 18px;
  font-size: 1.3rem;
}

.footer__copy {
  color: var(--text-dimmer);
  font-size: 0.78rem;
  margin-top: 14px;
}

/* =========================================================
   SCROLL REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children of grids that share a parent */
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.steps .reveal:nth-child(4) { transition-delay: 0.3s; }

.pricing__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.pricing__grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card--hit { transform: scale(1); order: -1; }
  .price-card--hit:hover { transform: translateY(-6px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .drone-scene { height: 320px; }
  .order__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 88px 0; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__cta { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .br-desktop { display: none; }
  .hero { padding: 150px 0 90px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__stats { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 2.1rem; }
  .drone-scene__drone { font-size: 3.6rem; }
  .drone-scene__window { width: 240px; height: 240px; }
  .drone-scene__ring--1 { width: 280px; height: 280px; }
  .drone-scene__ring--2 { width: 320px; height: 320px; }
}
