:root {
  --bg-1: #0f0c29;
  --bg-2: #302b63;
  --bg-3: #24243e;
  --grad-1: #667eea;
  --grad-2: #764ba2;
  --text: rgba(255, 255, 255, 0.87);
  --text-dim: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --maxw: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

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

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.grad {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 41, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.logo-text strong {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.35);
  color: #aab6ff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--grad-1);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(320px, 70vw);
  border-radius: 32px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(3deg);
}

.phone-frame img {
  border-radius: 22px;
  width: 100%;
}

.hero-card {
  position: absolute;
  bottom: -14px;
  left: -10px;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.9);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: blink 1.6s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.7rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature-card {
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, background 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* Steps */
.steps,
.steps-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.steps-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

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

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 26px rgba(102, 126, 234, 0.4);
}

.step h3 {
  margin-bottom: 0.5rem;
}

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

.phase + .phase {
  margin-top: 3.5rem;
}

.phase-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #aab6ff;
  margin-bottom: 1.6rem;
}

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.screen-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s;
}

.screen-card:hover {
  transform: translateY(-4px);
}

.screen-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.screen-card figcaption {
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* FAQ */
.faq-wrap {
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

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

.faq-arrow {
  color: var(--text-dim);
  font-size: 0.7rem;
  transition: transform 0.25s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* CTA */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(118, 75, 162, 0.14));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 24px;
  padding: 3.5rem 2rem;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.cta-box p {
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  padding-top: 3rem;
}

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

.footer-logo {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a,
.footer-contacts a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contacts a:hover {
  color: #fff;
}

.footer-contacts p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Mobile nav */
.nav-links.open {
  display: flex;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid,
  .steps,
  .steps-2,
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    transform: none;
  }

  .hero-card {
    position: static;
    margin-top: -46px;
    width: fit-content;
  }

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

@media (max-width: 640px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 12, 41, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .features-grid,
  .steps,
  .steps-2,
  .screens-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }
}
