:root {
  --bg: #f9fbff;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --text-primary: #0b1d3a;
  --text-body: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --radius-card: 1.3rem;
  --radius-soft: 1rem;
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 18px 50px rgba(15, 23, 42, 0.12);
}

body.dark-theme {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #141f35;
  --text-primary: #e7eeff;
  --text-body: #b5c3de;
  --line: #22304a;
  --line-strong: #31415f;
  --shadow-soft: 0 10px 30px rgba(2, 8, 23, 0.45);
  --shadow-lift: 0 24px 56px rgba(2, 8, 23, 0.6);
  color-scheme: dark;
}

/* Core behavior */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background:
    radial-gradient(1200px 520px at 0% -8%, #eaf2ff 0%, rgba(234, 242, 255, 0) 58%),
    radial-gradient(900px 400px at 100% 0%, #f3f7ff 0%, rgba(243, 247, 255, 0) 66%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.dark-theme {
  background:
    radial-gradient(1300px 560px at 0% -10%, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 60%),
    radial-gradient(1100px 460px at 100% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 62%),
    var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.028em;
}

section {
  position: relative;
}

#services,
#portfolio,
#testimonials,
#contact {
  padding-top: clamp(4.4rem, 6vw, 6.4rem);
  padding-bottom: clamp(4.4rem, 6vw, 6.4rem);
}

#demo,
#why,
#pricing {
  padding-top: clamp(4.8rem, 6.4vw, 6.9rem);
  padding-bottom: clamp(4.8rem, 6.4vw, 6.9rem);
}

/* Header polish */
#site-header.is-scrolled {
  border-color: rgba(203, 213, 225, 0.75);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

body.dark-theme #site-header,
body.dark-theme #site-header.is-scrolled {
  border-color: rgba(49, 65, 95, 0.75);
  background: rgba(11, 18, 32, 0.85);
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.4);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  padding: 0.28rem;
  min-width: 4.45rem;
  min-height: 2.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 220ms ease, opacity 220ms ease, background-color 220ms ease, color 220ms ease;
}

.theme-icon.sun {
  background: rgba(250, 204, 21, 0.22);
  color: #ca8a04;
}

.theme-icon.moon {
  color: #64748b;
}

.theme-toggle[aria-pressed="true"] .theme-icon.sun {
  background: transparent;
  color: #a1abc0;
}

