:root {
    /* Color Palette */
    --color-bg-deep: #0f0f11;
    /* Soft matte black */
    --color-bg-secondary: #18181b;
    /* Zinc-900 like */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #a1a1aa;
    --color-accent: #bef264;
    /* Lime-300: Vibrant but not 'Matrix Neon' */
    --color-accent-hover: #a3e635;
    /* Lime-400 */
    --color-border: #27272a;

    /* Fonts */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-deep);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 242, 100, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--color-text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--color-text-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(190, 242, 100, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(190, 242, 100, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Abstract Glows */
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--color-accent), transparent 70%);
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #ffffff, transparent 70%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented later */
    }
}

/* Value Proposition Section */
.values-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-deep);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: -50px;
    /* Slight overlap with hero if possible, or just standard */
    position: relative;
    z-index: 20;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    padding: 0.5rem;
    background: rgba(190, 242, 100, 0.1);
    border-radius: var(--radius-md);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Product Showcase Section */
.products-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.product-card {
    display: flex;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.product-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-content {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-visual {
    flex: 1;
    background: #1a1a1a;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

/* Simulated visuals using CSS gradients */
.visual-quotizia {
    background: linear-gradient(45deg, #111, #222);
}

.visual-quotizia::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(190, 242, 100, 0.1), transparent 50%);
}

.visual-smarts {
    background: linear-gradient(45deg, #111, #222);
}

.visual-smarts::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 2px;
    background: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent);
}

.visual-afianzia {
    background: linear-gradient(45deg, #111, #222);
}

.visual-afianzia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(190, 242, 100, 0.05), transparent);
}


.product-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.btn-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
}

.btn-link:hover {
    color: var(--color-accent);
}

/* Responsive Alternate Layout */
@media (min-width: 900px) {
    .product-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}

@media (max-width: 900px) {
    .product-card {
        flex-direction: column;
    }

    .product-visual {
        min-height: 200px;
    }
}

/* Bento Grid Section */
.bento-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-deep);
    /* Back to deep black for contrast */
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-sm);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(250px, auto));
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 3;
    }
}

.bento-item {
    background: #111;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: var(--color-text-secondary);
    background: #151515;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.bento-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-top: var(--spacing-sm);
    letter-spacing: -1px;
}

.bento-large .bento-stat {
    font-size: 4rem;
}

/* Add subtle background pattern/gradient to bento items */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 50%);
    pointer-events: none;
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    padding: var(--spacing-lg);
    border-left: 2px solid var(--color-accent);
    background: linear-gradient(to right, rgba(190, 242, 100, 0.05), transparent);
    transition: var(--transition-normal);
}

.service-card:hover {
    background: linear-gradient(to right, rgba(190, 242, 100, 0.1), transparent);
    padding-left: calc(var(--spacing-lg) + 10px);
}

.service-card h3 {
    font-size: 1.75rem;
    color: var(--color-text-primary);
}

.service-list {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.service-list li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    color: var(--color-text-secondary);
}

.service-list li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: -1rem;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    border-top: 1px solid var(--color-border);
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .contact-text {
        flex: 1;
        max-width: 500px;
    }

    .contact-form {
        flex: 1;
        max-width: 450px;
        width: 100%;
    }
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.contact-text p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.contact-form {
    background: #0a0a0a;
    /* Slightly lighter than pure black */
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #151515;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(190, 242, 100, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.form-footer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: var(--spacing-sm);
    opacity: 0.7;
}

/* Footer Styles (since it is next) */
#main-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #151515;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition-fast);
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(190, 242, 100, 0.1);
}

/* HackerRank Style Override */
.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    font-weight: 500; /* Lighter weight for the 'dim' part usually */
    margin-bottom: var(--spacing-lg);
}

.text-dim {
    color: #444; /* Dark grey */
    font-weight: 500;
}

.text-bright {
    color: #fff;
    font-weight: 400; /* HackerRank uses a weird mix, but white pops */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* For mobile */
}

