/* 
   Nodal Automation - Design System (v2 Overhaul)
*/

:root {
    /* Colors */
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --bg-glass: rgba(17, 34, 64, 0.75);

    --primary: #64ffda;
    /* Neon Green */
    --primary-dim: rgba(100, 255, 218, 0.1);

    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --text-white: #e6f1ff;

    --transition: all 0.3s ease-in-out;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(at 0% 0%, rgba(10, 25, 47, 1) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(17, 34, 64, 1) 0%, transparent 50%),
        #0a192f;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-neon {
    color: var(--primary);
}

.glass {
    background: rgba(17, 34, 64, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dim);
    box-shadow: 0 0 15px var(--primary-dim);
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 25, 47, 0.95);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: var(--primary-dim);
}

.highlight {
    color: var(--primary);
}

.subheadline {
    font-size: 1.15rem;
    max-width: 500px;
    margin-bottom: 35px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

/* Phone Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    background: #000;
    border: 10px solid #2a2a2a;
    border-radius: 35px;
    width: 280px;
    height: 580px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #2a2a2a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 3;
}

.screen-header {
    background: #112240;
    padding: 40px 15px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.4rem;
}

.screen-header span {
    font-weight: 600;
    font-size: 0.95rem;
}

.screen {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    background: #0a192f;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
}

.chat-bubble.left {
    background: #1d3356;
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.right {
    background: #005c4b;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Tech Ticker (Carousel) */
.tech-ticker {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ticker-item i {
    color: var(--text-white);
    font-size: 1.3rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

/* Problem Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.problem-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background 0.3s ease-in-out;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #152744;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.icon-box.danger {
    background: rgba(255, 99, 71, 0.1);
    color: tomato;
}

.icon-box.warning {
    background: rgba(255, 215, 0, 0.1);
    color: gold;
}

/* Solution Roadmap */
.roadmap-container {
    position: relative;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(100, 255, 218, 0.1) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.roadmap-step {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.step-dot {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-dim);
}

.step-card {
    width: 45%;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.roadmap-step .step-card {
    margin-right: auto;
    text-align: right;
}

.roadmap-step.inverted .step-card {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.roadmap-step i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.pricing-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    transform: scale(1.05);
    background: #132644;
}

.popular-tag {
    background: var(--primary);
    color: #0a192f;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px;
}

.card-header {
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-header .desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price .currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.setup-fee {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body ul {
    flex-grow: 1;
    margin-bottom: 25px;
}

.card-body li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    align-items: start;
}

.card-body i {
    color: var(--primary);
    margin-top: 4px;
}

/* ROI */
.roi-section .container {
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 60px;
}

.row {
    display: flex;
    gap: 50px;
    align-items: center;
}

.col-text,
.col-calc {
    flex: 1;
}

.plan-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.plan-btn {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
}

.plan-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.input-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    margin-left: 5px;
}

.calc-result p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s;
    box-shadow: 0 0 10px var(--primary);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tech-card {
    padding: 25px;
    background: #12213a;
    border-radius: 8px;
    text-align: center;
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.tech-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
}

.contact-info {
    background: #112240;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-methods {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
    font-weight: 500;
}

.method i {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form-wrapper {
    padding: 50px;
    background: rgba(17, 34, 64, 0.8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    outline: none;
}

.contact-form input:focus {
    border-color: var(--primary);
}

.or-divider {
    text-align: center;
    margin: 15px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

/* FAQ */
.faq-section {}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #132644;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #050e1b;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.brand-col .logo {
    margin-bottom: 15px;
    display: inline-block;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.3rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
        margin: 0 auto;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .roadmap-line {
        display: none;
    }

    .roadmap-step,
    .roadmap-step.inverted {
        flex-direction: column;
        width: 100%;
        text-align: left !important;
    }

    .step-card {
        width: 100%;
        margin: 0 !important;
    }

    .step-dot {
        position: relative;
        margin-bottom: 15px;
        left: 0;
        transform: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .tech-ticker {
        margin-left: -20px;
        width: calc(100% + 40px);
    }
}

/* Animations Reveal */
.reveal-left,
.reveal-right,
.reveal-bottom {
    opacity: 0;
    transition: all 0.8s ease;
}