@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #030014; font-family: "Inter", sans-serif; color: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }
#cursos, #ferramentas, #vitrine, #historia { scroll-margin-top: 80px; }

/* ===== NAVBAR ===== */
.t3d-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(3,0,20,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 40px; height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.t3d-nav .logo { font-family: "Space Grotesk", sans-serif; font-size: 1.4em; font-weight: 700; }
.t3d-nav .logo span { background: linear-gradient(135deg, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.t3d-nav .nav-links { display: flex; gap: 32px; align-items: center; }
.t3d-nav .nav-links a { color: rgba(255,255,255,0.6); font-size: 0.9em; font-weight: 500; transition: color 0.3s; }
.t3d-nav .nav-links a:hover { color: #fff; }
.t3d-nav .nav-cta { padding: 10px 24px; background: linear-gradient(135deg, #7c3aed, #ec4899); border-radius: 100px; color: #fff !important; font-weight: 700; font-size: 0.85em; transition: all 0.3s; }
.t3d-nav .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }

/* ===== HERO ===== */
.hero-wrap {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 120px 20px 80px;
}
.mesh-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.mesh-bg .orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.mesh-bg .orb-1 { width: 700px; height: 700px; background: #7c3aed; top: -20%; left: -15%; opacity: 0.25; animation: orbM1 20s ease-in-out infinite; }
.mesh-bg .orb-2 { width: 500px; height: 500px; background: #ec4899; bottom: -15%; right: -10%; opacity: 0.2; animation: orbM2 25s ease-in-out infinite; }
.mesh-bg .orb-3 { width: 350px; height: 350px; background: #06b6d4; top: 40%; left: 60%; opacity: 0.12; animation: orbM3 18s ease-in-out infinite; }
@keyframes orbM1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(100px,60px); } }
@keyframes orbM2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-80px,-50px); } }
@keyframes orbM3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px,40px); } }
.grid-overlay {
    position: absolute; inset: 0; z-index: 1; opacity: 0.035;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    padding: 8px 22px; border-radius: 100px; color: #c084fc;
    font-size: 0.8em; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 30px; animation: fadeUp 0.6s ease both;
}
.hero-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
.hero-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(3em, 8vw, 6.5em); font-weight: 700; line-height: 1.02; margin-bottom: 24px; animation: fadeUp 0.6s ease 0.15s both; }
.hero-title .line1 { display: block; color: #fff; }
.hero-title .line2 { display: block; background: linear-gradient(135deg, #a855f7, #ec4899, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradShift 6s ease infinite; background-size: 200% 200%; }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-desc { color: rgba(255,255,255,0.5); font-size: 1.2em; line-height: 1.8; max-width: 540px; margin: 0 auto 40px; animation: fadeUp 0.6s ease 0.3s both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s ease 0.45s both; }
.btn-glow { padding: 16px 38px; border-radius: 100px; font-weight: 700; font-size: 0.95em; transition: all 0.4s; display: inline-block; }
.btn-glow.primary { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; box-shadow: 0 0 30px rgba(124,58,237,0.35), 0 0 80px rgba(124,58,237,0.1); }
.btn-glow.primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(124,58,237,0.55), 0 0 100px rgba(124,58,237,0.2); }
.btn-glow.secondary { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: #fff; }
.btn-glow.secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.25); font-size: 0.7em; letter-spacing: 3px; text-transform: uppercase; }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ===== STATS ===== */
.stats-strip { display: flex; justify-content: center; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.02); }
.stats-strip .s-item { flex: 1; max-width: 280px; text-align: center; padding: 45px 20px; border-right: 1px solid rgba(255,255,255,0.04); }
.stats-strip .s-item:last-child { border-right: none; }
.stats-strip .s-num { font-family: "Space Grotesk", sans-serif; font-size: 3em; font-weight: 700; background: linear-gradient(135deg, #c084fc, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stats-strip .s-label { color: rgba(255,255,255,0.3); font-size: 0.78em; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; }

/* ===== SECTION HEADERS ===== */
.sec-head { text-align: center; padding: 100px 20px 50px; }
.sec-head .sec-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78em; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 20px; }
.sec-head .sec-tag .bar { width: 30px; height: 2px; border-radius: 2px; }
.sec-head .sec-tag.purple { color: #c084fc; } .sec-head .sec-tag.purple .bar { background: #c084fc; }
.sec-head .sec-tag.pink { color: #ec4899; } .sec-head .sec-tag.pink .bar { background: #ec4899; }
.sec-head .sec-tag.cyan { color: #06b6d4; } .sec-head .sec-tag.cyan .bar { background: #06b6d4; }
.sec-head .sec-tag.amber { color: #f59e0b; } .sec-head .sec-tag.amber .bar { background: #f59e0b; }
.sec-head h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2em, 5vw, 3.2em); font-weight: 700; color: #fff; margin-bottom: 16px; }
.sec-head .sec-desc { color: rgba(255,255,255,0.38); font-size: 1.08em; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ===== COURSE CARDS ===== */
.courses-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 100px; }
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { position: relative; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: all 0.5s cubic-bezier(0.23,1,0.32,1); display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.12); box-shadow: 0 25px 60px rgba(0,0,0,0.3); }
.course-card .c-gradient { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3.5em; position: relative; overflow: hidden; }
.course-card:nth-child(1) .c-gradient { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.course-card:nth-child(2) .c-gradient { background: linear-gradient(135deg, #ec4899, #f472b6); }
.course-card:nth-child(3) .c-gradient { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.course-card:nth-child(4) .c-gradient { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.course-card .c-gradient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.15), transparent 60%); }
.course-card .c-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.course-card .c-badge { display: inline-block; font-size: 0.68em; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 8px; margin-bottom: 14px; width: fit-content; }
.course-card:nth-child(1) .c-badge { background: rgba(124,58,237,0.12); color: #c084fc; }
.course-card:nth-child(2) .c-badge { background: rgba(236,72,153,0.12); color: #ec4899; }
.course-card:nth-child(3) .c-badge { background: rgba(6,182,212,0.12); color: #06b6d4; }
.course-card:nth-child(4) .c-badge { background: rgba(245,158,11,0.12); color: #f59e0b; }
.course-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.3em; font-weight: 700; color: #fff; margin-bottom: 10px; }
.course-card .c-desc { color: rgba(255,255,255,0.42); font-size: 0.9em; line-height: 1.7; flex: 1; }
.course-card .c-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; margin-top: 20px; }
.course-card .c-price { font-family: "Space Grotesk", sans-serif; font-size: 1.7em; font-weight: 700; color: #fff; }
.course-card .c-price small { font-size: 0.45em; color: rgba(255,255,255,0.35); font-weight: 400; display: block; }
.course-card .c-btn { padding: 11px 24px; border-radius: 100px; font-size: 0.82em; font-weight: 700; color: #fff; transition: all 0.3s; display: inline-block; }
.course-card:nth-child(1) .c-btn { background: #7c3aed; }
.course-card:nth-child(2) .c-btn { background: #ec4899; }
.course-card:nth-child(3) .c-btn { background: #06b6d4; color: #030014; }
.course-card:nth-child(4) .c-btn { background: #f59e0b; color: #030014; }
.course-card .c-btn:hover { transform: scale(1.08); filter: brightness(1.2); }

/* ===== BENTO TOOLS ===== */
.tools-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 100px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 36px; transition: all 0.5s cubic-bezier(0.23,1,0.32,1); }
.bento-item:hover { transform: translateY(-8px); border-color: rgba(124,58,237,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.bento-item.featured { grid-column: span 2; }
.bento-item .b-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6em; margin-bottom: 20px; }
.bento-item:nth-child(odd) .b-icon { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.15)); }
.bento-item:nth-child(even) .b-icon { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(34,211,238,0.15)); }
.bento-item h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.2em; font-weight: 700; color: #fff; margin-bottom: 8px; }
.bento-item .b-desc { color: rgba(255,255,255,0.38); font-size: 0.9em; line-height: 1.65; margin-bottom: 18px; }
.bento-item .b-link { display: inline-flex; align-items: center; gap: 6px; color: #c084fc; font-size: 0.85em; font-weight: 600; transition: gap 0.3s; }
.bento-item:hover .b-link { gap: 12px; }

/* ===== HISTORY ===== */
.history-wrap { position: relative; padding: 100px 20px; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.history-wrap .h-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,58,237,0.02), rgba(6,182,212,0.02)); }
.history-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.history-text .h-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78em; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #06b6d4; margin-bottom: 20px; }
.history-text .h-tag .bar { width: 30px; height: 2px; background: #06b6d4; border-radius: 2px; }
.history-text h2 { font-family: "Space Grotesk", sans-serif; font-size: 2.5em; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 24px; }
.history-text p { color: rgba(255,255,255,0.45); font-size: 1.02em; line-height: 1.9; margin-bottom: 16px; }
.timeline { display: flex; gap: 0; margin-top: 40px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.06); }
.tl-item { flex: 1; text-align: center; position: relative; }
.tl-item .tl-dot { width: 12px; height: 12px; border-radius: 50%; margin: 12px auto 14px; position: relative; z-index: 1; }
.tl-item:nth-child(1) .tl-dot { background: #a855f7; box-shadow: 0 0 20px rgba(168,85,247,0.5); }
.tl-item:nth-child(2) .tl-dot { background: #ec4899; box-shadow: 0 0 20px rgba(236,72,153,0.5); }
.tl-item:nth-child(3) .tl-dot { background: #06b6d4; box-shadow: 0 0 20px rgba(6,182,212,0.5); }
.tl-item:nth-child(4) .tl-dot { background: #10b981; box-shadow: 0 0 20px rgba(16,185,129,0.5); }
.tl-item .tl-year { font-family: "Space Grotesk", sans-serif; font-size: 1.5em; font-weight: 700; color: #fff; }
.tl-item .tl-label { color: rgba(255,255,255,0.3); font-size: 0.75em; margin-top: 4px; }
.h-visual-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 30px; height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.h-visual-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(6,182,212,0.04), transparent); }
.h-visual-card .h-icon { font-size: 7em; position: relative; z-index: 1; animation: floatSlow 5s ease-in-out infinite; }
@keyframes floatSlow { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
.h-visual-card .h-label { position: relative; z-index: 1; margin-top: 20px; color: rgba(255,255,255,0.4); font-family: "Space Grotesk", sans-serif; font-size: 1.1em; font-weight: 600; }

/* ===== SHOWCASE ===== */
.showcase-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 100px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.showcase-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 28px 18px; text-align: center; transition: all 0.5s cubic-bezier(0.23,1,0.32,1); position: relative; }
.showcase-card::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #a855f7, #ec4899); opacity: 0; transition: all 0.4s; }
.showcase-card:hover::before { opacity: 1; width: 60%; }
.showcase-card:hover { transform: translateY(-8px); border-color: rgba(124,58,237,0.15); background: rgba(255,255,255,0.06); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.showcase-card .sc-avatar { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.7em; background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.12)); transition: transform 0.4s; }
.showcase-card:hover .sc-avatar { transform: scale(1.12) rotate(5deg); }
.showcase-card h4 { font-family: "Space Grotesk", sans-serif; font-size: 0.95em; font-weight: 700; color: #fff; margin-bottom: 4px; }
.showcase-card .sc-city { color: rgba(255,255,255,0.28); font-size: 0.78em; margin-bottom: 14px; }
.showcase-card .sc-links { display: flex; justify-content: center; gap: 6px; }
.showcase-card .sc-links a { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); font-size: 0.8em; transition: all 0.3s; }
.showcase-card .sc-links a:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; transform: translateY(-2px); }
.showcase-card.add-card { border-style: dashed; border-color: rgba(124,58,237,0.2); }
.showcase-card.add-card:hover { border-color: #7c3aed; }

/* ===== CTA ===== */
.cta-wrap { max-width: 1100px; margin: 0 auto 100px; padding: 0 20px; }
.cta-box { position: relative; border-radius: 30px; overflow: hidden; padding: 80px 40px; text-align: center; }
.cta-box .cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #7c3aed, #ec4899, #7c3aed); background-size: 200% 200%; animation: gradShift 8s ease infinite; }
.cta-box .cta-pattern { position: absolute; inset: 0; opacity: 0.06; background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 24px 24px; }
.cta-box h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8em, 4vw, 2.8em); font-weight: 700; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,0.85); font-size: 1.12em; margin-bottom: 35px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; line-height: 1.7; }
.cta-box .cta-btn { display: inline-block; padding: 18px 50px; background: #fff; color: #7c3aed; border-radius: 100px; font-weight: 800; font-size: 1.05em; transition: all 0.4s; position: relative; z-index: 1; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.cta-box .cta-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 15px 50px rgba(0,0,0,0.3); }

/* ===== FOOTER ===== */
.t3d-footer { text-align: center; padding: 40px 20px; border-top: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); font-size: 0.85em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-item.featured { grid-column: span 2; }
}
@media (max-width: 768px) {
    .t3d-nav { padding: 0 20px; }
    .t3d-nav .nav-links { display: none; }
    .courses-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.featured { grid-column: span 1; }
    .history-inner { grid-template-columns: 1fr; gap: 40px; }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { flex-wrap: wrap; }
    .stats-strip .s-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .timeline { flex-wrap: wrap; gap: 15px; }
    .timeline::before { display: none; }
    .cta-box { padding: 50px 25px; }
}
@media (max-width: 480px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .stats-strip .s-item { min-width: 100%; }
}
