:root {
    --ink: #0F172A;
    --slate: #475569;
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --accent: #2563EB;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-ink: #FFFFFF;
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(103, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    transition: transform 0.2s;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

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

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

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

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

.btn {
    background: var(--gradient-2);
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Hero */
.hero {
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ink) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.375rem;
    color: var(--slate);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.btn-primary {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.link::after {
    content: '→';
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

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

.link:hover::after {
    transform: translateX(3px);
}

.link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.trust-line {
    font-size: 0.875rem;
    color: var(--slate);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Build Section */
.build {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.1) 0%, rgba(226, 232, 240, 0.3) 100%);
}

.build h2,
.products h2,
.services h2,
.tech h2,
.work h2,
.traction h2,
.testimonials h2,
.about h2,
.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--slate);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.build-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.build-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.build-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

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

.build-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.build-card p {
    color: var(--slate);
    line-height: 1.7;
}

/* Products */
.products {
    padding: 5rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--line);
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow-md);
}

.product-card::before {
    content: '✨';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.product-card p {
    color: var(--slate);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.product-card li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--slate);
    line-height: 1.6;
}

.product-card li::before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    color: var(--success);
    font-weight: 700;
}

/* Services */
.services {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.1) 0%, rgba(226, 232, 240, 0.3) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--ink);
}

.service-item p {
    color: var(--slate);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Tech */
.tech {
    padding: 5rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(103, 126, 234, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s;
}

.tech-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(103, 126, 234, 0.1) 100%);
    border-color: var(--accent-light);
}

.tech-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.tech-item p {
    color: var(--slate);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Work */
.work {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.1) 0%, rgba(226, 232, 240, 0.3) 100%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.work-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s;
}

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

.work-card:hover::after {
    left: 100%;
}

.work-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.work-card p {
    color: var(--slate);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.work-card .outcome {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--line);
    color: var(--ink);
}

.work-card .outcome strong {
    color: var(--accent);
    font-weight: 700;
}

/* Traction */
.traction {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 3rem 0 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg);
    border-radius: 16px;
    border: 2px solid var(--line);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.5;
}

.traction-note {
    text-align: center;
    color: var(--slate);
    font-size: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(103, 126, 234, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid var(--line);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.1) 0%, rgba(226, 232, 240, 0.3) 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--accent-light);
    font-weight: 800;
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

.testimonial cite {
    font-style: normal;
    color: var(--slate);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* About */
.about {
    padding: 5rem 0;
}

.about h2 {
    margin-bottom: 2rem;
}

.about p {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.8;
}

/* Contact */
.contact {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(103, 126, 234, 0.05) 100%);
}

.contact-content {
    max-width: 520px;
    margin: 3rem auto 0;
    background: var(--bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--line);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--accent-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.alt-contact {
    text-align: center;
    margin-top: 2rem;
    color: var(--slate);
    font-size: 1rem;
}

.alt-contact a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.alt-contact a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg) 0%, rgba(226, 232, 240, 0.2) 100%);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

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

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

.copyright {
    text-align: center;
    color: var(--slate);
    font-size: 0.875rem;
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 32px;
    height: 32px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s;
    position: absolute;
    left: 4px;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 8px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        z-index: 99;
        padding: 1rem;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--line);
        text-align: center;
    }
    
    .nav a:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }
    
    .nav a::after {
        display: none;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-sub {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .build-grid,
    .product-grid,
    .services-grid,
    .tech-grid,
    .work-grid,
    .stats-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        padding: 2rem;
        margin: 2rem 1rem 0;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 200;
}

.skip-link:focus {
    top: 0;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-form,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 2px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideUp 0.4s ease-out;
}

.cookie-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.cookie-text p {
    color: var(--slate);
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 600px;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-reject {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--slate);
    border: 2px solid var(--line);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-cookie-reject:hover {
    background: var(--line);
    color: var(--ink);
}

.btn-cookie-accept {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-2);
    color: var(--accent-ink);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-text p {
        max-width: 100%;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-cookie-reject,
    .btn-cookie-accept {
        flex: 1;
        max-width: 150px;
    }
}

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

.hero h1,
.hero-sub,
.hero-actions {
    animation: fadeIn 0.8s ease-out;
}

.hero-sub {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-actions {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}