:root {
  --primary: #4f46e5;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --highlight: #f59e0b;
  --dark: #0f172a;
  --bg: #f8fafc;
  --text: #182033;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .1);
  --glass: rgba(255, 255, 255, .68);
  --shadow: 0 28px 80px rgba(79, 70, 229, .18);
  --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, .18), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, .18), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

body.dark {
  --bg: #060914;
  --text: #e5edff;
  --muted: #a7b4d4;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(15, 23, 42, .7);
  --shadow: 0 28px 90px rgba(6, 182, 212, .14);
  color-scheme: dark;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; padding: 10px; z-index: 999; }
.skip-link:focus { left: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(248, 250, 252, .78);
  border-bottom: 1px solid var(--line);
}
body.dark .topbar { background: rgba(6, 9, 20, .74); }
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .01em; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary) 52%, var(--accent));
  box-shadow: 0 14px 36px rgba(79, 70, 229, .34);
}
.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-weight: 700; font-size: 14px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-btn {
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}
.menu-btn { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 42px rgba(79, 70, 229, .32);
}
.btn-secondary { background: var(--glass); border-color: var(--line); color: var(--text); backdrop-filter: blur(16px); }
.btn-accent { color: #0f172a; background: linear-gradient(135deg, #67e8f9, #fbbf24); }

.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  display: grid;
  align-items: center;
  padding: 72px 0 48px;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(120deg, rgba(79,70,229,.22), transparent 30%),
    conic-gradient(from 120deg at 70% 50%, rgba(6,182,212,.24), rgba(245,158,11,.18), rgba(124,58,237,.24), rgba(6,182,212,.24));
  filter: blur(40px);
  animation: aurora 12s ease-in-out infinite alternate;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  backdrop-filter: blur(16px);
}
body.dark .eyebrow { background: rgba(15, 23, 42, .58); }
h1, h2, h3 { line-height: 1.06; letter-spacing: 0; color: var(--dark); }
body.dark h1, body.dark h2, body.dark h3 { color: #f8fbff; }
h1 { font-size: clamp(44px, 7.5vw, 86px); margin: 18px 0; max-width: 980px; }
h2 { font-size: clamp(32px, 5vw, 58px); margin: 0 0 18px; }
h3 { font-size: 22px; margin: 0 0 10px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(18px, 2.2vw, 23px); color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.micro-proof { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-weight: 800; }
.micro-proof span { padding: 8px 10px; border: 1px solid var(--line); background: var(--glass); border-radius: 8px; }

.orbital {
  min-height: 560px;
  position: relative;
  perspective: 900px;
}
.dashboard {
  position: absolute;
  inset: 42px 0 auto 26px;
  min-height: 430px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.36));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: rotateX(8deg) rotateY(-12deg);
  animation: floatY 6s ease-in-out infinite;
}
body.dark .dashboard { background: linear-gradient(145deg, rgba(15,23,42,.78), rgba(15,23,42,.38)); }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric, .glass-card, .service-card, .case-card, .post-card, .faq-item, .testimonial, .form-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(15,23,42,.08);
}
.metric { padding: 18px; }
.metric strong { display: block; font-size: 30px; color: var(--primary); line-height: 1; }
.chart {
  grid-column: 1 / -1;
  height: 160px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6,182,212,.18), transparent),
    repeating-linear-gradient(to right, transparent 0 13%, rgba(100,116,139,.12) 13.2% 13.5%),
    linear-gradient(135deg, rgba(79,70,229,.2), rgba(124,58,237,.08));
  position: relative;
  overflow: hidden;
}
.chart:after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 28px;
  height: 78px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  clip-path: polygon(0 76%, 18% 52%, 34% 61%, 51% 30%, 66% 42%, 82% 12%, 100% 2%, 100% 100%, 0 100%);
  opacity: .78;
}
.float-chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  min-height: 72px;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 20px 50px rgba(79,70,229,.18);
  font-weight: 900;
  color: var(--dark);
  animation: drift 7s ease-in-out infinite;
}
.chip-1 { top: 10px; right: 8px; }
.chip-2 { bottom: 72px; left: 0; animation-delay: -1.2s; }
.chip-3 { bottom: 8px; right: 24px; animation-delay: -2.1s; }