.theme-toggle[aria-pressed="true"] .theme-icon.moon {
  background: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

body.dark-theme .theme-toggle {
  background: rgba(17, 26, 46, 0.95);
  color: #dbeafe;
  border-color: #334155;
}

body.dark-theme .theme-toggle:hover {
  border-color: #60a5fa;
  color: #eff6ff;
}

body.dark-theme .theme-icon.sun {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
}

body.dark-theme .theme-icon.moon {
  color: #bfd2f1;
}

body.dark-theme .theme-toggle[aria-pressed="true"] .theme-icon.sun {
  background: transparent;
  color: #8ea2c8;
}

body.dark-theme .theme-toggle[aria-pressed="true"] .theme-icon.moon {
  background: rgba(96, 165, 250, 0.22);
  color: #eff6ff;
}

/* Shared typography blocks */
.section-title {
  font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-subtitle {
  margin-top: 1.05rem;
  max-width: 47rem;
  color: #516174;
  line-height: 1.78;
  font-size: clamp(0.98rem, 0.92rem + 0.15vw, 1.08rem);
}

/* Hero ambiance */
.hero-orb {
  pointer-events: none;
  position: absolute;
  z-index: -5;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.55;
}

.hero-orb-a {
  top: 8%;
  right: -7%;
  width: clamp(12rem, 30vw, 22rem);
  height: clamp(12rem, 30vw, 22rem);
  background: radial-gradient(circle at 30% 30%, #93c5fd, rgba(147, 197, 253, 0.08));
  animation: pulseOrb 7s ease-in-out infinite;
}

.hero-orb-b {
  bottom: -4%;
  left: -8%;
  width: clamp(11rem, 26vw, 19rem);
  height: clamp(11rem, 26vw, 19rem);
  background: radial-gradient(circle at 30% 30%, #dbeafe, rgba(219, 234, 254, 0.12));
  animation: pulseOrb 8.5s ease-in-out infinite reverse;
}

.floating-panel {
  animation: cardFloat 7.8s ease-in-out infinite;
  transition: transform 450ms ease, box-shadow 350ms ease;
}

/* Navigation links */
.nav-link,
.mobile-link {
  position: relative;
  transition: color 220ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 0;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 290ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover,
.mobile-link:hover {
  color: #1d4ed8;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.65rem 0.7rem;
}

.mobile-link:hover {
  background: #f8fafc;
}

body.dark-theme .nav-link,
body.dark-theme .mobile-link {
  color: #c7d4ef;
}

body.dark-theme .mobile-link:hover {
  background: rgba(51, 65, 85, 0.45);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.92rem;
  padding: 0.78rem 1.2rem;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

body.dark-theme .btn-secondary {
  background: rgba(17, 26, 46, 0.95);
  color: #dbeafe;
  border-color: #334155;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 9px 28px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.31);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  color: #1e293b;
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.14);
}

/* Card modules */
.service-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 1.55rem;
  box-shadow: var(--shadow-soft);
  transition: transform 290ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 290ms ease, border-color 250ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.13);
}

.icon-badge {
  display: inline-flex;
  height: 2.65rem;
  width: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-title {
  margin-top: 1.04rem;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.card-copy {
  margin-top: 0.62rem;
  color: var(--text-body);
  line-height: 1.68;
  font-size: 0.95rem;
}

/* Premium interactive demo showcase */
.demo-shell {
  margin-top: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.14);
  padding: clamp(1rem, 2.1vw, 1.55rem);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
}

.demo-switcher,
.device-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-tab,
.device-btn {
  border: 1px solid #d1ddf1;
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.55rem 0.78rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

.demo-tab:hover,
.device-btn:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.13);
}

.demo-tab.is-active,
.device-btn.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}

.demo-stage {
  position: relative;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
}

.demo-browser {
  width: min(100%, 920px);
  border-radius: 1.2rem;
  border: 1px solid #ced9ee;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  transition: max-width 420ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms ease, box-shadow 300ms ease;
}

.demo-browser:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 78px rgba(15, 23, 42, 0.24);
}

.demo-browser.is-desktop {
  max-width: 920px;
}

.demo-browser.is-tablet {
  max-width: 700px;
}

.demo-browser.is-mobile {
  max-width: 390px;
}

.browser-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: #f8fbff;
  border-bottom: 1px solid #dce7fb;
  padding: 0.62rem 0.9rem;
}

.browser-dots {
  display: inline-flex;
  gap: 0.32rem;
}

.browser-dots span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  display: inline-block;
}

.browser-dots span:nth-child(1) {
  background: #fb7185;
}

.browser-dots span:nth-child(2) {
  background: #fbbf24;
}

.browser-dots span:nth-child(3) {
  background: #34d399;
}

.browser-url {
  margin: 0;
  border: 1px solid #dbe7fb;
  background: #fff;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-status {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 700;
  color: #16a34a;
}

.browser-loading {
  height: 3px;
  background: #e2e8f0;
}

.browser-loading span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.browser-loading.is-loading span {
  animation: browserLoad 820ms ease;
}

.demo-canvas {
  padding: clamp(0.82rem, 1.6vw, 1.25rem);
  transition: opacity 280ms ease, transform 280ms ease;
}

.demo-canvas.is-switching {
  opacity: 0;
  transform: translateY(12px);
}

.mini-site {
  border-radius: 1rem;
  border: 1px solid #dbe4f4;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

.mini-hero {
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.07), rgba(30, 64, 175, 0.09));
  border: 1px solid rgba(147, 197, 253, 0.42);
  padding: 0.92rem;
}

.mini-hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.mini-hero-image-wrap {
  margin: 0;
  border-radius: 0.8rem;
  border: 1px solid #d5e1f6;
  overflow: hidden;
  background: #eaf2ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.mini-hero-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 320ms ease, filter 280ms ease;
}

.mini-hero-image-wrap:hover .mini-hero-image {
  transform: scale(1.03);
  filter: saturate(1.06);
}

