/* K9 Digital - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

:root {
    /* Color Palette - Neon Theme */
    --bg-dark: #050510;
    --bg-card: #0f0f1a;
    --primary-purple: #8A2BE2;
    /* Neon Purple */
    --accent-pink: #d946ef;
    /* Keep Pink for accents or swap to Blue based on Req? Req said Blue/Purple. Let's add Blue */
    --accent-blue: #00BFFF;
    /* Neon Blue */
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3a 100%);
    --gradient-text: linear-gradient(to right, var(--primary-purple), var(--accent-blue));
    --gradient-btn: linear-gradient(90deg, var(--primary-purple) 0%, var(--accent-blue) 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-pink);
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

nav a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(107, 44, 219, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.1) 0%, transparent 40%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.subhero-anchor {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-pink);
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.6;
}

.hero-features {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-small);
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-features i {
    color: var(--accent-pink);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(107, 44, 219, 0.3));
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Floating UI Elements (Holographic Cards) */
.floating-card {
    position: absolute;
    background: rgba(21, 21, 37, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    cursor: default;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 160px;
    /* Ensure width for text */
}

.floating-card:hover {
    background: rgba(107, 44, 219, 0.9);
    /* Purple background on hover */
    border-color: var(--accent-pink);
    transform: scale(1.05) translateY(-5px);
    /* Gentle scale */
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
    /* Neon glow */
}

.card-content-visual {
    transition: opacity 0.3s ease;
}

.card-text-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-card:hover .card-content-visual,
.floating-card.active-data .card-content-visual {
    opacity: 0.1;
    /* Fade out abstract bars */
}

.floating-card:hover .card-text-hover,
.floating-card.active-data .card-text-hover {
    opacity: 1;
    /* Fade in text */
}

.floating-card.active-data {
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

.card-1 {
    top: 20%;
    left: 0;
    width: 180px;
}

.card-2 {
    bottom: 15%;
    right: 20px;
    width: 160px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    group: "card";
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 40px rgba(107, 44, 219, 0.2);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent-pink);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    color: white;
}

/* Differentiation Section */
.diff-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #10101a);
    position: relative;
    overflow: hidden;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.diff-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.diff-image-wrapper img {
    max-width: 100%;
    filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.2));
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.5));
    }
}

.diff-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.diff-subtitle {
    display: block;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.diff-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diff-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-item.negative {
    border-left: 3px solid #ef4444;
}

.diff-item.positive {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.diff-icon {
    font-size: 1.2rem;
}

.fa-times {
    color: #ef4444;
}

.fa-check {
    color: #10b981;
}

/* Immersive Reality Section */
.immersive-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, rgba(107, 44, 219, 0.1), transparent 70%);
}

.immersive-card {
    background: #111;
    border-radius: 30px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.immersive-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.immersive-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-pink);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.immersive-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.immersive-image {
    position: relative;
    height: 100%;
}

.immersive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 900px) {

    .diff-grid,
    .immersive-card {
        grid-template-columns: 1fr;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-actions {
        justify-content: center;
    }

    .immersive-image {
        min-height: 300px;
    }
}

/* Credibility Footer */
footer {
    background: #050510;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-brand p {
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-pink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        /* Mobile: Sticky at bottom right, highly visible */
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* Simple Service Card (Corporate Modern) */
.simple-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
}

.simple-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-pink);
    transform: translateY(-5px);
}

.simple-card h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.2rem;
}

.simple-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    background: rgba(107, 44, 219, 0.1);
    border-color: var(--primary-purple);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(107, 44, 219, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.plan-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    min-height: 40px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--accent-pink);
}

.featured .plan-features li i {
    color: var(--primary-purple);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline Styles (Como Funciona) */
.timeline-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    /* Neon Glow on base line? Maybe better on active part */
    background: linear-gradient(to bottom, var(--primary-purple), var(--accent-blue));
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    z-index: 2;
    padding: 0 40px;
}

.timeline-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.step-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    z-index: 3;
    transform: translateY(-50%);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
}

.timeline-step:nth-child(odd) .step-number {
    right: -65px;
    /* 40px padding + 25px half width */
}

.timeline-step:nth-child(even) .step-number {
    left: -65px;
}

.step-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-desc {
    color: var(--text-muted);
}

/* Neon Form Styles (Contato) */
.neon-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.neon-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.neon-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
    background: rgba(0, 191, 255, 0.05);
}

/* Comparison Table (Planos) */
.comparison-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.comparison-table th.col-feature {
    text-align: left;
    width: 40%;
}

.comparison-table th.col-pro {
    background: rgba(138, 43, 226, 0.1);
    border-top: 3px solid var(--primary-purple);
    color: var(--primary-purple);
}

.comparison-table td.col-pro {
    background: rgba(138, 43, 226, 0.03);
    font-weight: 600;
    color: white;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table tr:hover td.col-pro {
    background: rgba(138, 43, 226, 0.08);
    /* Slightly brighter hover for PRO */
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-step {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        text-align: left !important;
    }

    .step-number {
        left: -45px !important;
        right: auto !important;
    }
}