:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --card: #ffffff;
  --accent-1: #6366f1;
  --accent-2: #ec4899;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --bg-alt: #11141d;
    --text: #e8eaf2;
    --muted: #949bb0;
    --border: #232838;
    --card: #151926;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.6);
  transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(99, 102, 241, 0.7); }

.btn-small { padding: 8px 18px; font-size: 0.9rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover { box-shadow: none; border-color: var(--muted); }

.btn-light {
  background: #fff;
  color: #1e1b4b;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  word-break: break-all;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  background: color-mix(in srgb, var(--accent-1) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}

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

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Phone illustration */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  position: absolute;
  width: 190px;
  height: 380px;
  border-radius: 36px;
  padding: 10px;
  background: #0f172a;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.5);
}

.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.phone-back {
  transform: translate(70px, 20px) rotate(10deg);
  opacity: 0.85;
}
.phone-back .screen { background: linear-gradient(160deg, #f472b6, #a855f7); }

.phone-front {
  transform: translate(-40px, -10px) rotate(-6deg);
}
.phone-front .screen {
  background: linear-gradient(160deg, #818cf8, #6366f1 50%, #4338ca);
  padding: 46px 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-grid span {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}
.app-grid span:nth-child(1) { background: #fff; }
.app-grid span:nth-child(5) { background: rgba(255, 255, 255, 0.6); }
.app-grid span:nth-child(9) { background: #f9a8d4; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 40px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.about .section-title { margin-bottom: 18px; }
.about p { color: var(--muted); font-size: 1.08rem; }

.facts { list-style: none; display: grid; gap: 14px; }

.facts li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.facts strong { font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: 0.93rem; }

/* Contact */
.contact-card {
  background: var(--gradient);
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-card p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .phone { width: 160px; height: 320px; }
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .contact-card { padding: 48px 20px; }
}