.mini-kicker {
  margin: 0;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.mini-headline {
  margin: 0.46rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.45rem);
  line-height: 1.2;
  color: #0f172a;
}

.mini-copy {
  margin: 0.5rem 0 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.55;
}

.mini-trust-chips {
  list-style: none;
  margin: 0.68rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-trust-chips li {
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.24rem 0.55rem;
}

.mini-stats {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.mini-stat {
  border-radius: 0.65rem;
  border: 1px solid #d7e4f8;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.4rem 0.45rem;
}

.mini-stat-value {
  display: block;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.8rem;
}

.mini-stat-label {
  display: block;
  margin-top: 0.05rem;
  color: #64748b;
  font-size: 0.62rem;
}

.mini-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.mini-btn {
  border-radius: 0.7rem;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.44rem 0.72rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mini-btn:hover {
  transform: translateY(-2px);
}

.mini-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.mini-btn-primary:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.mini-btn-secondary {
  border-color: #cdd8ef;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
}

.mini-services-wrap {
  margin-top: 0.92rem;
}

.mini-gallery-wrap {
  margin-top: 0.85rem;
}

.mini-gallery {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.mini-gallery-item {
  position: relative;
  border-radius: 0.68rem;
  overflow: hidden;
  border: 1px solid #d6e2f7;
  min-height: 70px;
}

.mini-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.mini-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0));
  opacity: 0;
  transition: opacity 240ms ease;
}

.mini-gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.mini-gallery-item:hover::after {
  opacity: 1;
}

.mini-services-wrap h4,
.mini-testimonial h4,
.mini-contact h4 {
  margin: 0;
  font-size: 0.8rem;
  color: #1e293b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mini-services-grid {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-service-card {
  border-radius: 0.75rem;
  border: 1px solid #d5e1f6;
  background: #fff;
  padding: 0.58rem 0.62rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.mini-service-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

.mini-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.45rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-service-title {
  margin: 0.34rem 0 0;
  color: #1e293b;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.3;
}

.mini-service-desc {
  margin: 0.17rem 0 0;
  color: #64748b;
  font-size: 0.66rem;
  line-height: 1.38;
}

.mini-proof-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.6rem;
  margin-top: 0.74rem;
}

.mini-process,
.mini-proof-badges-wrap {
  border-radius: 0.75rem;
  border: 1px solid #d7e1f2;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem;
}

.mini-process-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.mini-process-list li {
  border-radius: 0.58rem;
  border: 1px solid #dde7f8;
  background: #f8fbff;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.34rem 0.5rem;
}

.mini-proof-badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mini-proof-badges span {
  border-radius: 999px;
  border: 1px solid #c7dbff;
  background: #eef5ff;
  color: #1e40af;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
}

.mini-columns {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
  grid-template-columns: 1.35fr 1fr;
}

.mini-testimonial,
.mini-contact {
  border-radius: 0.75rem;
  border: 1px solid #d7e1f2;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem;
}

.mini-testimonial p {
  margin: 0.45rem 0 0;
  font-size: 0.79rem;
  color: #475569;
  line-height: 1.5;
}

.mini-author {
  margin-top: 0.45rem;
  font-weight: 700;
  color: #334155;
}

.mini-contact-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.mini-contact-list li {
  border-radius: 0.58rem;
  padding: 0.38rem 0.48rem;
  background: #f8fbff;
  border: 1px solid #dde7f8;
  font-size: 0.74rem;
  color: #475569;
}

.metrics-panel {
  position: absolute;
  right: clamp(-0.5rem, -1.2vw, -0.9rem);
  top: 2.25rem;
  width: min(100%, 260px);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  padding: 0.82rem;
}

.metrics-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
}

.metrics-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.metrics-list li {
  border-radius: 0.75rem;
  border: 1px solid #d6e4fa;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.52rem;
}

.metric-value {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  color: #1e3a8a;
}

.metric-label {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.72rem;
  color: #64748b;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.58rem;
}

@keyframes browserLoad {
  0% {
    width: 0%;
  }

  65% {
    width: 72%;
  }

  100% {
    width: 100%;
  }
}

