/* CSS Variables */
:root {
    --canvas-bg: #fbfbfc;
    --card-bg: #ffffff;
    --light-gray: #f0f2f5;
    --text-primary: #1a1f2e;
    --text-secondary: #5f6368;
    --border-color: #e8eaed;
    --accent-orange: #ec652b;
    --accent-orange-hover: #d95a24;
    --light-blue: #e8f0fe;
    --light-green: #e6f4ea;
    --status-green: #16ca2e;
    --footer-bg: #1a1f2e;
    --shadow: rgba(0,0,0,0.04) 0px 2px 8px;
    --shadow-hover: rgba(0,0,0,0.08) 0px 2px 12px;
    --grid-dot: rgba(0,0,0,0.03);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--canvas-bg);
    background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
    background-size: 12px 12px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.mono {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'IBM Plex Mono', monospace;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--canvas-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: border-color 0.2s ease-out;
}

.navbar.scrolled {
    border-bottom-color: #d0d4d8;
}

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

.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease-out;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(26,31,46,0.04);
}

.nav-links a.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-orange);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--accent-orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent-orange);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--accent-orange);
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.btn-secondary:hover {
    background: rgba(236,101,43,0.05);
}

.btn-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #145aff;
    border-radius: 50%;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Hero Panel */
.hero-panel {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.data-card {
    text-align: center;
    padding: 16px;
}

.data-card .number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.data-card .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Flow Chart */
.flow-chart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flow-icon {
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.flow-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.flow-arrow {
    color: var(--border-color);
    font-size: 20px;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Capability Matrix */
.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.matrix-table th {
    background: var(--light-gray);
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.matrix-table th:first-child {
    text-align: left;
}

.matrix-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

.matrix-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.matrix-table tr:nth-child(even) {
    background: var(--canvas-bg);
}

.matrix-table tr:hover {
    background: var(--light-gray);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
}

.check-icon svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    stroke-width: 3;
}

.service-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    border-radius: 50%;
    transition: all 0.3s;
}

.timeline-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 24px;
    transition: box-shadow 0.2s ease-out;
}

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

.timeline-stages {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.stage-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stage-problem {
    background: var(--light-gray);
    color: var(--text-secondary);
}

.stage-solution {
    background: var(--light-blue);
    color: var(--text-primary);
}

.stage-result {
    background: var(--light-green);
    color: var(--accent-orange);
}

.timeline-client {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-content {
    display: grid;
    gap: 12px;
}

.timeline-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.timeline-item-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 40px;
}

.timeline-item-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.timeline-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-orange);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.member-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.member-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    transition: filter 0.4s;
    cursor: pointer;
}

.cert-badge:hover {
    filter: grayscale(0);
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

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

.trust-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.trust-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.trust-item::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-orange);
    margin: 12px auto 0;
}

/* CTA Form Section */
.cta-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 48px;
    align-items: start;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--card-bg);
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-bottom: 2px solid var(--accent-orange);
}

.form-input::placeholder {
    color: #9aa0a6;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.receipt-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
}

.receipt-icon {
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.receipt-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-orange);
}

.receipt-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.receipt-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-seo {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 32px;
    transition: box-shadow 0.2s ease-out;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-primary);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    color: var(--accent-orange);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* Case Studies */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 24px;
    transition: box-shadow 0.2s ease-out;
}

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

.case-logo {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.case-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.case-summary {
    display: grid;
    gap: 8px;
}

.case-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.case-item-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 36px;
}

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

.case-result {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-orange);
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.history-timeline {
    position: relative;
    padding-left: 40px;
    margin-bottom: 64px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.history-item {
    position: relative;
    margin-bottom: 32px;
}

.history-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    border-radius: 50%;
}

.history-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 4px;
}

.history-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.map-placeholder {
    background: var(--light-gray);
    border-radius: 8px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas-bg);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .data-cards {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-bar {
        grid-template-columns: 1fr;
    }
    
    .matrix-table {
        display: block;
        overflow-x: auto;
    }
    
    .timeline {
        padding-left: 24px;
    }
    
    .timeline-dot {
        left: -17px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Counter Animation */
.counter {
    display: inline-block;
}
