:root {
  --bg: #05070D;
  --panel: #0E1624;
  --panel-secondary: #111C2E;
  --border: #243044;
  --blue: #2F80ED;
  --cyan: #00D1FF;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;
  --text: #F5F7FA;
  --text-muted: #9AA4B2;
  --radius: 12px;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg: #F5F7FA;
  --panel: #FFFFFF;
  --panel-secondary: #EEF2F7;
  --border: #CBD5E1;
  --blue: #2563EB;
  --cyan: #0891B2;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --purple: #7C3AED;
  --text: #0F172A;
  --text-muted: #64748B;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.container { max-width:1280px; margin:0 auto; padding:0 1.5rem; }

/* Header */
.header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index:100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 64px;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.dropdown-arrow {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.nav-item:hover > .nav-link .dropdown-arrow {
  transform: rotate(180deg);
}

/* ---------- Desktop Dropdowns ---------- */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;

  background: rgba(14, 22, 36, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  z-index: 3000;
}

.nav-item:hover > .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}

.platform-dropdown,
.resources-dropdown {
  flex-direction: row;
  gap: 2.5rem;
  min-width: 540px;
  padding: 1.4rem 1.6rem;
}

.dropdown-column,
.resources-column {
  min-width: 210px;
}

.dropdown-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.6rem 0;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.dropdown-link:hover {
  color: var(--cyan);
}

.dropdown-link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0;
}

.dropdown-link-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.dropdown-link.active,
.dropdown-link.active .dropdown-link-title,
.dropdown-link.active .dropdown-link-sub {
  color: var(--cyan);
}

/* ---------- Desktop Nav Buttons ---------- */

.nav-actions .btn {
  height: 42px;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 16px;
  white-space: nowrap;
  font-weight: 700;
}

.mobile-toggle,
.mobile-menu-toggle {
  display: none;
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 768px) {
  :root {
    --mobile-nav-width: min(48vw, 320px);
    --mobile-sub-width: calc(100vw - var(--mobile-nav-width));
  }

  body.nav-open {
    overflow: hidden;
  }

  .header {
    z-index: 8000;
  }

  .nav-container {
    height: 64px;
    gap: 16px;
  }

  .logo {
    flex: 0 0 auto;
  }

  /* ---------- Hamburger ---------- */

  .mobile-toggle {
    appearance: none;
    -webkit-appearance: none;

    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 9002;

    width: 44px;
    height: 44px;
    padding: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
  }

  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      background 0.2s ease;
  }

  .mobile-toggle.active {
    background: rgba(0, 209, 255, 0.10);
    border: 1px solid rgba(0, 209, 255, 0.20);
  }

  .mobile-toggle.active span {
    background: var(--cyan);
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---------- Right Mobile Menu ---------- */

  .nav {
    position: fixed;
    top: 64px;
    right: calc(-1 * var(--mobile-nav-width));
    left: auto;

    width: var(--mobile-nav-width);
    height: calc(100vh - 64px);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    padding: 22px;
    margin: 0;
    gap: 18px;

    background:
      linear-gradient(180deg, rgba(14, 22, 36, 0.99), rgba(5, 7, 13, 0.99));

    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -26px 0 80px rgba(0, 0, 0, 0.72);

    overflow-y: auto;
    overflow-x: visible;

    z-index: 9000;
    transition: right 0.28s ease;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-item {
    width: 100%;
    position: static;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--text);
    font-weight: 600;
  }

  .nav-link:hover,
  .nav-link.active,
  .nav-item.mobile-submenu-open > .nav-link {
    color: var(--cyan);
    background: rgba(0, 209, 255, 0.12);
    border-color: rgba(0, 209, 255, 0.30);
  }

  .nav-link.active {
    box-shadow:
      inset 3px 0 0 var(--cyan),
      0 0 18px rgba(0, 209, 255, 0.10);
  }

  .nav-item.mobile-submenu-open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-item:hover > .dropdown-menu {
    display: none;
  }

  /* ---------- Left Mobile Submenu ---------- */

  .dropdown-menu,
  .platform-dropdown,
  .resources-dropdown {
    position: fixed;
    top: 64px;
    right: var(--mobile-nav-width);
    left: auto;

    width: var(--mobile-sub-width);
    max-width: none;
    min-width: 0;
    height: calc(100vh - 64px);

    display: none;
    flex-direction: column;
    gap: 12px;

    padding: 22px;
    margin: 0;

    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);

    background:
      linear-gradient(180deg, rgba(11, 18, 32, 0.99), rgba(4, 7, 14, 0.99));

    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.62);

    overflow-y: auto;
    overflow-x: hidden;
    z-index: 8999;
  }

  .nav-item.mobile-submenu-open > .dropdown-menu {
    display: flex;
  }

  .platform-dropdown,
  .resources-dropdown {
    flex-direction: column;
  }

  .dropdown-column,
  .resources-column {
    width: min(360px, 100%) !important;
    min-width: 0;
  }

  .dropdown-heading {
    color: var(--amber);
    margin: 4px 0 10px;
    white-space: normal;
    font-size: 0.72rem;
  }

  .dropdown-link {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    white-space: normal;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);

    color: var(--text);
    text-decoration: none;
  }

  .dropdown-link-title {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .dropdown-link-sub {
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
  }

  .dropdown-link:hover,
  .dropdown-link.active {
    background: rgba(0, 209, 255, 0.12);
    border-color: rgba(0, 209, 255, 0.32);
  }

  .dropdown-link:hover .dropdown-link-title,
  .dropdown-link.active .dropdown-link-title,
  .dropdown-link.active .dropdown-link-sub {
    color: var(--cyan);
  }

  .dropdown-link.active {
    box-shadow:
      inset 3px 0 0 var(--cyan),
      0 0 18px rgba(0, 209, 255, 0.10);
  }

  .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }

  .nav-actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
  }
}

