:root {
  --bg: #07070c;
  --surface: #0f0f17;
  --surface2: #161622;
  --border: rgba(255,255,255,.08);
  --text: #f4f4f8;
  --muted: rgba(255,255,255,.45);
  --accent: #8b3dff;
  --accent2: #a366ff;
  --violet: #7c1aff;
  --emerald: #10b981;
  --radius: 16px;
  --font: 'Cairo', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
img { max-width: 100%; display: block; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,61,255,.18), transparent),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(99,102,241,.1), transparent);
}

.container { width: min(1140px, 92vw); margin: 0 auto; position: relative; z-index: 1; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(135deg, #a366ff, #6366f1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glass {
  background: rgba(15,15,23,.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4vw;
  background: rgba(7,7,12,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-weight: 800; font-size: 1.25rem; color: #fff;
}
.nav-brand span { color: var(--accent2); }
.nav-brand small { font-size: .55rem; opacity: .35; margin-right: .35rem; letter-spacing: .15em; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 600; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.25rem; border-radius: 12px; font-weight: 700; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff; box-shadow: 0 8px 32px rgba(139,61,255,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(139,61,255,.35); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--border); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .45rem .9rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 4rem 0 5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.badge {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(139,61,255,.12); border: 1px solid rgba(139,61,255,.25);
  color: var(--accent2); font-size: .75rem; font-weight: 700; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 800; margin-bottom: 1rem; }
.lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--accent2); }
.hero-stats span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* Sections */
.section { padding: 4.5rem 0; position: relative; z-index: 1; }
.section-dark { background: rgba(15,15,23,.5); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem;
}
.feature-card {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: .25s;
}
.feature-card:hover { border-color: rgba(139,61,255,.35); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-icon.violet { background: rgba(124,26,255,.15); }
.feature-icon.accent { background: rgba(139,61,255,.15); }
.feature-icon.orange { background: rgba(249,115,22,.12); }
.feature-icon.emerald { background: rgba(16,185,129,.12); }
.feature-icon.amber { background: rgba(245,158,11,.12); }
.feature-icon.blue { background: rgba(99,102,241,.12); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { font-size: .88rem; color: var(--muted); }

/* Screens showcase */
.screens-showcase { display: flex; flex-direction: column; gap: 2rem; }
.screen-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.screen-block.half { min-width: 0; }
.screen-label {
  font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.screen-label span {
  color: var(--accent2); font-size: .7rem; padding: .2rem .5rem;
  border: 1px solid rgba(139,61,255,.3); border-radius: 6px;
}

/* Mock app UI */
.mock-app {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(139,61,255,.2);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 40px rgba(139,61,255,.08);
  background: #0a0a0f;
}
.mock-titlebar {
  display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem;
  background: rgba(15,15,23,.95); border-bottom: 1px solid var(--border);
}
.mock-titlebar .dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-titlebar .r { background: #ff5f57; }
.mock-titlebar .y { background: #febc2e; }
.mock-titlebar .g { background: #28c840; }
.mock-title { margin-right: auto; font-size: .65rem; color: var(--muted); }
.mock-body { padding: 1rem; min-height: 180px; }

.welcome-body { text-align: center; padding: 1.5rem 1rem; }
.mock-logo { font-weight: 800; font-size: 1.1rem; margin-bottom: .35rem; }
.mock-logo span { color: var(--accent2); }
.mock-tagline { font-size: .7rem; color: var(--muted); margin-bottom: 1rem; }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-bottom: .75rem; }
.mock-card {
  padding: .6rem .4rem; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); font-size: .55rem;
}
.mock-card strong { display: block; margin-top: .25rem; }
.mock-card.c1 { border-color: rgba(124,26,255,.3); }
.mock-card.c2 { border-color: rgba(139,61,255,.3); }
.mock-card.c3 { border-color: rgba(249,115,22,.3); }
.mock-tools { display: flex; gap: .5rem; justify-content: center; }
.mock-tool {
  font-size: .55rem; padding: .35rem .6rem; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
}

.workspace-body { display: flex; gap: .5rem; min-height: 160px; padding: .75rem; }
.mock-sidebar { width: 70px; flex-shrink: 0; }
.mock-sidebar.wide { width: 90px; }
.mock-thumb {
  aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg,#333,#555);
  border: 2px solid var(--accent);
}
.mock-meta { font-size: .5rem; color: var(--muted); margin-top: .4rem; text-align: center; }
.mock-file-row {
  height: 22px; border-radius: 6px; background: rgba(255,255,255,.06);
  margin-bottom: .35rem;
}
.mock-canvas { flex: 1; background: rgba(255,255,255,.02); border-radius: 8px; padding: .5rem; }
.mock-roll {
  height: 100%; min-height: 120px; border: 1px dashed rgba(139,61,255,.35);
  border-radius: 6px; display: flex; flex-wrap: wrap; gap: .35rem; align-content: flex-start; padding: .4rem;
}
.mock-logo-item {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(139,61,255,.4), rgba(99,102,241,.3));
}
.mock-roll.gang { position: relative; }
.mock-gang {
  position: absolute; border-radius: 4px;
  background: linear-gradient(135deg, rgba(16,185,129,.35), rgba(139,61,255,.25));
  border: 1px solid rgba(255,255,255,.1);
}
.mock-gang.a { width: 35%; height: 40%; top: 8%; left: 5%; }
.mock-gang.b { width: 25%; height: 35%; top: 10%; right: 8%; }
.mock-gang.c { width: 40%; height: 30%; bottom: 15%; left: 10%; }
.mock-gang.d { width: 22%; height: 28%; bottom: 12%; right: 12%; }

.dialog-body { padding: 1rem; }
.mock-checker {
  height: 100px; border-radius: 10px; margin-bottom: .75rem; position: relative;
  background:
    linear-gradient(45deg,#222 25%,transparent 25%,transparent 75%,#222 75%),
    linear-gradient(45deg,#222 25%,transparent 25%,transparent 75%,#222 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px;
  background-color: #1a1a24;
  display: grid; place-items: center;
}
.mock-cutout {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b3dff);
  box-shadow: 0 0 20px rgba(139,61,255,.5);
}
.mock-compare {
  height: 100px; border-radius: 10px; overflow: hidden; position: relative; margin-bottom: .75rem;
  background: #1a1a24;
}
.mock-before, .mock-after {
  position: absolute; inset: 0;
}
.mock-before {
  background: linear-gradient(135deg, #444, #666); width: 50%;
}
.mock-after {
  background: linear-gradient(135deg, #6366f1, #8b3dff); left: 50%; width: 50%;
}
.mock-before span, .mock-after span {
  position: absolute; top: 6px; font-size: .55rem; padding: .15rem .4rem;
  background: rgba(0,0,0,.5); border-radius: 4px;
}
.mock-before span { right: 6px; }
.mock-after span { left: 6px; }
.mock-slider-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.5);
}
.mock-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.mock-btn {
  font-size: .6rem; padding: .35rem .65rem; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted);
}
.mock-btn.primary { background: rgba(139,61,255,.2); border-color: rgba(139,61,255,.4); color: #fff; }
.mock-progress { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.mock-progress-bar { width: 72%; height: 100%; background: var(--accent); border-radius: 4px; }

/* CTA */
.cta-section { padding-bottom: 5rem; }
.cta-box { text-align: center; padding: 3rem 2rem; }
.cta-box h2 { margin-bottom: .5rem; }
.cta-box p { color: var(--muted); margin-bottom: 1.5rem; }

/* About */
.page-hero { padding-top: 3rem; text-align: center; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem;
}
.about-card { padding: 1.75rem; }
.about-card h3 { margin-bottom: .75rem; }
.about-list { list-style: none; }
.about-list li {
  padding: .4rem 0; padding-right: 1.2rem; position: relative; color: var(--muted); font-size: .92rem;
}
.about-list li::before { content: '✓'; position: absolute; right: 0; color: var(--emerald); }
.contact-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-btns.vertical { flex-direction: column; }
.contact-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 10px; font-weight: 700; font-size: .85rem;
  border: 1px solid var(--border); color: #fff; transition: .2s;
}
.contact-btn.wa { border-color: rgba(37,211,102,.3); background: rgba(37,211,102,.08); }
.contact-btn.wa:hover { background: rgba(37,211,102,.15); }
.contact-btn.fb { border-color: rgba(24,119,242,.3); background: rgba(24,119,242,.08); }
.contact-btn.fb:hover { background: rgba(24,119,242,.15); }
.contact-btn.phone { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04); }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 3rem 0 1.5rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 { margin-bottom: .75rem; font-size: .9rem; }
.footer a { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .35rem; }
.footer a:hover { color: #fff; }
.copyright { text-align: center; font-size: .75rem; color: rgba(255,255,255,.2); }

.logo-mark { font-weight: 800; font-size: 1.1rem; }
.logo-mark span { color: var(--accent2); }

/* Install */
.install-page {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem;
}
.install-card { padding: 2.5rem; max-width: 420px; width: 100%; text-align: center; }
.install-card h1 { margin: 1rem 0 .5rem; }
.form-stack { text-align: right; margin-top: 1.5rem; }
.form-stack label { display: block; font-size: .85rem; margin: .75rem 0 .35rem; color: var(--muted); }
.form-stack input {
  width: 100%; padding: .65rem .85rem; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0,0,0,.3); color: #fff; font-family: inherit;
}
.alert { padding: .75rem 1rem; border-radius: 10px; margin: 1rem 0; font-size: .88rem; }
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }

@media (max-width: 900px) {
  .hero-grid, .screen-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--surface);
    padding: 1rem 4vw; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}
