/* ========================================
   unit01.ai – Design System
   ======================================== */

:root {
    /* Primary Colors */
    --unit-blue: #9FD0EE;
    --unit-dark: #405361;
    
    /* Base */
    --deep-charcoal: #1E2429;
    --bg-alt: #252B31;
    
    /* Text */
    --off-white: #F4F6F8;
    --muted-grey: #8A949C;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition: 0.3s ease;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--off-white);
    background-color: var(--deep-charcoal);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none;
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    background: rgba(30, 36, 41, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(159, 208, 238, 0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--unit-blue);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--unit-blue);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--unit-blue);
    color: var(--deep-charcoal);
}

/* ========================================
   Logo
   ======================================== */

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
}

.footer-brand .logo-img {
    height: 100px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--unit-blue);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-grey);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--muted-grey);
    font-size: 0.875rem;
    transition: var(--transition);
}

.hero-scroll:hover {
    color: var(--unit-blue);
}

.hero-scroll svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* ========================================
   Section Titles
   ======================================== */

.section-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--unit-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-intro {
    font-size: 1.25rem;
    color: var(--muted-grey);
    max-width: 700px;
    margin-bottom: var(--space-lg);
}

/* ========================================
   Services Grid
   ======================================== */

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

.service-card {
    background: var(--bg-alt);
    border: 1px solid rgba(159, 208, 238, 0.1);
    border-radius: 8px;
    padding: var(--space-md);
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(159, 208, 238, 0.3);
    transform: translateY(-2px);
}

.service-icon {
    color: var(--unit-blue);
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--muted-grey);
    line-height: 1.5;
}

/* ========================================
   Principles
   ======================================== */

.principles {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.principle {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.principle-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--unit-blue);
    opacity: 0.5;
    line-height: 1;
    min-width: 60px;
}

.principle-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.principle-content p {
    color: var(--muted-grey);
    max-width: 600px;
}

/* ========================================
   Quote
   ======================================== */

.quote {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    color: var(--unit-blue);
    padding-left: var(--space-md);
    border-left: 2px solid var(--unit-blue);
    font-style: normal;
}

/* ========================================
   Contact Form
   ======================================== */

.contact-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-grey);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--off-white);
    background: var(--bg-alt);
    border: 1px solid rgba(159, 208, 238, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--unit-blue);
    box-shadow: 0 0 0 3px rgba(159, 208, 238, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--deep-charcoal);
    background: var(--unit-blue);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--off-white);
    transform: translateX(4px);
}

.btn-submit svg {
    transition: var(--transition);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-alt);
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 1px solid rgba(159, 208, 238, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-grey);
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-grey);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--unit-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(159, 208, 238, 0.1);
    font-size: 0.875rem;
    color: var(--muted-grey);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--unit-blue);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .logo-img {
        height: 52px;
    }
    
    .footer-brand .logo-img {
        height: 60px;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .principle {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .principle-number {
        font-size: 1.5rem;
        min-width: auto;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Animations (Subtle)
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .principle {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    
    .principle:nth-child(1) { animation-delay: 0.1s; }
    .principle:nth-child(2) { animation-delay: 0.2s; }
    .principle:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
