/* Extracted from index_ai_one.html during portal refactor v1. */

:root {
      --bg: #070816;
      --bg-2: #0b1024;
      --panel: rgba(255,255,255,0.065);
      --panel-2: rgba(255,255,255,0.095);
      --panel-border: rgba(255,255,255,0.14);
      --text: #f7f8ff;
      --muted: #b6bfd9;
      --muted-2: #8790ad;
      --brand: #8c5cff;
      --brand-2: #34d5ff;
      --brand-3: #20f0a0;
      --warning: #ffc857;
      --danger: #ff5c93;
      --radius: 26px;
      --shadow: 0 24px 80px rgba(0,0,0,0.42);
      --max: 1180px;
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(circle at 18% 0%, rgba(140,92,255,0.26), transparent 36%),
        radial-gradient(circle at 82% 8%, rgba(52,213,255,0.18), transparent 34%),
        radial-gradient(circle at 50% 60%, rgba(32,240,160,0.07), transparent 38%),
        linear-gradient(180deg, #060715 0%, #0b1024 44%, #070816 100%);
      overflow-x: hidden;
    }

    /* Keep AI-ONE hero typography independent from global portal styles. */
    body[data-marketing-shell="ai-one"] h1,
    body[data-marketing-shell="ai-one"] h2,
    body[data-marketing-shell="ai-one"] h3,
    body[data-marketing-shell="ai-one"] h4,
    body[data-marketing-shell="ai-one"] h5,
    body[data-marketing-shell="ai-one"] h6 {
      color: var(--text) !important;
    }

    body[data-marketing-shell="ai-one"] p {
      color: var(--muted);
    }

    /* Re-theme the shared marketing navbar for the AI-ONE dark hero.
       Scoped overrides avoid changing the centralized shell globally. */
    body[data-marketing-shell="ai-one"] .navbar {
      background: rgba(7,8,22,0.72);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      -webkit-backdrop-filter: blur(22px);
      backdrop-filter: blur(22px);
    }

    body[data-marketing-shell="ai-one"] .nav-link,
    body[data-marketing-shell="ai-one"] .lang-switch {
      color: rgba(247,248,255,0.78);
    }

    body[data-marketing-shell="ai-one"] .lang-switch {
      border-color: rgba(255,255,255,0.18);
    }

    body[data-marketing-shell="ai-one"] .nav-link:hover,
    body[data-marketing-shell="ai-one"] .nav-link.active,
    body[data-marketing-shell="ai-one"] .lang-switch:hover {
      color: #fff;
    }

    body[data-marketing-shell="ai-one"] .lang-switch:hover {
      border-color: rgba(140,92,255,0.65);
      background: rgba(140,92,255,0.18);
    }

    body[data-marketing-shell="ai-one"] .nav-toggle span {
      background: #fff;
    }

    body[data-marketing-shell="ai-one"] .nav-dropdown {
      background: rgba(12,15,34,0.96);
      border-color: rgba(255,255,255,0.12);
      box-shadow: 0 24px 80px rgba(0,0,0,0.42);
    }

    body[data-marketing-shell="ai-one"] .nav-dropdown::before {
      background: rgba(12,15,34,0.96);
      border-left-color: rgba(255,255,255,0.12);
      border-top-color: rgba(255,255,255,0.12);
    }

    body[data-marketing-shell="ai-one"] .nav-dropdown-title {
      color: #fff;
    }

    body[data-marketing-shell="ai-one"] .nav-dropdown-desc {
      color: rgba(182,191,217,0.82);
    }

    body[data-marketing-shell="ai-one"] .nav-dropdown-item:hover {
      background: rgba(255,255,255,0.06);
    }

    body[data-marketing-shell="ai-one"] .btn-primary-nav {
      background: linear-gradient(135deg, var(--brand), #5f8bff 55%, var(--brand-2));
      color: #fff;
      box-shadow: 0 18px 46px rgba(88,115,255,0.28);
    }

    body[data-marketing-shell="ai-one"] .btn-primary-nav:hover {
      background: linear-gradient(135deg, #9c72ff, #66a0ff 55%, #58e0ff);
      color: #fff !important;
    }

    a { color: inherit; text-decoration: none; }
    img, video { max-width: 100%; display: block; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      -webkit-backdrop-filter: blur(22px);
      backdrop-filter: blur(22px);
      background: rgba(7,8,22,0.72);
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 26px;
    }

    .site-header .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: -0.03em;
      white-space: nowrap;
    }

    .logo-mark {
      width: 38px;
      height: 38px;
      border-radius: 13px;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      box-shadow: 0 10px 30px rgba(140,92,255,0.38);
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 18px;
      font-weight: 900;
    }

    .site-header .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--muted);
    }

    .site-header .nav-links a,
    .site-header .nav-dropdown > button {
      border: 0;
      color: var(--muted);
      background: transparent;
      padding: 10px 12px;
      border-radius: 999px;
      cursor: pointer;
      font: inherit;
    }

    .site-header .nav-links a:hover,
    .site-header .nav-dropdown > button:hover,
    .site-header .nav-links a.active {
      color: #fff;
      background: rgba(255,255,255,0.08);
    }

    .site-header .nav-dropdown { position: relative; }
    .site-header .dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      min-width: 260px;
      padding: 10px;
      border: 1px solid var(--panel-border);
      border-radius: 18px;
      background: rgba(12,15,34,0.96);
      box-shadow: var(--shadow);
    }
    .site-header .nav-dropdown:hover .dropdown-menu { display: grid; gap: 4px; }
    .site-header .dropdown-menu a {
      display: block;
      padding: 12px 14px;
      border-radius: 14px;
      color: var(--muted);
    }
    .site-header .dropdown-menu a strong { color: #fff; display: block; margin-bottom: 2px; }
    .site-header .dropdown-menu a span { display: block; font-size: 12px; color: var(--muted-2); line-height: 1.35; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 13px 18px;
      border-radius: 999px;
      font-weight: 700;
      border: 1px solid rgba(255,255,255,0.14);
      color: #fff;
      background: rgba(255,255,255,0.075);
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
      cursor: pointer;
    }

    .btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.26); }
    .btn-primary {
      background: linear-gradient(135deg, var(--brand), #5f8bff 55%, var(--brand-2));
      border-color: transparent;
      box-shadow: 0 18px 46px rgba(88,115,255,0.28);
    }
    .btn-primary:hover { background: linear-gradient(135deg, #9c72ff, #66a0ff 55%, #58e0ff); }

    .section {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      padding: 94px 0;
      position: relative;
    }

    body[data-marketing-shell="ai-one"] .hero {
      position: relative;
      padding-top: 76px;
      display: block;
      min-height: calc(100vh - 76px);
      background: transparent !important;
      color: var(--text);
      width: 100%;
      max-width: none;
      padding-left: 0;
      padding-right: 0;
      overflow: hidden;
    }

    body[data-marketing-shell="ai-one"] .hero .hero-content {
      position: relative;
      z-index: 3;
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      padding: 56px 48px;
      background: linear-gradient(135deg, rgba(6, 7, 21, 0.74) 0%, rgba(17, 24, 39, 0.50) 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 1.5rem;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    body[data-marketing-shell="ai-one"] .hero-media {
      position: absolute;
      inset: 0;
      z-index: 1;
      overflow: hidden;
    }

    body[data-marketing-shell="ai-one"] .hero-video-bg {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.55;
    }

    body[data-marketing-shell="ai-one"] .hero-video-overlay {
      position: absolute;
      inset: 0;
      background: transparent;
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 999px;
      color: var(--muted);
      background: rgba(255,255,255,0.055);
      font-size: 13px;
      margin-bottom: 22px;
    }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 18px var(--brand-3); }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      font-size: clamp(46px, 7vw, 84px);
      line-height: .94;
      letter-spacing: -0.075em;
      margin-bottom: 24px;
    }
    h2 {
      font-size: clamp(34px, 4.5vw, 58px);
      line-height: 1;
      letter-spacing: -0.055em;
      margin-bottom: 18px;
    }
    h3 {
      font-size: 22px;
      letter-spacing: -0.025em;
      margin-bottom: 12px;
    }
    .lead {
      font-size: clamp(18px, 2vw, 23px);
      line-height: 1.55;
      color: var(--muted);
      margin-bottom: 30px;
      max-width: 720px;
    }
    .muted { color: var(--muted); line-height: 1.65; }

    .gradient-text {
      background: linear-gradient(90deg, #fff, #a98cff 48%, #55dcff 100%);
      -webkit-background-clip: text;
      color: transparent;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 24px; }
    .trust-row { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }
    .trust-chip {
      padding: 9px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.10);
    }

    .video-card {
      position: relative;
      z-index: 2;
      border-radius: 32px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,0.16);
      background:
        linear-gradient(135deg, rgba(140,92,255,0.20), rgba(52,213,255,0.08)),
        rgba(255,255,255,0.055);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .video-card.video-card--fullpage {
      position: fixed;
      inset: 24px;
      width: auto;
      margin: 0;
      z-index: 1300;
      border-radius: 24px;
      background: rgba(7,8,22,0.96);
      box-shadow: 0 30px 100px rgba(0,0,0,0.6);
      display: grid;
      grid-template-rows: 1fr auto;
    }

    .video-card.video-card--fullpage .video-placeholder {
      height: 100%;
      min-height: 0;
      aspect-ratio: auto;
    }

    .video-card.video-card--fullpage .video-placeholder video {
      opacity: 1;
    }

    body.video-fullpage-open {
      overflow: hidden;
    }

    .video-card::before {
      content: "";
      position: absolute;
      inset: -1px;
      background: radial-gradient(circle at 30% 10%, rgba(255,255,255,0.18), transparent 30%);
      pointer-events: none;
    }

    .video-placeholder {
      aspect-ratio: 16 / 10;
      border-radius: 24px;
      overflow: hidden;
      position: relative;
      background:
        radial-gradient(circle at 30% 25%, rgba(140,92,255,0.48), transparent 34%),
        radial-gradient(circle at 80% 70%, rgba(52,213,255,0.30), transparent 36%),
        linear-gradient(145deg, #111733, #050713);
      display: grid;
      place-items: center;
      isolation: isolate;
    }

    .video-placeholder video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .8;
    }

    .video-caption {
      position: relative;
      z-index: 4;
      padding: 16px 8px 4px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 14px;
      color: var(--muted);
      font-size: 14px;
    }

    .video-caption-action {
      position: relative;
      z-index: 5;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.08);
      color: #fff;
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
      pointer-events: auto;
    }

    .video-caption-action:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,0.14);
      border-color: rgba(255,255,255,0.34);
    }

    .video-caption-action:focus-visible {
      outline: 2px solid rgba(255,255,255,0.9);
      outline-offset: 3px;
    }

    .video-caption-title {
      opacity: 0.9;
    }

    @media (max-width: 640px) {
      .video-card.video-card--fullpage {
        inset: 10px;
        border-radius: 16px;
        padding: 10px;
      }
    }

    .grid { display: grid; gap: 20px; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

    .card {
      border: 1px solid var(--panel-border);
      background: var(--panel);
      border-radius: var(--radius);
      padding: 26px;
      box-shadow: 0 14px 54px rgba(0,0,0,0.20);
      min-height: 100%;
      overflow: hidden;
    }
    .card:hover {
      background: var(--panel-2);
      border-color: rgba(255,255,255,0.22);
      transform: none;
      box-shadow: 0 14px 54px rgba(0,0,0,0.30);
    }
    .card:hover::before { opacity: 0; }

    .icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(140,92,255,0.30), rgba(52,213,255,0.16));
      margin-bottom: 20px;
      font-size: 22px;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 28px;
      margin-bottom: 34px;
    }
    .section-head .muted { max-width: 560px; margin-bottom: 0; }

    .problem-band {
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 34px;
      padding: 34px;
      background:
        linear-gradient(135deg, rgba(255,92,147,0.10), transparent 40%),
        rgba(255,255,255,0.04);
    }

    .flow {
      display: grid;
      grid-template-columns: repeat(6, minmax(0,1fr));
      gap: 14px;
      counter-reset: flow;
    }
    .flow-step {
      position: relative;
      padding: 22px 18px;
      border-radius: 22px;
      border: 1px solid rgba(255,255,255,0.13);
      background: rgba(255,255,255,0.055);
      min-height: 170px;
    }
    .flow-step::before {
      counter-increment: flow;
      content: "0" counter(flow);
      display: inline-flex;
      color: var(--brand-2);
      font-weight: 800;
      font-size: 13px;
      margin-bottom: 18px;
    }
    .flow-step h3 { font-size: 18px; }
    .flow-step p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }

    .comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .compare-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
    .compare-list li {
      padding-left: 30px;
      position: relative;
      color: var(--muted);
      line-height: 1.55;
    }
    .compare-list li::before {
      position: absolute;
      left: 0;
      top: 0;
      font-weight: 900;
    }
    .bad li::before { content: "×"; color: var(--danger); }
    .good li::before { content: "✓"; color: var(--brand-3); }

    .pillar-map {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 20px;
      align-items: stretch;
    }
    .orbit {
      min-height: 520px;
      position: relative;
      border-radius: 34px;
      background:
        radial-gradient(circle at center, rgba(140,92,255,0.20), transparent 31%),
        radial-gradient(circle at 50% 50%, rgba(52,213,255,0.08), transparent 52%),
        rgba(255,255,255,0.045);
      border: 1px solid rgba(255,255,255,0.12);
      overflow: hidden;
      display: grid;
      place-items: center;
    }
    .core-node {
      width: 190px;
      height: 190px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 22px;
      background: linear-gradient(135deg, rgba(140,92,255,0.65), rgba(52,213,255,0.36));
      border: 1px solid rgba(255,255,255,0.26);
      box-shadow: 0 25px 90px rgba(88,115,255,0.34);
      font-weight: 900;
      letter-spacing: -0.04em;
      font-size: 28px;
    }
    .orbit-chip {
      position: absolute;
      padding: 10px 13px;
      border-radius: 999px;
      background: rgba(255,255,255,0.09);
      border: 1px solid rgba(255,255,255,0.14);
      color: var(--muted);
      font-size: 13px;
      white-space: nowrap;
    }
    .chip-1 { top: 55px; left: 55px; }
    .chip-2 { top: 55px; right: 48px; }
    .chip-3 { left: 35px; top: 238px; }
    .chip-4 { right: 38px; top: 238px; }
    .chip-5 { bottom: 58px; left: 82px; }
    .chip-6 { bottom: 58px; right: 76px; }

    .feature-list { display: grid; gap: 14px; }
    .feature-item {
      padding: 18px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 20px;
      background: rgba(255,255,255,0.045);
    }
    .feature-item strong { display: block; margin-bottom: 6px; }
    .feature-item span { color: var(--muted); line-height: 1.55; font-size: 14px; }

    .use-case {
      display: grid;
      grid-template-columns: 76px 1fr;
      gap: 18px;
      align-items: start;
    }
    .use-number {
      width: 64px;
      height: 64px;
      border-radius: 22px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      color: var(--brand-2);
      font-weight: 900;
      font-size: 22px;
    }

    .capability-tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
    .tag {
      font-size: 13px;
      color: var(--muted);
      padding: 8px 11px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.045);
    }

    .cta-panel {
      text-align: center;
      padding: 70px 34px;
      border-radius: 38px;
      border: 1px solid rgba(255,255,255,0.16);
      background:
        radial-gradient(circle at 28% 0%, rgba(140,92,255,0.34), transparent 34%),
        radial-gradient(circle at 78% 20%, rgba(52,213,255,0.22), transparent 36%),
        rgba(255,255,255,0.055);
      box-shadow: var(--shadow);
    }
    .cta-panel .lead { margin-inline: auto; }

    .faq { display: grid; gap: 14px; }
    details {
      border: 1px solid rgba(255,255,255,0.13);
      border-radius: 20px;
      background: rgba(255,255,255,0.045);
      padding: 20px 22px;
    }
    summary { cursor: pointer; font-weight: 800; }
    details p { margin: 16px 0 0; color: var(--muted); line-height: 1.65; }

    footer {
      border-top: 1px solid rgba(255,255,255,0.09);
      padding: 40px 0;
      color: var(--muted);
      background: rgba(0,0,0,0.18);
    }
    .footer-inner {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    @media (max-width: 980px) {
      .hero, .pillar-map, .comparison { grid-template-columns: 1fr; }
      body[data-marketing-shell="ai-one"] .hero .hero-content {
        width: min(100% - 28px, var(--max));
        padding: 44px 32px;
      }
      .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .section-head { display: block; }
      .site-header .nav-links { display: none; }
    }

    @media (max-width: 640px) {
      .section { width: min(100% - 28px, var(--max)); padding: 70px 0; }
      .nav { width: min(100% - 28px, var(--max)); }
      .grid-2, .grid-3, .grid-4, .flow { grid-template-columns: 1fr; }
      h1 { font-size: 44px; }
      .hero { padding-top: 46px; gap: 34px; }
      body[data-marketing-shell="ai-one"] .hero .hero-content {
        width: min(100% - 28px, var(--max));
        padding: 36px 24px;
        border-radius: 1rem;
      }
      .orbit { min-height: 420px; }
      .orbit-chip { position: static; margin: 5px; }
      .orbit { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; padding: 24px; }
      .core-node { width: 160px; height: 160px; font-size: 24px; flex: 0 0 auto; }
    }
