/* CSS Variables - Dark Mode IDE Theme */
:root {
    --color-bg: #1e1e2e;
    --color-bg-alt: #181825;
    --color-bg-elevated: #262637;
    --color-bg-dark: #11111b;
    --color-text: #cdd6f4;
    --color-text-secondary: #a6adc8;
    --color-text-light: #6c7086;
    --color-accent: #6b9bd1;
    --color-accent-hover: #8fb4e0;
    --color-accent-secondary: #a6e3a1;
    --color-accent-tertiary: #5cb8a7;
    --color-border: #313244;
    --color-border-light: #45475a;
    --color-gold: #d4a853;
    --color-silver: #a8b4c4;
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1100px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

p {
    color: var(--color-text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

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

/* Hero CTA Button - larger with subtle glow */
.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(107, 155, 209, 0.25);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    box-shadow: 0 0 30px rgba(107, 155, 209, 0.4);
    transform: translateY(-1px);
}

.btn-nav {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-nav:hover {
    background-color: rgba(107, 155, 209, 0.1);
    color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-diego {
    font-weight: 700;
    color: #ffffff;
}

.logo-ts {
    font-weight: 300;
    color: #a0a0a0;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Hero - Full viewport height with radial gradient */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(
        ellipse at 50% 50%,
        #1e2436 0%,
        var(--color-bg-dark) 50%,
        var(--color-bg-dark) 100%
    );
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

/* Blueprint Grid Background */
.hero-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(107, 155, 209, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 155, 209, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(107, 155, 209, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 155, 209, 0.03) 1px, transparent 1px);
    background-size:
        100px 100px,
        100px 100px,
        20px 20px,
        20px 20px;
    opacity: 0;
    animation: fadeInGrid 1.5s ease-out 0.3s forwards;
}

.blueprint-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 20%, var(--color-bg-dark) 70%);
}

/* Blueprint nodes at grid intersections */
.blueprint-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.blueprint-nodes::before,
.blueprint-nodes::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: fadeInNode 2s ease-out forwards;
}

.blueprint-nodes::before {
    top: 20%;
    left: 30%;
    animation-delay: 1s;
    box-shadow:
        100px 0 0 rgba(107, 155, 209, 0.4),
        200px 100px 0 rgba(107, 155, 209, 0.2),
        300px 0 0 rgba(107, 155, 209, 0.3),
        400px 100px 0 rgba(107, 155, 209, 0.5),
        100px 200px 0 rgba(107, 155, 209, 0.1),
        0 100px 0 rgba(107, 155, 209, 0.2),
        200px 200px 0 rgba(107, 155, 209, 0.4),
        300px 300px 0 rgba(107, 155, 209, 0.3);
}

.blueprint-nodes::after {
    top: 50%;
    right: 25%;
    animation-delay: 1.3s;
    box-shadow:
        -100px 0 0 rgba(107, 155, 209, 0.3),
        100px -100px 0 rgba(107, 155, 209, 0.3),
        0 100px 0 rgba(107, 155, 209, 0.4),
        -200px 100px 0 rgba(107, 155, 209, 0.1),
        100px 100px 0 rgba(107, 155, 209, 0.3),
        -100px -100px 0 rgba(107, 155, 209, 0.2);
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInNode {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    white-space: nowrap;
}

.headline-light {
    display: block;
    font-weight: 400;
    color: var(--color-text-secondary);
    font-size: 0.9em;
}

.headline-bold {
    display: block;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 520px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Problem Section */
.problem {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.problem h2 {
    text-align: center;
}

.problem-lead {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.problem-lead strong {
    color: var(--color-text);
}

.problem-points {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.problem-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 320px;
    padding: 1rem 1.25rem;
    background: rgba(38, 38, 55, 0.5);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-gold);
    border-radius: 6px;
}

.problem-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

.problem-icon svg {
    width: 100%;
    height: 100%;
}

.problem-point p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.problem-point strong {
    color: var(--color-text);
}

.problem-conclusion {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.problem-conclusion em {
    color: var(--color-accent);
    font-style: normal;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(ellipse at 50% 50%, #1a1a28 0%, var(--color-bg-alt) 70%);
}

.services h2 {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Glassmorphism Service Cards */
.service-card {
    background: rgba(38, 38, 55, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 155, 209, 0.2);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(107, 155, 209, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(107, 155, 209, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(107, 155, 209, 0.1);
    transform: translateY(-2px);
}

.service-card h3 {
    color: var(--color-text);
    position: relative;
}

.service-card > p {
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
    position: relative;
}

.service-card ul {
    list-style: none;
    position: relative;
}

.service-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-tertiary) 100%);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* Credentials Section */
.credentials {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0d0d14 100%);
    color: var(--color-text);
}

.credentials h2 {
    text-align: center;
    color: var(--color-text);
}

.credentials-intro {
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.credential-item {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
}

/* Enlarged credential icons with monochromatic styling */
.credential-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
}

.credential-icon svg {
    width: 100%;
    height: 100%;
}

.credential-icon--award svg {
    stroke: var(--color-gold);
}

.credential-icon--scale svg {
    stroke: var(--color-accent);
}

.credential-icon--opensource svg {
    stroke: var(--color-silver);
}

.credential-icon--mission svg {
    stroke: var(--color-accent-tertiary);
}

/* Large stat numbers */
.credential-stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.credential-item h4 {
    color: var(--color-text);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.credential-item p:not(.credential-stat) {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Industries - Centered grid layout */
.industries {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.industries-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.industry-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.industry-tags span {
    background: rgba(38, 38, 55, 0.8);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.industry-tags span:hover {
    border-color: var(--color-border-light);
    color: var(--color-text);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(ellipse at 50% 100%, #1a1a28 0%, var(--color-bg) 60%);
    position: relative;
}

.contact h2 {
    text-align: center;
}

.contact > .container > p {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

/* Floating Label Form Groups */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group.floating {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group.floating label {
    position: absolute;
    left: 0.875rem;
    top: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-text-light);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 0.25rem;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    padding: 1rem 0.875rem 0.5rem;
    font-size: 0.9375rem;
    font-family: var(--font-family);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(38, 38, 55, 0.8);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus,
.form-group.floating input:not(:placeholder-shown),
.form-group.floating textarea:not(:placeholder-shown) {
    outline: none;
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(107, 155, 209, 0.15);
}

.form-group.floating input:focus + label,
.form-group.floating textarea:focus + label,
.form-group.floating input:not(:placeholder-shown) + label,
.form-group.floating textarea:not(:placeholder-shown) + label {
    top: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-accent);
}

.form-group.floating textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.5rem;
}

.form-group.floating textarea:focus + label,
.form-group.floating textarea:not(:placeholder-shown) + label {
    top: 0.5rem;
}

/* Full-width submit button */
.btn-submit {
    width: 100%;
    margin-top: var(--spacing-sm);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.form-status {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-size: 0.9375rem;
}

.form-status.success {
    color: var(--color-accent-tertiary);
}

.form-status.error {
    color: #f38ba8;
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer p {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding: var(--spacing-md);
    }

    .hero h1 {
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .blueprint-nodes::before,
    .blueprint-nodes::after {
        display: none;
    }

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

    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .credential-icon {
        width: 48px;
        height: 48px;
    }

    .credential-stat {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .industry-tags {
        gap: 0.5rem;
    }

    .industry-tags span {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}
