/* ============================================
   WEBDEMOS — Modern Demo Landing Page
   ============================================ */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-soft: #e0e7ff;
  --mint: #10b981;
  --pink: #ec4899;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --white: #ffffff;
  --off-white: #f8fafc;
  --grey: #94a3b8;
  --text: #0f172a;
  --text-light: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(15,23,42,.12);
  --radius: 16px;
  --transition: all .3s ease;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Sora', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

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

/* ============ Header ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.logo span { background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-light);
}

.nav a:hover { color: var(--text); background: var(--off-white); }

.nav .btn-primary {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: 8px;
}
.nav .btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 160px 0 80px;
  background:
    radial-gradient(800px circle at 15% 20%, rgba(99,102,241,.08), transparent 45%),
    radial-gradient(700px circle at 85% 10%, rgba(236,72,153,.07), transparent 45%),
    linear-gradient(180deg, #f8fafc, #ffffff);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .3px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid #e2e8f0;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.stat p {
  font-size: .85rem;
  color: var(--grey);
  margin: 0;
}

/* Hero visual — browser mockup */
.hero-visual {
  position: relative;
}

.browser {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: var(--transition);
}

.browser:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--off-white);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.browser-dots i:nth-child(1) { background: #f87171; }
.browser-dots i:nth-child(2) { background: #fbbf24; }
.browser-dots i:nth-child(3) { background: #34d399; }

.browser-url {
  flex: 1;
  margin-left: 8px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 6px;
  font-size: .75rem;
  color: var(--grey);
  border: 1px solid rgba(15,23,42,.06);
}

.browser-body {
  padding: 24px;
}

.mini-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.mini-nav .logo-dot {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
}
.mini-nav .mini-link {
  width: 40px; height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}
.mini-nav .mini-btn {
  width: 60px; height: 22px;
  border-radius: 6px;
  background: var(--accent);
  margin-left: auto;
}

.mini-hero {
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  border-radius: 12px;
  padding: 24px;
}
.mini-hero .line {
  width: 70%; height: 12px;
  border-radius: 6px;
  background: var(--accent);
  margin-bottom: 10px;
}
.mini-hero .line2 {
  width: 50%; height: 8px;
  border-radius: 4px;
  background: #c7d2fe;
  margin-bottom: 18px;
}
.mini-hero .pill {
  width: 90px; height: 26px;
  border-radius: 8px;
  background: var(--accent);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.mini-card {
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}
.mini-card .thumb {
  width: 100%; height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
  margin-bottom: 10px;
}
.mini-card .l1 { width: 80%; height: 7px; border-radius: 4px; background: #e2e8f0; margin-bottom: 6px; }
.mini-card .l2 { width: 60%; height: 7px; border-radius: 4px; background: #f1f5f9; }

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(15,23,42,.06);
  animation: float 4s ease-in-out infinite;
}

.float-card .fc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.float-card p { font-size: .8rem; font-weight: 600; margin: 0; }
.float-card small { font-size: .7rem; color: var(--grey); }

.fc-1 { top: 40px; right: -20px; }
.fc-2 { bottom: 40px; left: -30px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ Section header ============ */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .tag {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ============ Demos grid ============ */
.demos {
  background: var(--off-white);
}

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

.demo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.demo-preview {
  position: relative;
  padding: 20px;
  background: var(--off-white);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.demo-browser {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.db-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #f1f5f9;
}
.db-bar i { width: 7px; height: 7px; border-radius: 50%; }
.db-bar i:nth-child(1) { background: #f87171; }
.db-bar i:nth-child(2) { background: #fbbf24; }
.db-bar i:nth-child(3) { background: #34d399; }
.db-bar span { flex: 1; margin-left: 6px; height: 12px; background: #fff; border-radius: 4px; }

.db-body {
  padding: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Theme colors */
.theme-restaurant { --t1: #b45309; --t2: #f59e0b; --t3: #fef3c7; }
.theme-dental     { --t1: #0d9488; --t2: #14b8a6; --t3: #ccfbf1; }
.theme-gym        { --t1: #dc2626; --t2: #ef4444; --t3: #fee2e2; }
.theme-spa        { --t1: #be185d; --t2: #ec4899; --t3: #fce7f3; }
.theme-fitness    { --t1: #7c3aed; --t2: #8b5cf6; --t3: #ede9fe; }
.theme-store      { --t1: #0369a1; --t2: #0284c7; --t3: #e0f2fe; }

.db-mini-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.db-mini-nav .dlogo { width: 16px; height: 16px; border-radius: 4px; background: var(--t1); }
.db-mini-nav .dl { width: 24px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.db-mini-nav .dl:nth-child(2) { width: 18px; }
.db-mini-nav .dbtn { margin-left: auto; width: 36px; height: 14px; border-radius: 4px; background: var(--t1); }

.db-hero {
  flex: 1;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--t3), transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.db-hero .dht { width: 65%; height: 10px; border-radius: 4px; background: var(--t1); }
.db-hero .dhs { width: 42%; height: 7px; border-radius: 4px; background: var(--t2); opacity: .5; }
.db-hero .dhp { width: 50px; height: 18px; border-radius: 5px; background: var(--t1); }

.db-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.db-cards .dc {
  height: 34px;
  border-radius: 6px;
  background: var(--t3);
}

.demo-tag {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  background: var(--mint);
}

.demo-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.demo-card-body p {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
}

.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-price {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 50px;
}

.demo-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-link:hover { color: var(--accent); gap: 10px; }

/* ============ Features ============ */
.features {
  position: relative;
  overflow: hidden;
}

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

.feature-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.06);
  background: var(--white);
  transition: var(--transition);
}

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

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.icon-purple { background: #ede9fe; }
.icon-pink { background: #fce7f3; }
.icon-mint { background: #d1fae5; }
.icon-amber { background: #fef3c7; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(99,102,241,.25);
  filter: blur(80px);
  top: -150px; right: -100px;
}

.cta::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(236,72,153,.2);
  filter: blur(80px);
  bottom: -120px; left: -80px;
}

.cta-content { position: relative; z-index: 2; }

.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.cta p {
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta .btn-accent {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cta .btn-accent:hover { transform: translateY(-2px); }

/* ============ Footer ============ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(15,23,42,.06);
  background: var(--off-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  font-size: .85rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: .85rem;
  color: var(--text-light);
}
.footer-links a:hover { color: var(--accent); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
  .float-card { display: none; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: block; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
    align-items: stretch;
  }
  .nav.open a { padding: 14px; }
  .nav.open .btn-primary { margin: 8px 0 0; text-align: center; }

  .hero { padding: 130px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .browser { transform: none; }

  .demo-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .cta { padding: 48px 24px; border-radius: 16px; }

  .footer-inner { flex-direction: column; text-align: center; }
}