section { padding: 92px 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0; }
.trust-grid, .services-grid, .case-grid, .blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card { padding: 26px; text-align: center; }
.counter { display: block; font-size: 42px; font-weight: 950; color: var(--primary); line-height: 1; }
.trust-card p { margin: 8px 0 0; color: var(--muted); font-weight: 800; }

.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card, .case-card, .post-card { padding: 26px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:before, .case-card:before, .post-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.1));
  opacity: 0;
  transition: opacity .25s ease;
}
.service-card:hover, .case-card:hover, .post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card:hover:before, .case-card:hover:before, .post-card:hover:before { opacity: 1; }
.card-content { position: relative; z-index: 1; }
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 950;
}
.mini-link { color: var(--primary); font-weight: 950; display: inline-flex; margin-top: 12px; }

.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; counter-reset: step; }
.timeline-item {
  padding: 24px;
  border-left: 4px solid var(--primary);
  position: relative;
}
.timeline-item:before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 18px;
  top: 18px;
  font-weight: 950;
  color: rgba(79,70,229,.2);
  font-size: 42px;
}

.case-grid { grid-template-columns: repeat(3, 1fr); }
.bar-list { display: grid; gap: 9px; margin-top: 18px; }
.bar { height: 10px; border-radius: 999px; background: rgba(100,116,139,.16); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.process-step { padding: 22px; text-align: center; position: relative; }
.process-step b { display: block; font-size: 15px; margin-top: 12px; }
.process-step span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--secondary), var(--accent)); font-weight: 950; }

.founder-spotlight {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 42px;
  align-items: center;
}
.founder-frame {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.founder-frame:before {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 150deg, var(--primary), var(--accent), var(--highlight), var(--secondary), var(--primary));
  filter: blur(24px);
  opacity: .36;
  animation: aurora 9s ease-in-out infinite alternate;
  z-index: -2;
}
.founder-frame:after {
  content: "";
  position: absolute;
  inset: 8% 4% 3% 16%;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.12)),
    radial-gradient(circle at 20% 10%, rgba(6,182,212,.18), transparent 32%),
    radial-gradient(circle at 85% 90%, rgba(245,158,11,.18), transparent 30%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  z-index: -1;
}
.founder-photo-card {
  position: relative;
  width: min(430px, 88vw);
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.26));
  box-shadow: 0 34px 100px rgba(15,23,42,.24);
  transform: rotate(2.5deg);
  overflow: hidden;
}
body.dark .founder-photo-card { background: linear-gradient(145deg, rgba(15,23,42,.78), rgba(15,23,42,.28)); }
.founder-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  filter: saturate(1.05) contrast(1.02);
}
.founder-badge {
  position: absolute;
  left: 8%;
  bottom: 9%;
  max-width: 290px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  background: rgba(15,23,42,.78);
  color: #fff;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
}
.founder-badge strong { display: block; font-size: 20px; line-height: 1.1; }
.founder-badge span { color: #dbeafe; font-weight: 800; font-size: 13px; }
.founder-chip {
  position: absolute;
  z-index: 4;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  color: var(--dark);
  box-shadow: 0 18px 48px rgba(79,70,229,.18);
  backdrop-filter: blur(18px);
  font-weight: 950;
  animation: drift 6.5s ease-in-out infinite;
}
.founder-chip small { display: block; color: #64748b; font-size: 12px; font-weight: 850; }
.founder-chip.one { top: 12%; right: 0; }
.founder-chip.two { left: 0; top: 24%; animation-delay: -1.4s; }
.founder-chip.three { right: 5%; bottom: 17%; animation-delay: -2.3s; }
.founder-copy .lead { max-width: 760px; }
.founder-signature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.signature-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}
.signature-stat strong { display: block; color: var(--primary); font-size: 28px; line-height: 1; }
.signature-stat span { color: var(--muted); font-weight: 850; font-size: 13px; }

.testimonial-wrap { overflow: hidden; }
.testimonial-track { display: flex; gap: 18px; transition: transform .45s ease; }
.testimonial { min-width: calc(33.333% - 12px); padding: 26px; }
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--highlight), var(--secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
}
.person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.faq-list { display: grid; gap: 12px; }
.faq-item button { width: 100%; padding: 20px; border: 0; background: transparent; color: var(--text); display: flex; justify-content: space-between; gap: 16px; text-align: left; cursor: pointer; font-weight: 950; }
.faq-item .answer { display: none; padding: 0 20px 20px; color: var(--muted); }
.faq-item.open .answer { display: block; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.form-shell { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255,255,255,.76);
  color: var(--text);
}
body.dark input, body.dark select, body.dark textarea { background: rgba(15,23,42,.72); }
textarea { min-height: 126px; resize: vertical; }

