/* ControlFile Explorer - shared styles
   Lifted out of index.html so the sub-pages use the same tokens, spacing and
   components instead of three drifting copies. Edit here, not in a page. */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #07070a;
      --bg-2: #0b0b12;
      --panel: rgba(255,255,255,0.04);
      --panel-strong: rgba(255,255,255,0.06);
      --border: rgba(255,255,255,0.08);
      --border-strong: rgba(255,255,255,0.14);
      --text: #f4f4f7;
      --text-soft: #b9b9c6;
      --text-mute: #7a7a8c;
      --blue: #4f7cff;
      --cyan: #22d3ee;
      --green: #4ade80;
      --amber: #fbbf24;
      --grad-1: linear-gradient(135deg, #4f7cff 0%, #22d3ee 100%);
      --grad-2: linear-gradient(135deg, #22d3ee 0%, #4ade80 100%);
      --radius: 16px;
      --radius-lg: 24px;
      --radius-xl: 32px;
      --max: 1180px;
    }

    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: "Plus Jakarta Sans", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      line-height: 1.6;
    }

    body::before {
      content: "";
      position: fixed; inset: 0;
      background:
        radial-gradient(900px circle at 10% 0%, rgba(79,124,255,0.22), transparent 50%),
        radial-gradient(800px circle at 95% 15%, rgba(34,211,238,0.14), transparent 55%),
        radial-gradient(700px circle at 50% 100%, rgba(74,222,128,0.08), transparent 55%);
      pointer-events: none; z-index: 0;
    }
    body::after {
      content: "";
      position: fixed; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.65), transparent 70%);
      -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.65), transparent 70%);
      pointer-events: none; z-index: 0;
    }

    .wrap { position: relative; z-index: 1; }
    .container { width: min(92%, var(--max)); margin: 0 auto; }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }
    p { color: var(--text-soft); }

    /* Nav */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 50;
      padding: 16px 0; transition: background .25s, padding .25s, border-color .25s;
      border-bottom: 1px solid transparent;
    }
    .nav.scrolled {
      padding: 10px 0;
      background: rgba(7,7,10,0.8);
      backdrop-filter: blur(18px) saturate(140%);
      border-bottom-color: var(--border);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .brand {
      display: flex; align-items: center; gap: 12px;
      font-weight: 700; font-size: 15px;
    }
    .brand img {
      width: 36px; height: 36px; border-radius: 10px;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px -8px rgba(79,124,255,0.5);
    }
    .brand span { color: var(--text-mute); font-weight: 500; font-size: 13px; margin-left: 4px; }
    .nav-links {
      display: flex; gap: 4px; align-items: center;
      background: rgba(255,255,255,0.03); border: 1px solid var(--border);
      border-radius: 999px; padding: 4px;
    }
    .nav-links a {
      font-size: 13px; color: var(--text-soft);
      padding: 8px 14px; border-radius: 999px; transition: .2s;
    }
    .nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 11px 20px; border-radius: 999px;
      font-size: 14px; font-weight: 600;
      transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
      white-space: nowrap; border: 1px solid transparent; cursor: pointer;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary {
      background: var(--grad-1); color: #07070a;
      box-shadow: 0 12px 40px -10px rgba(79,124,255,0.7);
    }
    .btn-primary:hover { box-shadow: 0 18px 50px -10px rgba(34,211,238,0.55); }
    .btn-ghost {
      background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text);
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-strong); }
    .btn-wa {
      background: #25d366; color: #06210f;
      box-shadow: 0 12px 36px -10px rgba(37,211,102,0.55);
    }
    .btn-lg { padding: 14px 26px; font-size: 15px; }

    /* Hero — text only, no side image */
    .hero {
      padding: 140px 0 64px;
      text-align: center;
    }
    .hero-inner {
      max-width: 760px;
      margin: 0 auto;
      animation: floatIn .7s ease both;
    }
    .pill {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 6px 14px 6px 6px; border-radius: 999px;
      background: rgba(255,255,255,0.04); border: 1px solid var(--border);
      font-size: 13px; color: var(--text-soft); margin-bottom: 22px;
    }
    .pill-tag {
      background: var(--grad-1); color: #07070a;
      font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
      padding: 4px 10px; border-radius: 999px;
    }
    .hero h1 {
      font-size: clamp(2.4rem, 5vw, 3.5rem);
      margin: 0 auto 18px; max-width: 16ch;
      letter-spacing: -0.03em;
    }
    .hero h1 .grad {
      background: linear-gradient(120deg, #fff 10%, #22d3ee 55%, #4f7cff 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .hero-sub {
      font-size: 1.1rem; max-width: 48ch; margin: 0 auto 28px;
      line-height: 1.65;
    }
    .hero-cta {
      display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
      justify-content: center;
    }
    .hero-meta {
      display: flex; flex-wrap: wrap; gap: 10px 20px;
      font-size: 13px; color: var(--text-mute);
      justify-content: center; margin-bottom: 36px;
    }
    .hero-meta b { color: var(--text-soft); font-weight: 600; }
    .hero-highlights {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      text-align: left;
    }
    .hero-hl {
      padding: 14px 14px 16px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      transition: .2s;
    }
    .hero-hl:hover {
      border-color: rgba(34,211,238,0.35);
      background: rgba(34,211,238,0.06);
      transform: translateY(-2px);
    }
    .hero-hl strong {
      display: block; font-size: 13px; margin-bottom: 4px; color: var(--text);
    }
    .hero-hl span {
      font-size: 12px; color: var(--text-mute); line-height: 1.4;
    }

    @keyframes floatIn {
      from { opacity: 0; transform: translateY(24px) scale(.98); }
      to { opacity: 1; transform: none; }
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: none; }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: none; }
    }
    .reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
    .reveal.in { opacity: 1; transform: none; }

    /* How it works */
    .steps-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    }
    .step-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
      border: 1px solid var(--border); border-radius: var(--radius);
      padding: 22px 18px; position: relative;
    }
    .step-num {
      width: 32px; height: 32px; border-radius: 10px;
      display: grid; place-items: center; font-weight: 800; font-size: 14px;
      background: var(--grad-1); color: #07070a; margin-bottom: 14px;
    }
    .step-card h3 { font-size: 16px; margin-bottom: 8px; }
    .step-card p { font-size: 13px; line-height: 1.5; }

    /* Screenshots carousel */
    .carousel {
      max-width: 1100px; margin: 0 auto;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7);
    }
    .carousel-stage {
      position: relative;
      background: #0a0a10;
      aspect-ratio: 16 / 9.5;
      min-height: 420px;
    }
    .carousel-slide {
      position: absolute; inset: 0;
      opacity: 0; pointer-events: none;
      transition: opacity .45s ease;
      display: flex; align-items: center; justify-content: center;
    }
    .carousel-slide.active {
      opacity: 1; pointer-events: auto; z-index: 1;
    }
    .carousel-slide img {
      width: 100%; height: 100%;
      object-fit: contain; object-position: top center;
      background: #0a0a10; cursor: zoom-in;
    }
    .carousel-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      z-index: 3; width: 48px; height: 48px; border-radius: 999px;
      background: rgba(7,7,10,0.75); border: 1px solid var(--border-strong);
      color: #fff; display: grid; place-items: center;
      cursor: pointer; backdrop-filter: blur(8px);
      transition: .2s;
    }
    .carousel-nav:hover {
      background: rgba(34,211,238,0.2); border-color: rgba(34,211,238,0.5);
      transform: translateY(-50%) scale(1.05);
    }
    .carousel-nav.prev { left: 14px; }
    .carousel-nav.next { right: 14px; }
    .carousel-progress {
      position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
      height: 3px; background: rgba(255,255,255,0.08);
    }
    .carousel-progress > span {
      display: block; height: 100%; width: 0%;
      background: var(--grad-1);
      transition: width .1s linear;
    }
    .carousel-progress.running > span {
      width: 100%;
      transition: width 5s linear;
    }
    .carousel-footer {
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px; flex-wrap: wrap;
      padding: 20px 24px 22px;
      border-top: 1px solid var(--border);
      background: rgba(0,0,0,0.25);
    }
    .carousel-caption h3 {
      font-size: 1.15rem; margin-bottom: 4px;
    }
    .carousel-caption p {
      font-size: 14px; max-width: 52ch;
    }
    .carousel-dots {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .carousel-dot {
      width: 10px; height: 10px; border-radius: 999px;
      border: 0; background: rgba(255,255,255,0.2);
      cursor: pointer; transition: .2s; padding: 0;
    }
    .carousel-dot.active {
      width: 28px; background: var(--grad-1);
    }
    .carousel-count {
      font-size: 12px; color: var(--text-mute); font-weight: 600;
      letter-spacing: 0.04em;
    }
    .carousel-actions {
      display: flex; align-items: center; gap: 10px;
    }
    .carousel-actions .btn { padding: 9px 16px; font-size: 13px; }

    /* Lightbox */
    .lightbox {
      position: fixed; inset: 0; z-index: 100;
      background: rgba(0,0,0,0.88); display: none;
      align-items: center; justify-content: center; padding: 24px;
      backdrop-filter: blur(8px);
    }
    .lightbox.open { display: flex; }
    .lightbox img {
      max-width: min(96vw, 1400px); max-height: 92vh;
      border-radius: 12px; border: 1px solid var(--border-strong);
      box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    }
    .lightbox-close {
      position: absolute; top: 18px; right: 22px;
      width: 40px; height: 40px; border-radius: 999px;
      background: rgba(255,255,255,0.1); border: 1px solid var(--border);
      color: #fff; font-size: 22px; cursor: pointer;
    }

    /* Sections */
    section { padding: 88px 0; }
    .section-head { max-width: 640px; margin-bottom: 40px; }
    .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--cyan); margin-bottom: 12px;
    }
    .section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
    .section-head p { font-size: 1.05rem; }

    .feature-grid {
      display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
    }
    .feature-tile {
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
      border: 1px solid var(--border); border-radius: var(--radius);
      padding: 20px 16px; transition: .25s;
      min-height: 120px;
    }
    .feature-tile:hover {
      transform: translateY(-4px);
      border-color: rgba(34,211,238,0.35);
      box-shadow: 0 20px 40px -24px rgba(34,211,238,0.4);
    }
    .feature-tile .icon {
      width: 36px; height: 36px; border-radius: 10px;
      display: grid; place-items: center; margin-bottom: 12px;
      background: rgba(79,124,255,0.15); color: #93b0ff;
    }
    .feature-tile h3 { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
    .feature-tile p { font-size: 12px; line-height: 1.45; }

    /* Deep features */
    .deep-tabs {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
      justify-content: center;
    }
    .deep-tab {
      padding: 10px 18px; border-radius: 999px;
      border: 1px solid var(--border); background: rgba(255,255,255,0.03);
      color: var(--text-soft); font-size: 13px; font-weight: 600;
      cursor: pointer; transition: .2s;
    }
    .deep-tab:hover { color: var(--text); border-color: var(--border-strong); }
    .deep-tab.active {
      background: var(--grad-1); color: #07070a; border-color: transparent;
    }
    .deep-panel {
      display: none;
      grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 28px;
    }
    .deep-panel.active { display: grid; animation: fadeUp .4s ease; }
    .deep-panel h3 { font-size: 1.45rem; margin-bottom: 10px; }
    .deep-panel .lead { font-size: 14px; margin-bottom: 16px; }
    .simple-steps {
      list-style: none; display: flex; flex-direction: column; gap: 12px;
      margin: 0 0 16px;
    }
    .simple-steps li {
      display: grid; grid-template-columns: 28px 1fr; gap: 12px;
      font-size: 14px; color: var(--text-soft); align-items: start;
    }
    .simple-steps .n {
      width: 28px; height: 28px; border-radius: 8px;
      background: rgba(34,211,238,0.15); color: var(--cyan);
      display: grid; place-items: center; font-size: 12px; font-weight: 800;
    }
    .simple-steps strong { color: var(--text); font-weight: 600; }
    .deep-shot {
      border-radius: var(--radius); border: 1px solid var(--border);
      overflow: hidden; background: #0e0e16; cursor: zoom-in;
    }
    .deep-shot img { width: 100%; display: block; }

    /* Why / compare */
    .why-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    }
    .why-card {
      padding: 24px; border-radius: var(--radius);
      background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
      border: 1px solid var(--border); transition: .25s;
    }
    .why-card:hover { border-color: rgba(79,124,255,0.4); transform: translateY(-3px); }
    .why-card h3 { font-size: 16px; margin: 12px 0 8px; }
    .why-card p { font-size: 14px; }
    .why-num {
      font-size: 12px; font-weight: 700; color: var(--cyan);
      letter-spacing: 0.06em;
    }

    .compare-wrap {
      overflow-x: auto; border-radius: var(--radius-lg);
      border: 1px solid var(--border); background: rgba(255,255,255,0.02);
    }
    table.compare {
      width: 100%; border-collapse: collapse; min-width: 640px;
    }
    .compare th, .compare td {
      padding: 14px 18px; text-align: left; font-size: 14px;
      border-bottom: 1px solid var(--border);
    }
    .compare th {
      background: rgba(255,255,255,0.04); font-size: 12px;
      text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute);
    }
    .compare td:first-child { color: var(--text); font-weight: 500; }
    .compare .yes { color: var(--green); font-weight: 600; }
    .compare .no { color: var(--text-mute); }
    .compare .partial { color: var(--amber); }

    /* Download */
    .download-block {
      display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px;
      padding: 40px; border-radius: var(--radius-xl);
      background:
        radial-gradient(600px circle at 0% 0%, rgba(79,124,255,0.28), transparent 50%),
        radial-gradient(500px circle at 100% 100%, rgba(34,211,238,0.2), transparent 45%),
        linear-gradient(180deg, #0c0c14, #07070a);
      border: 1px solid var(--border-strong);
    }
    .download-block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
    .req-list {
      margin: 20px 0 28px; list-style: none;
      display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-soft);
    }
    .req-list li::before { content: "• "; color: var(--cyan); }
    .dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .licence-box {
      background: rgba(0,0,0,0.35); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
      display: flex; flex-direction: column; gap: 14px; justify-content: center;
    }
    .licence-box h3 { font-size: 18px; }
    .licence-box p { font-size: 14px; }

    .divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
      margin: 0;
    }

    footer {
      padding: 48px 0 28px; border-top: 1px solid var(--border);
      background: rgba(0,0,0,0.25);
    }
    .footer-row {
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-mute);
    }
    .footer-row a:hover { color: var(--text); }

    @media (max-width: 1024px) {
      .feature-grid { grid-template-columns: repeat(3, 1fr); }
      .deep-panel.active, .download-block, .why-grid, .steps-grid { grid-template-columns: 1fr; }
      .hero-highlights { grid-template-columns: repeat(3, 1fr); }
      .carousel-stage { min-height: 320px; }
    }
    @media (max-width: 720px) {
      .nav-links { display: none; }
      .feature-grid { grid-template-columns: 1fr 1fr; }
      .hero { padding: 120px 0 48px; }
      .hero-highlights { grid-template-columns: 1fr 1fr; }
      section { padding: 64px 0; }
      .download-block { padding: 28px 20px; }
      .deep-panel { padding: 20px; }
      .steps-grid { grid-template-columns: 1fr 1fr; }
      .carousel-nav { width: 40px; height: 40px; }
      .carousel-nav.prev { left: 8px; }
      .carousel-nav.next { right: 8px; }
      .carousel-footer { padding: 16px; }
      .carousel-stage { aspect-ratio: 4/3; min-height: 260px; }
    }
    @media (max-width: 420px) {
      .feature-grid, .steps-grid, .hero-highlights { grid-template-columns: 1fr; }
    }