.plus-sign {
    color: #666;
    font-weight: 300;
}

.icon-hero {
    height: 0.9em; /* Scale with font */
    width: auto;
    vertical-align: middle;
}

.icon-fingerprint {
    /* Style the SVG if possible, or filter */
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4)); /* Emerald/Green glow */
    color: var(--color-accent); /* If using inline SVG, but here img needs filter */
    /* Using filter to colorize black SVG to accent color if needed, or just let it be */
}

/* Specific button style from image */
.btn-glow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 6px; /* Slightly squarer */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.btn-glow:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(190, 242, 100, 0.2); /* Lime glow */
    background: rgba(190, 242, 100, 0.05);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Override for Hero Subtitle Prominence */
#hero .hero-subtitle {
    font-size: 1.5rem;
    color: #e4e4e7; /* Much brighter/whiter */
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.text-accent {
    color: var(--color-accent);
    font-weight: 500;
}

.text-white {
    color: #fff;
    font-weight: 600;
}

/* Update Values Grid for 4 items */
.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* ensure 4 fit */
}

/* Philosophy Section Styling */
.philosophy-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-bg-deep), var(--color-bg-secondary));
}

.philosophy-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.highlight-blue {
    color: var(--color-accent); /* A nice blue distinct from the lime accent */
    font-weight: 700;
}

.philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Product Header Update */
.product-badge {
    color: var(--color-accent); padding: 4px 8px; border: 1px solid var(--color-accent); border-radius: 4px; /* Light blue */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Product Stats Styling */
.product-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: #e4e4e7;
    font-size: 0.95rem;
}

.product-subtitle {
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Enhanced Badge Styling per User Request */
.product-badge {
    color: var(--color-accent); /* Lime green */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    
    /* Box Styling */
    border: 1px solid var(--color-accent);
    padding: 0.5rem 2rem;
    border-radius: 4px;
    display: inline-block; /* Contain width */
    width: 100%; /* Or specific width if needed */
    max-width: 800px; /* Limit width as per image */
    margin: 0 auto; /* Center */
    margin-bottom: 2rem;
    
    /* Center text inside */
    text-align: center;
    background: linear-gradient(to right, rgba(190, 242, 100, 0.05), transparent, rgba(190, 242, 100, 0.05));
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Update Highlight to be Green */
.highlight-blue {
    color: var(--color-accent) !important;
}

/* Philosophy Section tweaks for matching layout */
.philosophy-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Completely Redesigned Badge - Minimalist & Clean */
.product-badge {
    /* Reset previous box styles */
    border: none;
    background: none;
    width: auto;
    max-width: none;
    border-radius: 0;
    
    /* New Style: Pill Shape */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background-color: rgba(190, 242, 100, 0.1); /* Very subtle green tint */
    color: var(--color-accent); /* Lime green text */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 9999px; /* Full pill shape */
    margin-bottom: 1.5rem;
    
    /* Subtle glow/shadow */
    box-shadow: 0 0 0 1px rgba(190, 242, 100, 0.2);
}

/* Ensure clean centering */
.philosophy-section .container,
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Professional Value Icons & Text Enhancement */
.value-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(190, 242, 100, 0.05); /* Very subtle green bg */
    border-radius: 12px; /* Smooth square */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(190, 242, 100, 0.1);
}

.value-icon-svg {
    width: 32px;
    height: 32px;
    /* Stroke color is handled inside SVG, but we can filter if needed to match theme changes */
}

/* Enhanced Readability */
.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc; /* Crisp white */
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 1.05rem; /* Larger for readability */
    color: #cbd5e1; /* Lighter grey (Slate-300) instead of darker #a1a1aa */
    line-height: 1.6;
}

/* Card Background tweak */
.value-card {
    background: #18181b; /* Ensure contrast against main bg */
    border: 1px solid #27272a;
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(190, 242, 100, 0.3);
}