.footer { padding: 56px 0 30px; background: var(--dark); color: #dce7ff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer a { color: #dce7ff; display: block; margin: 8px 0; }
.footer small { color: #9fb0d0; }

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa, .call {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(15,23,42,.24);
}
.wa { background: #22c55e; }
.call { background: var(--primary); }
.sticky-strip {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 55;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15,23,42,.5);
}
.popup.open { display: grid; }
.popup-card { width: min(560px, 100%); padding: 30px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.close-x { float: right; border: 0; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }

.breadcrumb { color: var(--muted); font-size: 14px; font-weight: 800; margin: 26px 0 0; }
.page-hero { padding: 86px 0 54px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.rich-copy { font-size: 18px; }
.rich-copy p, .rich-copy li { color: var(--muted); }
.rich-copy ul { padding-left: 22px; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.toc a, .tag { display: inline-flex; margin: 4px 6px 4px 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-weight: 800; }
.blog-tools { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 24px; }
.post-meta { color: var(--muted); font-weight: 800; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes aurora { from { transform: translate3d(-2%, -2%, 0) rotate(0deg); } to { transform: translate3d(2%, 2%, 0) rotate(6deg); } }
@keyframes floatY { 0%, 100% { transform: rotateX(8deg) rotateY(-12deg) translateY(0); } 50% { transform: rotateX(10deg) rotateY(-8deg) translateY(-16px); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 76px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero-grid, .contact-grid, .content-layout { grid-template-columns: 1fr; }
  .founder-spotlight { grid-template-columns: 1fr; }
  .founder-frame { min-height: 560px; }
  .orbital { min-height: 480px; }
  .dashboard { inset: 20px 0 auto; transform: none; }
  .trust-grid, .services-grid, .case-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .testimonial { min-width: calc(50% - 9px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .nav { height: 66px; }
  .nav-links { inset-top: 66px; }
  .nav-actions .btn { display: none; }
  .hero { min-height: auto; padding-top: 48px; }
  h1 { font-size: clamp(39px, 12vw, 54px); }
  .lead { font-size: 17px; }
  .orbital { min-height: 430px; }
  .dash-grid { grid-template-columns: 1fr; }
  .chart { grid-column: auto; }
  .float-chip { width: 78px; min-height: 62px; font-size: 12px; }
  .trust-grid, .services-grid, .case-grid, .blog-grid, .timeline, .process, .form-grid, .footer-grid, .blog-tools { grid-template-columns: 1fr; }
  .founder-frame { min-height: 500px; }
  .founder-frame:after { inset: 8% 0 4% 8%; }
  .founder-photo-card { width: min(330px, 82vw); }
  .founder-chip { font-size: 12px; padding: 10px; }
  .founder-chip.one { top: 4%; right: 2%; }
  .founder-chip.two { left: 0; top: 18%; }
  .founder-chip.three { right: 0; bottom: 12%; }
  .founder-badge { left: 5%; right: 5%; max-width: none; bottom: 8%; }
  .founder-signature { grid-template-columns: 1fr; }
  .testimonial { min-width: 100%; }
  .section-head { display: block; }
  section { padding: 64px 0; }
  .sticky-strip { display: flex; width: calc(100% - 96px); justify-content: space-between; }
  .sticky-strip strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
