:root {
      --bg: #0a0a0f;
      --bg-soft: #12121a;
      --bg-card: #1a1a26;
      --ink: #eceef4;
      --ink-soft: #b0b4c4;
      --ink-mute: #6a6e80;
      --accent: #6366f1;
      --accent-soft: #818cf8;
      --border: #2a2a3a;
      --font-heading: 'Playfair Display', Georgia, serif;
      --font-body: 'Inter', -apple-system, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--ink);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    /* ── Nav ── */
    .nav {
      position: fixed; top: 0; width: 100%; z-index: 100;
      background: rgba(10,10,15,0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 2rem;
    }
    .nav__inner {
      max-width: 1200px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      height: 56px;
    }
    .nav__logo {
      font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
      color: var(--ink); text-decoration: none;
    }
    .nav__logo span {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .nav__links { display: flex; gap: 2rem; list-style: none; }
    .nav__links a {
      color: var(--ink-soft); text-decoration: none; font-size: 0.85rem;
      font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s;
    }
    .nav__links a:hover { color: var(--ink); }
    .nav__hamburger {
      display: none; background: none; border: none; cursor: pointer; padding: 4px;
    }
    .nav__hamburger svg { stroke: var(--ink-soft); }

    /* ── Hero ── */
    .hero {
      min-height: 100vh;
      display: flex; align-items: center; justify-content: center;
      text-align: center; padding: 6rem 2rem 4rem;
      background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.12), transparent),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(139,92,246,0.08), transparent);
    }
    .hero__inner { max-width: 800px; }
    .hero__badge {
      display: inline-block; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-soft);
      border: 1px solid var(--border); padding: 6px 18px; border-radius: 999px;
      margin-bottom: 2rem;
    }
    .hero h1 {
      font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem);
      font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
    }
    .hero h1 em {
      font-style: normal;
      background: linear-gradient(135deg, #6366f1, #a78bfa);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .hero__sub {
      font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--ink-soft);
      max-width: 620px; margin: 0 auto 2.5rem;
    }
    .hero__cta {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 28px; background: var(--accent); color: #fff;
      text-decoration: none; border-radius: 8px; font-weight: 600;
      font-size: 0.95rem; transition: background 0.2s;
    }
    .hero__cta:hover { background: #4f46e5; }

    /* ── Section base ── */
    section { padding: 6rem 2rem; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-eyebrow {
      font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
      text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1rem;
    }
    .section-title {
      font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.5rem);
      font-weight: 700; margin-bottom: 1rem;
    }
    .section-desc {
      font-size: 1.05rem; color: var(--ink-soft); max-width: 660px; margin-bottom: 3rem;
    }
    .section-center { text-align: center; }
    .section-center .section-desc { margin-left: auto; margin-right: auto; }
    .alt-bg { background: var(--bg-soft); }

    /* ── Problem ── */
    .problem-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem;
    }
    .problem-card { padding: 2rem; border-radius: 12px; }
    .problem-card--before { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); }
    .problem-card--after { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.15); }
    .problem-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 1rem; }
    .problem-card--before h3 { color: #f87171; }
    .problem-card--after h3 { color: var(--accent-soft); }
    .problem-card ul { list-style: none; }
    .problem-card li {
      font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6;
      padding: 0.4rem 0 0.4rem 1.4rem; position: relative;
    }
    .problem-card--before li::before { content: "\2717"; position: absolute; left: 0; color: #f87171; }
    .problem-card--after li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-soft); }

    /* ── Cards grid ── */
    .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .card {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 12px; padding: 2rem;
    }
    .card__icon {
      width: 40px; height: 40px; border-radius: 10px;
      background: rgba(99,102,241,0.12);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.2rem; color: var(--accent-soft);
    }
    .card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.5rem; }
    .card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; }

    /* ── Showcase (visual mockups) ── */
    .showcase-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    }
    .mockup {
      border-radius: 12px; overflow: hidden;
      border: 1px solid var(--border); background: var(--bg-card);
    }
    .mockup__bar {
      display: flex; align-items: center; gap: 6px;
      padding: 10px 14px; background: rgba(255,255,255,0.03);
      border-bottom: 1px solid var(--border);
    }
    .mockup__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
    .mockup__body { padding: 1.2rem; min-height: 180px; }
    .mockup__label {
      font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.8rem;
    }
    /* Skill tree mockup */
    .mock-tree { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .mock-node {
      width: 48px; height: 48px; border-radius: 50%; border: 2px solid;
      display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600;
    }
    .mock-row { display: flex; gap: 12px; }
    .mock-line { width: 2px; height: 12px; background: var(--border); }
    /* Autolink mockup */
    .mock-text { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.8; }
    .mock-link {
      color: #F59E0B; border-bottom: 1px dotted #F59E0B; cursor: default;
      position: relative;
    }
    .mock-link-ref { color: #3B82F6; border-bottom: 1px dotted #3B82F6; }
    .mock-tooltip {
      position: absolute; bottom: 100%; left: 0; background: var(--bg);
      border: 1px solid var(--border); border-left: 3px solid #F59E0B;
      border-radius: 6px; padding: 6px 10px; font-size: 0.72rem;
      color: var(--ink-soft); width: 180px; white-space: normal;
      pointer-events: none;
    }
    /* Levels mockup */
    .mock-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 12px; }
    .mock-tab {
      padding: 6px 12px; font-size: 0.72rem; font-weight: 500;
      color: var(--ink-mute); border-bottom: 2px solid transparent; margin-bottom: -2px;
    }
    .mock-tab--active { color: #10B981; border-bottom-color: #10B981; }
    .mock-content-line {
      height: 6px; border-radius: 3px; background: var(--border); margin-bottom: 8px;
    }
    .mock-content-line:nth-child(2) { width: 85%; }
    .mock-content-line:nth-child(3) { width: 70%; }
    .mock-content-line:nth-child(4) { width: 90%; }

    /* ── Demo interactiva ── */
    .demo {
      background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
      padding: 2rem; overflow: hidden;
    }
    .demo__tree-label {
      font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.5rem; text-align: center;
    }
    .demo__tree-nodes {
      display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
    }
    .demo__tree-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .demo__node {
      display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
      transition: transform 0.15s;
    }
    .demo__node:hover { transform: scale(1.08); }
    .demo__node-circle {
      width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      background: var(--bg); color: var(--ink-mute); transition: all 0.3s;
    }
    .demo__node-name { font-size: 0.75rem; color: var(--ink-mute); font-weight: 500; transition: color 0.3s; }
    .demo__node--available .demo__node-circle {
      border-color: #10B981; color: #10B981;
      box-shadow: 0 0 16px rgba(16,185,129,0.25);
      background: rgba(16,185,129,0.08);
    }
    .demo__node--available .demo__node-name { color: #10B981; }
    .demo__node--done .demo__node-circle {
      border-color: #10B981; background: #10B981; color: #fff;
    }
    .demo__node--done .demo__node-name { color: #10B981; }
    .demo__node--locked { cursor: not-allowed; opacity: 0.5; }
    .demo__node--locked:hover { transform: none; }
    .demo__node--active .demo__node-circle {
      border-color: var(--accent); color: var(--accent);
      box-shadow: 0 0 20px rgba(99,102,241,0.3);
      background: rgba(99,102,241,0.1);
    }
    .demo__node--active .demo__node-name { color: var(--accent-soft); }

    .demo__detail {
      margin-top: 1.5rem; padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      animation: fadeIn 0.3s ease;
    }
    @keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
    .demo__detail-header {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
    }
    .demo__detail-title {
      font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
    }
    .demo__detail-close {
      background: none; border: none; color: var(--ink-mute); font-size: 1.5rem;
      cursor: pointer; padding: 4px 8px; transition: color 0.2s;
    }
    .demo__detail-close:hover { color: var(--ink); }

    .demo__tabs {
      display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.2rem;
    }
    .demo__tab {
      padding: 8px 16px; border: none; background: none;
      color: var(--ink-mute); font-size: 0.82rem; font-weight: 500;
      cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
      font-family: var(--font-body); transition: all 0.2s;
    }
    .demo__tab--active { color: #10B981; border-bottom-color: #10B981; }
    .demo__tab--l2.demo__tab--active { color: #3B82F6; border-bottom-color: #3B82F6; }
    .demo__tab--l3.demo__tab--active { color: #8B5CF6; border-bottom-color: #8B5CF6; }
    .demo__tab--locked { opacity: 0.35; cursor: not-allowed; }

    .demo__content {
      font-size: 0.92rem; line-height: 1.75; color: var(--ink-soft);
      max-width: 700px; min-height: 80px;
    }
    .demo__content p { margin-bottom: 0.8rem; }
    .demo__content strong { color: var(--ink); }
    .demo__autolink {
      color: #F59E0B; border-bottom: 1px dotted #F59E0B; cursor: help;
      position: relative;
    }
    .demo__autolink:hover .demo__tooltip { opacity: 1; pointer-events: auto; }
    .demo__tooltip {
      position: absolute; bottom: calc(100% + 6px); left: 0;
      background: var(--bg); border: 1px solid var(--border);
      border-left: 3px solid #F59E0B; border-radius: 8px;
      padding: 8px 12px; font-size: 0.78rem; color: var(--ink-soft);
      width: 220px; line-height: 1.5; opacity: 0; pointer-events: none;
      transition: opacity 0.15s; z-index: 10; white-space: normal;
    }
    .demo__tooltip strong { color: #F59E0B; display: block; margin-bottom: 2px; }

    .demo__complete-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 20px; border: 2px solid var(--border); border-radius: 999px;
      background: transparent; color: var(--ink-soft); font-size: 0.85rem;
      font-weight: 600; cursor: pointer; font-family: var(--font-body);
      transition: all 0.2s; margin-top: 1.2rem;
    }
    .demo__complete-btn:hover { border-color: #22c55e; color: #22c55e; }
    .demo__complete-btn--done {
      background: #22c55e; border-color: #22c55e; color: #0f172a;
    }

    .demo__hint {
      display: flex; align-items: center; gap: 8px; justify-content: center;
      margin-top: 1.5rem; font-size: 0.78rem; color: var(--ink-mute);
    }

    .demo__disclaimer {
      margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 8px;
      background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.15);
      font-size: 0.78rem; color: var(--ink-mute); line-height: 1.6; text-align: center;
    }

    /* ── Scroll reveal ── */
    .reveal {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1; transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }

    /* ── Enhanced card hovers ── */
    .card {
      transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    }
    .card:hover {
      transform: translateY(-4px);
      border-color: var(--accent);
      box-shadow: 0 8px 24px rgba(99,102,241,0.12);
    }
    .campo-item {
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .campo-item:hover {
      transform: translateY(-2px);
      border-color: rgba(99,102,241,0.3);
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
    .how-step {
      transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    }
    .how-step:hover {
      transform: translateY(-3px);
      border-color: var(--accent);
      box-shadow: 0 8px 24px rgba(99,102,241,0.1);
    }
    .coming-chip {
      transition: transform 0.2s, border-color 0.2s, background 0.2s;
      cursor: default;
    }
    .coming-chip:hover {
      transform: scale(1.05);
      border-color: var(--accent);
      background: rgba(99,102,241,0.06);
    }
    .coming-chip:hover .coming-chip__dot { opacity: 1; }

    /* ── Animated counter ── */
    .project-card__stat-num {
      transition: color 0.3s;
    }

    /* ── Campos ── */
    .campos-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem;
    }
    .campo-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 1.2rem 1.4rem;
      background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    }
    .campo-item__icon {
      width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    }
    .campo-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
    .campo-item p { font-size: 0.78rem; color: var(--ink-mute); line-height: 1.5; }

    /* ── Mechanics ── */
    .how-steps {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
      counter-reset: step;
    }
    .how-step {
      position: relative; padding: 2rem 1.8rem;
      background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
      counter-increment: step;
    }
    .how-step::before {
      content: counter(step);
      font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700;
      color: var(--border); position: absolute; top: 1rem; right: 1.2rem;
    }
    .how-step h3 {
      font-family: var(--font-heading); font-size: 1.1rem;
      margin-bottom: 0.5rem; color: var(--accent-soft);
    }
    .how-step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; }

    /* ── Projects ── */
    .projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .project-card {
      display: block; background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 12px; padding: 2.2rem; text-decoration: none;
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
      border-left: 4px solid var(--project-color, var(--accent));
    }
    .project-card:hover {
      transform: translateY(-3px);
      border-color: var(--project-color, var(--accent));
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .project-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
    .project-card__icon {
      width: 48px; height: 48px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .project-card__name {
      font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--ink);
    }
    .project-card__sub {
      font-size: 0.78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em;
    }
    .project-card__desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.2rem; }
    .project-card__stats { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1rem; }
    .project-card__stat { text-align: center; min-width: 60px; }
    .project-card__stat-num {
      font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1;
    }
    .project-card__stat-label {
      font-size: 0.68rem; color: var(--ink-mute); text-transform: uppercase;
      letter-spacing: 0.05em; margin-top: 4px;
    }
    .project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .project-card__tag {
      font-size: 0.7rem; padding: 3px 10px; border-radius: 999px;
      background: rgba(255,255,255,0.06); color: var(--ink-mute); letter-spacing: 0.03em;
    }

    /* ── Coming soon ── */
    .coming-grid {
      display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
    }
    .coming-chip {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 20px; border: 1px dashed var(--border); border-radius: 999px;
      font-size: 0.88rem; color: var(--ink-mute); font-weight: 500;
    }
    .coming-chip__dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--accent); opacity: 0.5;
    }

    /* ── FAQ ── */
    .faq-list { max-width: 750px; }
    .faq-item {
      border-bottom: 1px solid var(--border); padding: 1.5rem 0;
    }
    .faq-item summary {
      font-size: 1rem; font-weight: 600; cursor: pointer; list-style: none;
      display: flex; justify-content: space-between; align-items: center;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: "+"; font-size: 1.3rem; color: var(--accent-soft);
      transition: transform 0.2s; flex-shrink: 0; margin-left: 1rem;
    }
    .faq-item[open] summary::after { content: "-"; }
    .faq-item p {
      margin-top: 1rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7;
    }

    /* ── CTA / Newsletter ── */
    .cta-section {
      text-align: center;
      background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.1), transparent);
    }
    .cta-section .section-title { margin-bottom: 0.8rem; }
    .cta-section .section-desc { margin-bottom: 2rem; margin-left: auto; margin-right: auto; }
    .cta-form {
      display: flex; gap: 10px; max-width: 440px; margin: 0 auto;
    }
    .cta-input {
      flex: 1; padding: 12px 16px; border: 1px solid var(--border);
      border-radius: 8px; background: var(--bg-card); color: var(--ink);
      font-family: var(--font-body); font-size: 0.9rem; outline: none;
      transition: border-color 0.2s;
    }
    .cta-input:focus { border-color: var(--accent); }
    .cta-input::placeholder { color: var(--ink-mute); }
    .cta-btn {
      padding: 12px 24px; background: var(--accent); color: #fff; border: none;
      border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
      font-family: var(--font-body); transition: background 0.2s; white-space: nowrap;
    }
    .cta-btn:hover { background: #4f46e5; }
    .cta-note {
      margin-top: 0.8rem; font-size: 0.75rem; color: var(--ink-mute);
    }

    /* ── Footer ── */
    .footer {
      padding: 3rem 2rem; border-top: 1px solid var(--border); text-align: center;
    }
    .footer p { font-size: 0.82rem; color: var(--ink-mute); }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .cards-grid, .how-steps, .projects-grid, .problem-grid, .showcase-grid {
        grid-template-columns: 1fr;
      }
      .nav__links { display: none; }
      .nav__links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 56px; right: 0; left: 0;
        background: rgba(10,10,15,0.97); border-bottom: 1px solid var(--border);
        padding: 1rem 2rem; gap: 1rem;
      }
      .nav__hamburger { display: block; }
      .cta-form { flex-direction: column; }
    }
    @media (max-width: 600px) {
      .campos-grid { grid-template-columns: 1fr; }
    }
.nav__link--active { color: var(--ink) !important; font-weight: 600; }
.hero--mini { min-height: 50vh; padding: 5rem 2rem 2rem; }
.hero--mini h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.nav__lang-btn {
  background: none; border: 1px solid var(--border); color: var(--ink-soft);
  padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; letter-spacing: 0.05em; font-family: var(--font-body);
  transition: all 0.2s;
}
.nav__lang-btn:hover { border-color: var(--accent); color: var(--ink); }