/* ---------- Very Small Screens ---------- */

@media (max-width: 520px) {
  :root {
    --mobile-nav-width: min(86vw, 360px);
    --mobile-sub-width: min(86vw, 360px);
  }

  .dropdown-menu,
  .platform-dropdown,
  .resources-dropdown {
    right: 0;
    width: var(--mobile-sub-width);
    z-index: 9003;
  }
}

@media (min-width: 769px) {
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    flex: 0 0 auto;
  }

  .nav {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .nav-list {
    height: 100%;
    align-items: center;
  }

  .nav-item {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .nav-link {
    height: 100%;
    display: inline-flex;
    align-items: center;
  }

  .mobile-toggle,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ── Buttons ── */
.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--panel-secondary); }
.btn-primary {
  background: var(--blue);
  color: white;
  border: none;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-large { padding: 0.75rem 1.5rem; font-size: 1.1rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  text-align: center;
  /* External image + dark gradient overlay */
  background:
    linear-gradient(180deg, rgba(5,7,13,0.75) 0%, rgba(5,7,13,0.92) 100%),
    url('img/zorin-assist.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Glowing intelligence layer */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0,209,255,0.1) 0%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes heroGlow {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Keep content on top of everything */
.hero > .container {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: var(--purple);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.hero-headline { font-size: 1.5rem; color: var(--cyan); margin-bottom: 0.75rem; }
.hero-subtitle { color: var(--text-muted); max-width: 700px; margin: 0 auto 1.5rem; }
.hero-open { color: var(--amber); font-weight: 500; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Product Cards */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 4rem 1.5rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card h2 { font-size: 1.5rem; }
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5em;
  text-indent: 0;
}
.feature-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 600;
}
.card-actions { display: flex; gap: 0.75rem; margin-top: auto; }

/* Info Sections */
.info-section {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.info-section h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.info-section p { color: var(--text-muted); max-width: 700px; }
.info-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
.info-list li {
  position: relative;
  padding-left: 1.5em;
  text-indent: 0;
}
.info-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 600;
}

.status-examples { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.online { background: var(--green); color: white; }
.offline { background: var(--red); color: white; }
.limited { background: var(--amber); color: black; }

.command-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.command-columns h3 { color: var(--cyan); }
pre {
  background: var(--panel-secondary);
  padding: 1rem;
  border-radius: var(--radius);
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.note { color: var(--amber); font-size: 0.9rem; margin-top: 0.5rem; }

.ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.eco-item {
  background: var(--panel-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
}
.eco-item:hover { background: var(--border); color: var(--cyan); }

.roadmap { padding: 3rem 1.5rem; }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.roadmap-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; }
.footer-links h4 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text-muted); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .command-columns { grid-template-columns: 1fr; }
}

/* ── Wider spacing for dropdown items (Vention‑like) ── */
.dropdown-menu {
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
}
.dropdown-column {
  min-width: 220px;
}

/* Dropdown link as a block with title and subtitle */
.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  line-height: 1.3;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
}
.dropdown-link:hover {
  color: var(--cyan);
}

/* Title style */
.dropdown-link-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: inherit;
  letter-spacing: 0.05em;
}

/* Subtitle – smaller, muted */
.dropdown-link-sub {
  font-size: 0.60rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 2;
}

/* Active link (current page) */
.dropdown-link.active .dropdown-link-title,
.dropdown-link.active .dropdown-link-sub {
  color: var(--cyan);
}

/* Bold hero headline */
.hero-headline {
  font-weight: 700;
}

/* Adjust the logo icon inside footer (already done via HTML) */
.logo-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* =========================================================
   CENTER MOBILE SUBMENU LINKS
   Targets dropdown links inside mobile submenus:
   The platform > Software / Artificial Intelligence
   ========================================================= */

   @media (max-width: 768px) {
    .dropdown-menu,
    .platform-dropdown,
    .resources-dropdown {
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 18px !important;
      padding: 24px clamp(18px, 5vw, 34px) 34px !important;
    }
  
    .dropdown-column,
    .resources-column {
      width: min(340px, 100%) !important;
      max-width: 340px !important;
      margin-inline: auto !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
    }
  
    .dropdown-heading {
      width: 100% !important;
      text-align: center !important;
      margin: 0 0 12px !important;
      letter-spacing: 0.12em !important;
    }
  
    .dropdown-menu > .dropdown-link {
      width: min(340px, 100%) !important;
      max-width: 340px !important;
      margin-inline: auto !important;
    }
  
    .dropdown-link {
      width: 100% !important;
      min-height: 64px !important;
      padding: 13px 16px !important;
  
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
  
      text-align: center !important;
      white-space: normal !important;
  
      border-radius: 17px !important;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028)) !important;
      border: 1px solid rgba(255,255,255,0.105) !important;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 12px 28px rgba(0,0,0,0.22) !important;
    }
  
    .dropdown-link-title {
      width: 100% !important;
      text-align: center !important;
      font-size: 1rem !important;
      font-weight: 750 !important;
      letter-spacing: 0.01em !important;
      line-height: 1.15 !important;
    }
  
    .dropdown-link-sub {
      width: 100% !important;
      text-align: center !important;
      font-size: 0.64rem !important;
      letter-spacing: 0.095em !important;
      line-height: 1.15 !important;
    }
  
    .dropdown-link:hover,
    .dropdown-link.active {
      background:
        linear-gradient(180deg, rgba(0,209,255,0.16), rgba(0,209,255,0.065)) !important;
      border-color: rgba(0,209,255,0.40) !important;
      transform: translateY(-1px);
    }
  
    .dropdown-link.active {
      box-shadow:
        inset 0 0 0 1px rgba(0,209,255,0.25),
        0 0 22px rgba(0,209,255,0.14),
        0 14px 30px rgba(0,0,0,0.25) !important;
    }
  }
  
  @media (max-width: 520px) {
    .dropdown-menu,
    .platform-dropdown,
    .resources-dropdown {
      right: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      max-width: 100vw !important;
      border-right: none !important;
      border-left: none !important;
      padding-top: 26px !important;
    }
  
    .dropdown-column,
    .resources-column,
    .dropdown-menu > .dropdown-link {
      width: min(350px, calc(100vw - 44px)) !important;
      max-width: 350px !important;
    }
  }

  /* =========================================================
   POLISHED MOBILE DROPDOWN CARD SPACING
   ========================================================= */

@media (max-width: 768px) {
  .dropdown-column,
  .resources-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .dropdown-heading {
    margin-bottom: 4px !important;
  }

  .dropdown-link {
    margin: 0 !important;
  }
}