/* ==========================================================================
   Mecha Data LLC - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --color-primary: #0B1220;
    --color-secondary: #111B33;
    --color-accent: #7C3AED;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --color-green-600: #16a34a;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

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

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.5;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

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

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.container-narrow {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-narrow {
        padding: 0 1.5rem;
    }
}

.container-medium {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-medium {
        padding: 0 1.5rem;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md-flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }
    
    .md-hidden {
        display: none;
    }
    
    .md-block {
        display: block;
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.15;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .md-text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md-text-5xl {
        font-size: 3rem;
        line-height: 1.15;
    }
    
    .md-text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .lg-text-6xl {
        font-size: 3.75rem;
        line-height: 1.1;
    }
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.text-primary {
    color: var(--color-primary);
}

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

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

.text-white {
    color: var(--color-white);
}

.text-gray-300 {
    color: var(--color-gray-300);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.text-gray-900 {
    color: var(--color-gray-900);
}

.text-green-600 {
    color: var(--color-green-600);
}

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

.nav {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-logo img {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--color-gray-600);
    transition: var(--transition);
}

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

.nav-link-active {
    color: var(--color-gray-900);
    font-weight: 500;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding-bottom: 1rem;
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #2563EB);
    color: var(--color-white);
}

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

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-gray-50);
}

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

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

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

.btn-white:hover {
    background-color: var(--color-gray-100);
}

.btn-full {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow svg {
    margin-left: 0.5rem;
}

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

.link-accent:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section-lg {
        padding: 8rem 0;
    }
}

.section-hero {
    padding: 5rem 0 3rem;
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(124, 58, 237, 0.22), transparent 55%),
        radial-gradient(900px 500px at 80% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
        linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    position: relative;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .section-hero {
        padding: 8rem 0 5rem;
    }
}

.section-hero h1,
.section-hero h2,
.section-hero h3,
.section-hero .hero-title {
    color: var(--color-white);
}

.section-hero p,
.section-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

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

.section-gray {
    background-color: var(--color-gray-50);
}

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

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

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    padding: 1.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-white {
    background-color: var(--color-white);
}

.card-lg {
    padding: 2rem;
}

.card-square {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-xl {
    padding: 2rem;
}

@media (min-width: 768px) {
    .card-xl {
        padding: 3rem;
    }
}

.card-rounded-2xl {
    border-radius: 1rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-accent);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon-lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    margin-right: 1rem;
}

.card-icon-round {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-white);
}

.card-icon-lg svg,
.card-icon-round svg {
    width: 2rem;
    height: 2rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card-title-lg {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.card-text-base {
    font-size: 1rem;
}

/* Process Step */
.step-number {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

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

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-service-links {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-service-link {
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
}

.hero-service-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form {
    background-color: var(--color-gray-50);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .form {
        padding: 3rem;
    }
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(15, 52, 96, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
}

.form-status.hidden {
    display: none;
}

.form-status p {
    color: var(--color-green-600);
    font-weight: 500;
}

.form.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

.footer {
    background-color: var(--color-secondary);
    color: var(--color-gray-400);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        margin-bottom: 0;
        text-align: left;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-700);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Product Page
   ========================================================================== */

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-feature {
    display: flex;
    align-items: flex-start;
}

.product-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-accent);
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 1rem;
}

.error-text {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Icons
   ========================================================================== */

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-white {
    color: var(--color-white);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }

.pt-8 { padding-top: 2rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.border-t { border-top: 1px solid var(--color-gray-200); }

.w-full { width: 100%; }
