/* Tramia Brand Styles - Shared CSS */
:root {
    --color-bg: #FAFAFA;
    --color-bg-tint: #F5F3FF;
    --color-bg-card: #FFFFFF;
    --color-primary: #4338CA;
    --color-primary-light: #5349D9;
    --color-primary-dark: #3730A3;
    --color-accent: #8B5CF6;
    --color-accent-light: #C4B5FD;
    --color-text: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(67, 56, 202, 0.06);
    --shadow-md: 0 8px 30px rgba(67, 56, 202, 0.1);
    --shadow-lg: 0 20px 60px rgba(67, 56, 202, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--color-bg-tint) 0%, var(--color-bg) 100%);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 1rem 3rem;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-center {
    display: flex;
    gap: 3rem;
    list-style: none;
}

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

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-center a:hover {
    color: var(--color-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

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

.nav-cta {
    padding: 0.7rem 1.5rem;
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

/* Page Header */
.page-header {
    padding: 10rem 3rem 5rem;
    background: var(--gradient-subtle);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-header .breadcrumb span {
    color: var(--color-text-muted);
}

/* Content Section */
.content-section {
    padding: 5rem 3rem;
    background: white;
}

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

.content-section.tinted {
    background: var(--color-bg-tint);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg-tint);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: white;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.two-column-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.two-column-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.two-column-visual {
    background: var(--color-bg-tint);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--color-border);
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.spec-table th,
.spec-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.spec-table th {
    background: var(--color-bg-tint);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.spec-table td {
    font-size: 0.95rem;
}

.spec-table tr:hover {
    background: var(--color-bg-tint);
}

/* List Styles */
.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.check-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-primary);
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1.5px solid var(--color-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-bg-tint);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 5rem 3rem;
    background: var(--color-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary:hover {
    background: var(--color-bg-tint);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 5rem 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column.reverse {
        direction: ltr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .page-header {
        padding: 8rem 1.5rem 3rem;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .content-section {
        padding: 3rem 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Documentation Specific */
.doc-nav {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    position: sticky;
    top: 100px;
}

.doc-nav h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.doc-nav ul {
    list-style: none;
}

.doc-nav li {
    margin-bottom: 0.5rem;
}

.doc-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s ease;
}

.doc-nav a:hover,
.doc-nav a.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    background: var(--color-bg-tint);
}

.doc-content {
    max-width: 800px;
}

.doc-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.doc-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.doc-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.doc-content p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.doc-content code {
    background: var(--color-bg-tint);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.doc-content pre {
    background: var(--color-text);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.doc-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

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

/* Careers */
.job-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
}

.job-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

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

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