:root {
    --bg-dark: #050508;
    --bg-panel: rgba(12, 12, 20, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00E1FF;
    --accent-purple: #6100FF;
    --text-main: #FFFFFF;
    --text-muted: #888899;
    --grad-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --navbar-blur: blur(20px);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: exclusion;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 225, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 1);
    mix-blend-mode: difference;
}

.cursor-follower.hovered {
    opacity: 0;
}

/* Hide custom cursor on touch devices */
@media (max-width: 768px) {
    * {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

html {
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Effects */
.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(97, 0, 255, 0.08) 0%, rgba(5, 5, 8, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
}

.blob-bg-2 {
    top: 40%;
    left: 40%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.05) 0%, rgba(5, 5, 8, 0) 70%);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    text-transform: uppercase;
    line-height: 1.1;
}

.huge-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 900;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.is-italic {
    font-style: italic;
    font-weight: 300;
    padding-right: 0.1em;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 0.1em;
    padding-bottom: 0.1em;
}

.mix-blend {
    mix-blend-mode: difference;
    color: #fff;
    position: relative;
    z-index: 10;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.01);
    backdrop-filter: var(--navbar-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Magnetic Items & Buttons */
.magnetic {
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 10px 30px rgba(97, 0, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-secondary:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    padding-right: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Hero Visual SVG */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.glass-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.01), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.animated-svg {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 1.5px solid #fff;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Services */
.services {
    padding: 15vw 0;
}

.section-header {
    text-align: left;
    margin-bottom: 6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
}

.glass-panel:hover .card-glow {
    opacity: 1;
    transform: translate(30px, 30px);
}

.icon-wrapper {
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #CCC;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Tech Section */
.tech-stack {
    padding: 10vw 2rem;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.tech-content {
    flex: 1;
}

.metrics {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.metric .number {
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: flex-start;
}

.metric .symbol {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.metric .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
}

.tech-visual {
    flex: 1;
    padding: 0;
}

.code-window {
    background: #0A0A0E;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    font-family: 'JetBrains Mono', monospace, Courier;
    font-size: 0.9rem;
    line-height: 1.6;
}

.window-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 8px;
}

.window-header .dot {
    width: 10px;
    height: 10px;
    box-shadow: none;
}

.dot.red {
    background: #FF5A54;
}

.dot.yellow {
    background: #E6C02A;
}

.dot.green {
    background: #53C22B;
}

.window-header .title {
    margin: 0 auto;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.code-window pre {
    padding: 2.5rem 2rem;
    color: #D4D4D4;
    overflow-x: auto;
}

.code-window .keyword {
    color: #569CD6;
}

.code-window .string {
    color: #CE9178;
}

.code-window .function {
    color: #DCDCAA;
}

/* Marquee */
.marquee-section {
    padding: 5vw 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg) scale(1.05);
    /* Slight skew effect */
}

.marquee-container {
    display: flex;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: marqueeMove 20s linear infinite;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

@keyframes marqueeMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Form removed for Direct WhatsApp CTA */

/* CTA Section */
.cta-section {
    padding: 15vw 0;
    position: relative;
}

.cta-section p {
    margin: 2rem auto 4rem;
    text-align: center;
}


/* Footer */
footer {
    padding: 5vw 0 2vw;
    background: #020203;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 5vw;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 6vw;
}

.link-group h4 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.link-group a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ================================
   MOBILE MENU BUTTON (Hamburger)
   ================================ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ================================
   TABLET BREAKPOINT (max-width: 992px)
   ================================ */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .navbar {
        padding: 5px 0;
    }

    .nav-container {
        height: 70px;
    }

    .nav-links,
    .navbar .btn {
        display: none;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-container {
        flex-direction: column;
        text-align: left;
    }

    .hero-content {
        flex: none;
        width: 100%;
        padding-right: 0;
    }

    .hero-visual {
        flex: none;
        width: 100%;
        margin-top: 3rem;
        justify-content: center;
    }

    .glass-container {
        padding: 1.5rem;
        max-width: 350px;
    }

    .animated-svg {
        max-width: 300px;
    }

    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 3rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    .huge-title {
        font-size: 2.8rem;
    }

    .tech-stack {
        flex-direction: column;
        gap: 3rem;
    }

    .tech-content {
        width: 100%;
    }

    .tech-visual {
        width: 100%;
    }
}

/* ================================
   MOBILE BREAKPOINT (max-width: 768px)
   ================================ */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1.2rem;
    }

    .nav-container {
        height: 60px;
        padding: 0 1.2rem;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 30px;
        min-height: auto;
    }

    h1 {
        font-size: 2.6rem;
    }

    .huge-title {
        font-size: 2.2rem;
    }

    p {
        font-size: 1.05rem;
        max-width: 100%;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1rem;
        font-size: 0.85rem;
    }

    .hero-visual {
        margin-top: 2.5rem;
    }

    .glass-container {
        padding: 1.2rem;
        max-width: 280px;
    }

    .animated-svg {
        max-width: 250px;
    }

    /* Services */
    .services {
        padding: 12vw 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .feature-list li {
        font-size: 0.8rem;
    }

    /* Tech */
    .tech-stack {
        gap: 2.5rem;
        padding: 10vw 1.2rem;
    }

    .metrics {
        flex-direction: column;
        gap: 1.5rem;
    }

    .metric .number {
        font-size: 3.5rem;
    }

    .metric .symbol {
        font-size: 1.5rem;
    }

    .metric .label {
        font-size: 0.75rem;
    }

    .tech-visual {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .code-window {
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    .code-window pre {
        padding: 1.2rem 1rem;
        font-size: 0.65rem;
        line-height: 1.5;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: pre;
        word-break: normal;
    }

    .window-header {
        padding: 12px 16px;
    }

    /* Marquee - prevent horizontal overflow */
    .marquee-section {
        transform: rotate(-2deg) scale(1.05);
        overflow: hidden;
    }

    .marquee {
        font-size: 2rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 12vw 0;
    }

    .cta-section .glass-panel {
        padding: 2.5rem 1.5rem !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .cta-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .cta-section p {
        margin: 1.5rem auto 2.5rem;
    }

    .cta-section .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-section .btn .btn-text {
        font-size: 0.95rem !important;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .link-group a {
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    footer {
        padding: 8vw 0 2vw;
    }
}

/* ================================
   SMALL MOBILE (max-width: 480px)
   ================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .huge-title {
        font-size: 1.9rem;
    }

    p {
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-actions .btn {
        padding: 0.9rem 0.8rem;
        font-size: 0.8rem;
    }

    .glass-container {
        padding: 1rem;
        max-width: 240px;
    }

    .animated-svg {
        max-width: 220px;
    }

    .glass-panel {
        padding: 1.8rem 1.2rem;
        border-radius: 14px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .feature-list {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .feature-list li {
        font-size: 0.75rem;
        gap: 8px;
        margin-bottom: 0.8rem;
    }

    .code-window pre {
        font-size: 0.6rem;
        padding: 1rem 0.8rem;
    }

    .metric .number {
        font-size: 3rem;
    }

    .marquee {
        font-size: 1.6rem;
    }

    .cta-section .glass-panel {
        padding: 2rem 1.2rem !important;
    }

    .cta-section h3 {
        font-size: 1.3rem !important;
    }

    .cta-section svg {
        width: 36px !important;
        height: 36px !important;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ================================
   PREVENT HORIZONTAL SCROLL GLOBALLY
   ================================ */
@media (max-width: 992px) {
    .marquee-section {
        clip-path: inset(0);
        -webkit-clip-path: inset(0);
    }
}

/* Generic Layout specific for Termos and Privacidade */
.page-header {
    padding: 200px 0 100px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 2rem;
}

.prose h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.prose p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.prose ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #aaa;
}

.prose li {
    margin-bottom: 0.5rem;
}