:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --soft: #f1f7fd;
  --card: rgba(255,255,255,0.90);
  --text: #172033;
  --muted: #617087;
  --heading: #071527;
  --line: rgba(19, 43, 74, 0.12);
  --blue: #0a66ff;
  --blue-2: #09a9df;
  --green: #28b767;
  --purple: #8b5cf6;
  --shadow: 0 22px 55px rgba(26, 64, 110, 0.10);
  --footer: #071527;
  --hero-grad: radial-gradient(circle at 14% 18%, rgba(10, 102, 255, 0.12), transparent 30%),
               radial-gradient(circle at 90% 18%, rgba(40, 183, 103, 0.08), transparent 28%),
               linear-gradient(135deg, #ffffff 0%, #f2f8ff 58%, #f8fbff 100%);
}
html[data-theme="dark"] {
  --bg: #06101e;
  --surface: #0c1a2f;
  --soft: #081626;
  --card: rgba(13, 28, 51, 0.88);
  --text: #edf5ff;
  --muted: #a7bad1;
  --heading: #ffffff;
  --line: rgba(255,255,255,0.12);
  --blue: #3db7ff;
  --blue-2: #22d3ee;
  --green: #34d399;
  --purple: #a78bfa;
  --shadow: 0 22px 60px rgba(0,0,0,0.35);
  --footer: #020711;
  --hero-grad: radial-gradient(circle at 14% 18%, rgba(61, 183, 255, 0.18), transparent 30%),
               radial-gradient(circle at 90% 18%, rgba(52, 211, 153, 0.10), transparent 28%),
               linear-gradient(135deg, #06101e 0%, #0a172a 60%, #06101e 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-logo { width: 42px; height: 42px; border-radius: 13px; }
.brand strong { display: block; color: var(--heading); font-family: Manrope, Inter, sans-serif; font-weight: 900; font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; font-size: .78rem; }
.main-nav { justify-self: center; display: inline-flex; gap: 28px; font-size: .94rem; font-weight: 850; color: var(--muted); }
.main-nav a:hover { color: var(--blue); }
.nav-actions { display: inline-flex; align-items: center; gap: 12px; }
.theme-toggle { width: 78px; height: 34px; display: inline-grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); cursor: pointer; padding: 3px 8px; box-shadow: 0 10px 22px rgba(0,0,0,.04); }
.theme-toggle i { width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); transform: translateX(-5px); transition: .22s ease; }
html[data-theme="dark"] .theme-toggle i { transform: translateX(5px); }
.mobile-menu { display: none; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); color: var(--heading); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 12px 18px; border: 1px solid transparent; font-weight: 900; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, #0a66ff, #0677d8); box-shadow: 0 16px 30px rgba(10,102,255,.22); }
.btn-primary.green { background: linear-gradient(135deg, #16a34a, #28b767); }
.btn-primary.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.btn-secondary { background: var(--card); border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); color: var(--blue); }

.hero { position: relative; overflow: hidden; background: var(--hero-grad); border-bottom: 1px solid var(--line); padding: 48px 0 48px; }
.hero-pattern { position: absolute; inset: 0; background-image: linear-gradient(120deg, transparent 0%, transparent 46%, rgba(10,102,255,.045) 46%, transparent 66%), radial-gradient(circle at 45% 30%, rgba(10,102,255,.06), transparent 22%); pointer-events: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: 170px .74fr 1.36fr; gap: 34px; align-items: center; }
.side-rail { min-height: 560px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.rail-logo { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 20px; }
.side-rail a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; color: var(--text); font-weight: 850; font-size: .94rem; margin-bottom: 6px; }
.side-rail a span { width: 22px; color: var(--muted); text-align: center; }
.side-rail a.active, .side-rail a:hover { color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.side-rail a.active span, .side-rail a:hover span { color: var(--blue); }
.rail-health { margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; }
.rail-health .dot { width: 11px; height: 11px; border-radius: 50%; background: #16b45d; }
.rail-health strong { color: var(--heading); font-size: .95rem; }
.rail-health small { grid-column: 2; color: var(--muted); }

.eyebrow { display: inline-flex; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); border-radius: 999px; padding: 8px 13px; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -.035em; color: var(--heading); }
h1 { margin: 18px 0 16px; font-size: clamp(2.55rem, 4vw, 4.2rem); line-height: 1.05; }
h1 span { color: var(--blue); }
.lead { color: var(--text); margin: 0; font-size: 1.03rem; line-height: 1.78; max-width: 570px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.workspace-card { align-self: start; margin-top: 8px; min-height: 560px; padding: 26px 28px; border-radius: 22px; background: var(--card); border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line)); box-shadow: var(--shadow); }
.workspace-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.workspace-top h2 { margin: 0; font-size: 1.25rem; }
.workspace-top span { color: var(--muted); letter-spacing: 4px; font-weight: 900; }
.carousel { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; }
.carousel-main { position: relative; z-index: 3; width: min(380px, 76%); min-height: 360px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 26px 70px rgba(18,50,90,.13); padding: 22px 24px; transition: .35s ease; }
.carousel-main h3 { margin: 0 0 5px; font-size: 1.45rem; }
.carousel-main .subtitle { margin: 0 0 18px; color: var(--blue); font-weight: 900; font-size: 1.02rem; }
.carousel-main img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.carousel-main .description { margin: 18px auto 14px; color: var(--text); max-width: 320px; }
.carousel-main a { color: var(--blue); font-weight: 900; font-size: 1.05rem; }
.carousel-preview { position: absolute; z-index: 1; width: 260px; min-height: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; opacity: .78; transition: .35s ease; }
.carousel-preview h3 { margin: 0 0 5px; font-size: 1.06rem; }
.carousel-preview p { margin: 0 0 12px; color: var(--muted); font-weight: 700; }
.carousel-preview img { width: 100%; height: 78px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.preview-left { left: 7%; }
.preview-right { right: 7%; }
.carousel-arrow { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading); box-shadow: var(--shadow); font-size: 2rem; line-height: 1; cursor: pointer; }
.carousel-arrow.prev { left: 2%; }
.carousel-arrow.next { right: 2%; }
.carousel-dots { display: flex; justify-content: center; gap: 16px; margin-top: 4px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #bfcbd9; cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--blue); }

.hero-capabilities { position: relative; margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero-capabilities article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.cap-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--soft); font-size: 1.45rem; }
.cap-icon.chip { color: var(--green); }
.cap-icon.shield { color: var(--purple); }
.cap-icon.people { color: var(--blue); }
.hero-capabilities strong { color: var(--heading); font-size: 1.1rem; line-height: 1.2; }
.hero-capabilities small { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; }

.section { padding: 74px 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; max-width: 840px; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: end; }
.section-heading span, .feature-copy span, .cta-box span { display: block; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-weight: 900; font-size: .82rem; }
.section-heading h2, .feature-copy h2, .cta-box h2 { margin: 7px 0 12px; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.1; }
.section-heading p, .feature-copy p, .cta-box p { color: var(--muted); margin: 0; font-size: 1.03rem; }
.card-grid { display: grid; gap: 20px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-card, .product-card, .pricing-grid article, .media-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.info-card, .product-card { padding: 24px; }
.info-icon, .product-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); font-weight: 900; margin-bottom: 18px; }
.info-icon.green, .product-icon.graph { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.info-icon.purple, .product-icon.vision { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); }
.info-card h3, .product-card h3, .pricing-grid h3 { margin: 0 0 10px; font-size: 1.18rem; }
.info-card p, .product-card p, .pricing-grid p { margin: 0; color: var(--text); }
.product-card a, .pricing-grid a { display: inline-flex; margin-top: 18px; color: var(--blue); font-weight: 900; }