body.dark-theme .demo-shell {
  border-color: rgba(71, 85, 105, 0.5);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.66));
}

body.dark-theme .demo-tab,
body.dark-theme .device-btn {
  border-color: #334155;
  background: rgba(17, 26, 46, 0.9);
  color: #c7d4ea;
}

body.dark-theme .demo-tab.is-active,
body.dark-theme .device-btn.is-active {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(37, 99, 235, 0.22);
  color: #dbeafe;
}

body.dark-theme .demo-browser {
  border-color: #334155;
  background: #111a2e;
}

body.dark-theme .browser-bar {
  background: #162137;
  border-bottom-color: #2a3b58;
}

body.dark-theme .browser-url {
  border-color: #2e3f5e;
  background: #1a2740;
  color: #aac0e4;
}

body.dark-theme .browser-loading {
  background: #20314d;
}

body.dark-theme .mini-site,
body.dark-theme .mini-service-card,
body.dark-theme .mini-process,
body.dark-theme .mini-proof-badges-wrap,
body.dark-theme .mini-testimonial,
body.dark-theme .mini-contact,
body.dark-theme .metrics-list li {
  border-color: #334155;
  background: #162136;
}

body.dark-theme .mini-hero {
  border-color: rgba(96, 165, 250, 0.36);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.16), rgba(37, 99, 235, 0.2));
}

body.dark-theme .mini-hero-image-wrap,
body.dark-theme .mini-gallery-item {
  border-color: #334155;
}

body.dark-theme .mini-kicker {
  color: #93c5fd;
}

body.dark-theme .mini-headline,
body.dark-theme .mini-services-wrap h4,
body.dark-theme .mini-testimonial h4,
body.dark-theme .mini-contact h4,
body.dark-theme .metric-value {
  color: #e8efff;
}

body.dark-theme .mini-copy,
body.dark-theme .mini-testimonial p,
body.dark-theme .mini-service-card,
body.dark-theme .mini-contact-list li,
body.dark-theme .metric-label {
  color: #b7c6e1;
}

body.dark-theme .mini-trust-chips li,
body.dark-theme .mini-proof-badges span {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.46);
  color: #bfdbfe;
}

body.dark-theme .mini-stat,
body.dark-theme .mini-process-list li,
body.dark-theme .mini-contact-list li {
  border-color: #334155;
  background: #111a2d;
}

body.dark-theme .mini-stat-value,
body.dark-theme .mini-service-title,
body.dark-theme .mini-author {
  color: #e8efff;
}

body.dark-theme .mini-stat-label,
body.dark-theme .mini-service-desc,
body.dark-theme .mini-process-list li {
  color: #b7c6e1;
}

body.dark-theme .mini-service-icon {
  background: rgba(37, 99, 235, 0.28);
  color: #bfdbfe;
}

body.dark-theme .mini-contact-list li {
  border-color: #334155;
  background: #111a2d;
}

body.dark-theme .mini-btn-secondary {
  border-color: #3b4e70;
  background: #1a2740;
  color: #d4e2f8;
}

body.dark-theme .metrics-panel {
  border-color: #3a4b67;
  background: rgba(17, 26, 46, 0.9);
}

body.dark-theme .metrics-title {
  color: #93c5fd;
}

body.dark-theme .metric-pill {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

@media (max-width: 1100px) {
  .mini-hero-layout,
  .metrics-panel {
    position: static;
    margin-top: 0.88rem;
    width: 100%;
  }

  .mini-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .demo-browser,
  .demo-browser.is-desktop,
  .demo-browser.is-tablet,
  .demo-browser.is-mobile {
    max-width: 100%;
  }

  .mini-services-grid,
  .mini-proof-row,
  .mini-columns {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }
}

/* Portfolio */
.portfolio-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 310ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 310ms ease;
}

.portfolio-card img {
  height: 13.2rem;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 420ms ease, filter 320ms ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.portfolio-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.04);
}

.portfolio-copy {
  padding: 1.08rem 1.08rem 1.25rem;
}

.portfolio-copy h3 {
  color: var(--text-primary);
  font-size: 1.03rem;
  font-weight: 700;
}

