:root {
    --blue: #0A84FF;
    --blue-dark: #0055CC;
    --gold: #F5A623;
    --bg: #050D1A;
    --card: #0B1929;
    --card2: #0D2040;
    --white: #FFFFFF;
    --muted: #8AAAC8;
    --new: #00E5A0;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--bg);
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    overflow-x: hidden;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px 80px;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, #0A3A7A55 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 80% 70%, #0055CC22 0%, transparent 60%);
    pointer-events: none;
  }

  .grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(10,132,255,.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(10,132,255,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridMove 20s linear infinite;
  }
  @keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(48px); } }

  .brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 6px;
    color: var(--blue);
    margin-bottom: 28px;
    animation: fadeUp .6s ease both;
  }

  .hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: 2px;
    animation: fadeUp .7s .1s ease both;
  }

  .hero h1 .static-line { display: block; }

  /* Typewriter */
  .typewriter-wrap {
    display: block;
    color: var(--blue);
    min-height: 1.15em;
  }
  #typewriter-text {
    border-right: 3px solid var(--blue);
    padding-right: 4px;
    animation: blink-caret .75s step-end infinite;
  }
  @keyframes blink-caret {
    0%, 100% { border-color: var(--blue); }
    50%       { border-color: transparent; }
  }

  .hero p.sub {
    margin-top: 20px;
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    color: var(--muted);
    max-width: 560px;
    line-height: 1.65;
    font-weight: 300;
    animation: fadeUp .7s .2s ease both;
  }

  .hero p.sub strong { color: var(--white); font-weight: 600; }

  .cta-btn {
    display: inline-block;
    margin-top: 36px;
    padding: 16px 44px;
    background: var(--blue);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    animation: fadeUp .7s .3s ease both;
  }
  .cta-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }

  /* ── SECTION TITLE ── */
  .section-label {
    text-align: center;
    padding: 64px 24px 12px;
  }
  .section-label h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
  }
  .section-label h2 span { color: var(--blue); }
  .section-label p { color: var(--muted); font-size: .95rem; margin-top: 8px; }

  /* ── COURSES GRID ── */
  .courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 32px auto 0;
    padding: 0 24px 80px;
  }

  .card {
    background: var(--card);
    border: 1px solid #1A2E48;
    border-radius: 12px;
    padding: 28px 24px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, border-color .25s, box-shadow .25s;
  }
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: 0 12px 40px #0A84FF18;
  }
  .card.new-course {
    border-color: var(--new);
    background: linear-gradient(135deg, #0B1929 60%, #01251A 100%);
  }
  .card.new-course:hover { border-color: var(--new); box-shadow: 0 12px 40px #00E5A018; }

  .badge-new {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--new);
    color: #000;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 #00E5A044; }
    50%      { box-shadow: 0 0 0 8px #00E5A000; }
  }

  .card-icon { font-size: 2rem; margin-bottom: 14px; color: var(--blue); }
  .card.new-course .card-icon { color: var(--new); }

  .card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem;
    letter-spacing: 1px;
    line-height: 1.1;
  }
  .card.new-course h3 { color: var(--new); }

  .card .tagline {
    font-size: .82rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
    font-weight: 300;
    flex-grow: 1;
  }

  .modules {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mod-tag {
    background: #0D2040;
    border: 1px solid #1E3A58;
    border-radius: 20px;
    font-size: .72rem;
    padding: 3px 10px;
    color: #8AAAC8;
  }
  .card.new-course .mod-tag { background: #012018; border-color: #025A34; color: #5CE8B4; }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #1A2E48;
  }
  .price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 1px;
  }
  .duration { font-size: .78rem; color: var(--muted); }

  /* ── SABER MAIS BUTTON ── */
  .btn-saber {
    margin-top: 16px;
    width: 100%;
    padding: 11px 0;
    background: transparent;
    border: 1px solid #1E3A58;
    border-radius: 6px;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    letter-spacing: .5px;
  }
  .btn-saber:hover { background: #0A84FF14; border-color: var(--blue); color: var(--blue); }
  .card.new-course .btn-saber:hover { background: #00E5A014; border-color: var(--new); color: var(--new); }

  /* ── WHY SECTION ── */
  .why {
    background: var(--card2);
    border-top: 1px solid #1A2E48;
    border-bottom: 1px solid #1A2E48;
    padding: 60px 24px;
    text-align: center;
  }
  .why h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 2px;
    margin-bottom: 32px;
  }
  .why h2 span { color: var(--blue); }
  .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
  }
  .why-item { padding: 8px; }
  .why-icon { font-size: 2rem; margin-bottom: 10px; color: var(--blue); }
  .why-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
  .why-item p { font-size: .85rem; color: var(--muted); line-height: 1.55; }

  /* ── FOOTER ── */
  footer { padding: 48px 24px; text-align: center; }
  footer .logo-txt {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--blue);
    margin-bottom: 6px;
  }
  footer .motto { font-size: .8rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
  footer .contacts {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-size: .9rem;
    color: var(--muted);
  }
  footer .contacts a { color: var(--white); text-decoration: none; }
  footer .contacts a:hover { color: var(--blue); }
  footer .cta-final { margin-top: 30px; font-size: 1rem; color: var(--muted); }
  footer .cta-final strong { color: var(--white); }

  /* ── MODAL ── */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 13, 26, 0.88);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }

  .modal {
    background: #0B1929;
    border: 1px solid #1A2E48;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    scrollbar-width: thin;
    scrollbar-color: #1A2E48 transparent;
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }

  .modal.is-new { border-color: var(--new); }

  .modal-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #1A2E48;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    position: sticky;
    top: 0;
    background: #0B1929;
    z-index: 2;
    border-radius: 16px 16px 0 0;
  }
  .modal.is-new .modal-header { background: #09201A; }

  .modal-header-left { display: flex; flex-direction: column; gap: 4px; }
  .modal-emoji { font-size: 2rem; color: var(--blue); }
  .modal.is-new .modal-emoji { color: var(--new); }
  .modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    line-height: 1;
  }
  .modal.is-new .modal-title { color: var(--new); }

  .modal-subtitle { font-size: .82rem; color: var(--muted); margin-top: 2px; }

  .modal-close {
    background: #0D2040;
    border: 1px solid #1E3A58;
    color: var(--muted);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
    flex-shrink: 0;
  }
  .modal-close:hover { background: #1A2E48; color: #fff; }

  .modal-body { padding: 24px 28px 28px; }

  /* intro strip */
  .modal-intro {
    background: #0D2040;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .modal-intro strong { color: #fff; }

  /* info row */
  .modal-info-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .info-chip {
    background: #0D2040;
    border: 1px solid #1E3A58;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 120px;
  }
  .info-chip .ic-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .info-chip .ic-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; color: var(--gold); letter-spacing: .5px; }
  .info-chip .ic-val.blue { color: var(--blue); }

  /* modules detail */
  .modules-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 14px;
  }

  .module-item {
    background: #0D2040;
    border: 1px solid #1E3A58;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color .2s;
  }
  .module-item:hover { border-color: var(--blue); }
  .modal.is-new .module-item:hover { border-color: var(--new); }

  .mod-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--blue);
    line-height: 1;
    min-width: 36px;
  }
  .modal.is-new .mod-num { color: var(--new); }

  .mod-content h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .mod-content p {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
  }

  /* tags in modal */
  .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
  }
  .modal-tag {
    background: #0B1929;
    border: 1px solid #1E3A58;
    border-radius: 20px;
    font-size: .75rem;
    padding: 4px 12px;
    color: var(--muted);
  }

  /* cta inside modal */
  .modal-cta {
    margin-top: 26px;
    display: block;
    width: 100%;
    padding: 14px 0;
    background: var(--blue);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
  }
  .modal-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
  .modal.is-new .modal-cta { background: var(--new); color: #000; }
  .modal.is-new .modal-cta:hover { background: #00c98c; }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* scrollbar */
  .modal::-webkit-scrollbar { width: 5px; }
  .modal::-webkit-scrollbar-track { background: transparent; }
  .modal::-webkit-scrollbar-thumb { background: #1A2E48; border-radius: 10px; }