.feature-section { padding: 48px 0; }
.feature-blue { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent); }
.feature-green { background: linear-gradient(90deg, color-mix(in srgb, var(--green) 12%, transparent), transparent); }
.feature-purple { background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 12%, transparent), transparent); }
.feature-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; padding: 24px; border: 1px solid var(--line); background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.feature-row.reverse { grid-template-columns: 1.1fr .9fr; }
.feature-copy ul { margin: 18px 0 22px; padding-left: 18px; color: var(--text); }
.feature-copy li { margin: 8px 0; }
.feature-media { position: relative; min-height: 285px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.feature-media img { width: 100%; height: 100%; min-height: 285px; object-fit: cover; }
.feature-media strong { position: absolute; left: 16px; bottom: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.52); color: white; font-size: .86rem; }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(0,0,0,.42); backdrop-filter: blur(10px); cursor: pointer; font-size: 1.3rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pricing-grid article { padding: 24px; }
.pricing-grid article.highlight { outline: 2px solid color-mix(in srgb, var(--green) 50%, transparent); }
.pricing-grid strong { display: block; margin-top: 12px; font-size: 2rem; color: var(--heading); }
.pricing-grid small { color: var(--muted); font-size: .9rem; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-grid article { overflow: hidden; }
.media-grid img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--line); }
.media-grid strong { display: block; padding: 16px 18px 2px; color: var(--heading); }
.media-grid small { display: block; padding: 0 18px 18px; color: var(--muted); }

.cta-section { padding: 64px 0 82px; }
.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 32px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, var(--surface)), color-mix(in srgb, var(--green) 8%, var(--surface))); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-box h2 { max-width: 820px; }

.site-footer { padding: 48px 0 24px; background: var(--footer); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-grid .brand strong, .footer-grid h4 { color: white; }
.footer-grid .brand small, .footer-grid p, .footer-grid a:not(.brand) { color: rgba(255,255,255,.68); }
.footer-grid p { max-width: 450px; }
.footer-grid h4 { margin: 6px 0 12px; }
.footer-grid a:not(.brand) { display: block; margin: 8px 0; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.56); font-size: .9rem; }

.video-modal { position: fixed; inset: 0; display: none; z-index: 999; }
.video-modal.open { display: block; }
.video-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.video-dialog { position: relative; width: min(920px, calc(100% - 32px)); margin: 8vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 90px rgba(0,0,0,.5); padding: 18px; }
.video-close { position: absolute; right: 12px; top: 8px; z-index: 2; border: 0; background: transparent; color: var(--heading); font-size: 2rem; cursor: pointer; }
.video-dialog video, .video-dialog iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.video-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 1180px) {
  .hero-layout { grid-template-columns: 150px 1fr; }
  .workspace-card { grid-column: 1 / -1; }
  .side-rail { min-height: 450px; }
  .card-grid.four, .pricing-grid, .hero-capabilities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .nav { grid-template-columns: auto auto; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 78px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; padding: 18px; flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .nav-actions { justify-self: end; }
  .mobile-menu { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .hero-layout, .feature-row, .feature-row.reverse, .section-heading.split, .cta-box, .footer-grid { grid-template-columns: 1fr; }
  .side-rail { min-height: auto; }
  .side-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .rail-logo, .rail-health { display: none; }
  .side-rail a { justify-content: center; margin: 0; }
  .carousel-preview { display: none; }
  .carousel-main { width: min(440px, 88%); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1280px); }
  .brand small { display: none; }
  h1 { font-size: clamp(2.28rem, 12vw, 3.55rem); }
  .side-rail { grid-template-columns: repeat(2, 1fr); }
  .card-grid.four, .pricing-grid, .hero-capabilities, .media-grid { grid-template-columns: 1fr; }
}