.portfolio-copy p {
  margin-top: 0.45rem;
  color: var(--text-body);
  font-size: 0.93rem;
  line-height: 1.68;
}

/* Why choose me */
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

/* Testimonials slider */
.testimonial-slide {
  min-width: 100%;
  padding: clamp(1.7rem, 3vw, 2.35rem);
}

.quote {
  color: #0f172a;
  font-size: clamp(1.04rem, 0.98rem + 0.45vw, 1.27rem);
  line-height: 1.78;
  font-weight: 500;
}

.author {
  margin-top: 1.1rem;
  color: #516174;
  font-size: 0.92rem;
  font-weight: 600;
}

.slider-btn {
  display: inline-flex;
  height: 2.56rem;
  width: 2.56rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 1rem;
  color: #334155;
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.slider-btn:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.11);
}

/* Pricing cards */
.price-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.55rem;
  box-shadow: var(--shadow-soft);
  transition: transform 290ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 290ms ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
}

.price-card h3 {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-card .price {
  margin-top: 0.56rem;
  font-size: 2.08rem;
  font-weight: 800;
  color: #1d4ed8;
}

.price-card ul {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.price-card li {
  position: relative;
  margin-top: 0.6rem;
  padding-left: 1.25rem;
  color: var(--text-body);
  font-size: 0.94rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.price-card-featured {
  position: relative;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, var(--surface), rgba(37, 99, 235, 0.14));
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.2);
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #dbeafe;
  padding: 0.3rem 0.72rem;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.dark-theme .badge {
  background: rgba(37, 99, 235, 0.24);
  color: #bfdbfe;
}

/* Form */
.form-label {
  display: inline-block;
  margin-bottom: 0.48rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0.78rem 0.85rem;
  color: #0f172a;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.form-input:hover {
  border-color: #a5b4c7;
}

.form-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-input.is-prefilled {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.ai-draft-note {
  margin-top: 0.55rem;
  min-height: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4ed8;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ai-draft-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-builder {
  border: 1px solid #d7e3f7;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  padding: 0.9rem;
}

.ai-builder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ai-builder-title {
  margin: 0;
  color: #1e3a8a;
  font-size: 0.88rem;
  font-weight: 800;
}

.ai-builder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.ai-builder-toggle input {
  accent-color: #2563eb;
}

.ai-builder-fields {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #c8d8f0;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ai-builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.ai-builder-status {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-builder-status.is-info {
  color: #1d4ed8;
}

.ai-builder-status.is-success {
  color: #15803d;
}

.ai-builder-status.is-error {
  color: #b91c1c;
}

.ai-option-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.ai-option-check input {
  margin-top: 0.18rem;
  accent-color: #2563eb;
}

.hosting-addon {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(219, 234, 254, 0.66));
}

@media (max-width: 760px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

.form-status {
  margin-top: 0.85rem;
  min-height: 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-status.is-info {
  color: #1e40af;
}

.form-status.is-success {
  color: #15803d;
}

.form-status.is-error {
  color: #b91c1c;
}

#contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

body.dark-theme .form-status.is-info {
  color: #93c5fd;
}

body.dark-theme .form-status.is-success {
  color: #86efac;
}

body.dark-theme .form-status.is-error {
  color: #fca5a5;
}

body.dark-theme .ai-draft-note {
  color: #93c5fd;
}

body.dark-theme .ai-builder {
  border-color: #334155;
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.95), rgba(15, 23, 42, 0.95));
}

body.dark-theme .ai-builder-title {
  color: #bfdbfe;
}

body.dark-theme .ai-builder-toggle {
  color: #c7d4ea;
}

body.dark-theme .ai-builder-fields {
  border-top-color: #3d4e6b;
}

body.dark-theme .ai-builder-status.is-info {
  color: #93c5fd;
}

body.dark-theme .ai-builder-status.is-success {
  color: #86efac;
}

body.dark-theme .ai-builder-status.is-error {
  color: #fca5a5;
}

body.dark-theme .ai-option-check {
  color: #c7d4ea;
}

body.dark-theme .hosting-addon {
  border-color: #3b4d6d !important;
  background: linear-gradient(180deg, rgba(21, 32, 53, 0.95), rgba(17, 26, 46, 0.9)) !important;
}

body.dark-theme .hosting-addon p,
body.dark-theme .hosting-addon strong {
  color: #d7e5fb !important;
}

body.dark-theme .hosting-addon .text-branddark {
  color: #93c5fd !important;
}

body.dark-theme .form-input {
  color: #e8efff;
  border-color: #3b4d6d;
}

body.dark-theme .form-input::placeholder {
  color: #9fb0cf;
}

/* Scroll reveal animation states */
.reveal {
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.18, 0.82, 0.22, 1), opacity 800ms ease;
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-scale {
  transform: scale(0.975);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.08) translateY(-10px);
    opacity: 0.72;
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Dark-mode utility overrides for Tailwind classes used in markup */
body.dark-theme .bg-white {
  background-color: var(--surface) !important;
}

body.dark-theme .bg-white\/80,
body.dark-theme .bg-white\/85,
body.dark-theme .bg-white\/90 {
  background-color: rgba(17, 26, 46, 0.9) !important;
}

body.dark-theme .bg-slate-50\/70,
body.dark-theme .bg-slate-50 {
  background-color: rgba(15, 23, 42, 0.6) !important;
}

body.dark-theme .border-slate-100,
body.dark-theme .border-slate-100\/90,
body.dark-theme .border-slate-200,
body.dark-theme .border-slate-200\/80 {
  border-color: var(--line) !important;
}

body.dark-theme .text-slate-500,
body.dark-theme .text-slate-600,
body.dark-theme .text-slate-700 {
  color: #c8d4ea !important;
}

body.dark-theme .text-slate-400 {
  color: #b9c7e0 !important;
}

body.dark-theme .text-navy,
body.dark-theme .text-ink {
  color: var(--text-primary) !important;
}

body.dark-theme .text-branddark {
  color: #93c5fd !important;
}

body.dark-theme .text-blue-100 {
  color: #dbeafe !important;
}

body.dark-theme .text-blue-200 {
  color: #bfdbfe !important;
}

body.dark-theme .bg-blue-50 {
  background-color: rgba(37, 99, 235, 0.2) !important;
}

body.dark-theme .border-blue-100 {
  border-color: rgba(96, 165, 250, 0.38) !important;
}

body.dark-theme #mobile-menu {
  background: rgba(11, 18, 32, 0.98) !important;
  border-top-color: var(--line) !important;
}

body.dark-theme #menu-toggle {
  color: #d5e2f8 !important;
  border-color: var(--line-strong) !important;
  background: rgba(17, 26, 46, 0.95) !important;
}

body.dark-theme #menu-toggle:hover {
  background: rgba(30, 41, 59, 0.9) !important;
}

