@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1152d4;
    --primary-light: rgba(17, 82, 212, 0.1);
    --primary-dark: #0d3fa8;
    --bg-light: #f6f6f8;
    --bg-dark: #101622;
    --text-dark: #1a1a2e;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
}

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

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Focus Visible - Accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.nav-links a:focus-visible {
    border-radius: 0.25rem;
}

.btn:focus-visible {
    border-radius: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 0.9s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
    width: 100%;
    max-width: none;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 4.5rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-icon {
    display: flex;
    align-items: center;
}

.nav-icon svg {
    transition: transform 0.2s;
}

.nav-icon:hover svg {
    transform: scale(1.1);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
}

.hero-logo {
    width: clamp(200px, 25vw, 320px);
    height: auto;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 82, 212, 0.3);
}

.btn-outline {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: var(--white);
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Idea Section */
.idea-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.idea-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.idea-content .highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    text-align: left;
    margin: 2rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

section:nth-child(even) .feature-card {
    background: var(--bg-light);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(17, 82, 212, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.feature-card ul {
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.feature-card li {
    margin-bottom: 0.5rem;
}

/* Architecture Section */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.arch-layer {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.arch-layer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.arch-layer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Stack Section */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.stack-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Video Section */
#video {
    background: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.video-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(17, 82, 212, 0.15);
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 860px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta {
    background: var(--primary) !important;
    color: var(--white);
    border-radius: 2rem 2rem 0 0;
    text-align: center;
    padding: 5rem 1.5rem;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.cta .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 3rem 1.5rem 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-logo img {
    height: 1.5rem;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8125rem;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 3rem 0;
    }

    section {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(17, 82, 212, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 99;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-top-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .scroll-top-btn {
        right: 50%;
        transform: translateX(50%) translateY(10px);
    }

    .scroll-top-btn.visible {
        transform: translateX(50%) translateY(0);
    }

    .scroll-top-btn:hover {
        transform: translateX(50%) translateY(-2px);
    }
}

.full-width-section .container-fluid {
    max-width: 1600px;
}
.full-width-section .features-grid {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
    .full-width-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .full-width-section .features-grid {
        grid-template-columns: 1fr;
    }
}