body.dark-theme .section-subtitle,
body.dark-theme .card-copy,
body.dark-theme .portfolio-copy p,
body.dark-theme .author,
body.dark-theme .price-card li,
body.dark-theme .form-label,
body.dark-theme footer p {
  color: #c8d4ea !important;
}

body.dark-theme .quote,
body.dark-theme .card-title,
body.dark-theme .portfolio-copy h3,
body.dark-theme .price-card h3,
body.dark-theme .feature-item {
  color: #e8efff !important;
}

body.dark-theme #hero > .bg-gradient-to-b {
  background: linear-gradient(to bottom, #10264a, #0d172b, #0b1220) !important;
}

body.dark-theme .hero-orb-a {
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.55), rgba(59, 130, 246, 0.08));
}

body.dark-theme .hero-orb-b {
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.35), rgba(96, 165, 250, 0.08));
}

body.dark-theme .from-blue-50 {
  --tw-gradient-from: rgba(30, 58, 138, 0.28) var(--tw-gradient-from-position) !important;
}

body.dark-theme .to-white,
body.dark-theme .via-white {
  --tw-gradient-to: rgba(17, 26, 46, 0.96) var(--tw-gradient-to-position) !important;
}

body.dark-theme footer p {
  color: #9fb0cf;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none !important;
  }
}
