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

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #dbeafe;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nav-height: 72px;
    --container-max: 1120px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--color-text);
        background: var(--color-bg-alt);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px;
    border-radius: 8px;
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: var(--color-bg-alt);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-chip {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-chip svg {
    width: 100%;
    height: 100%;
}

/* Pulse animation */
.pulse-ring {
    animation: pulse 3s ease-in-out infinite;
    transform-origin: center;
}

.pulse-ring.delay {
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.15); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

@media (hover: hover) {
    .btn-primary:hover {
        background: var(--color-primary-dark);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transform: translateY(-1px);
    }
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

@media (hover: hover) {
    .btn-secondary:hover {
        background: var(--color-bg-alt);
        border-color: #cbd5e1;
        transform: translateY(-1px);
    }
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== Product Featured ===== */
.product-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.product-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.product-featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-graphic {
    width: 100%;
    max-width: 340px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--color-border);
}

.product-card-graphic svg {
    width: 100%;
    height: auto;
}

/* ===== Relay Specs ===== */
.relay-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.relay-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.relay-spec-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.relay-spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== Use Cases ===== */
.product-usecases {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.product-featured > .product-usecases {
    grid-column: 1 / -1;
}

.usecases-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.usecases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usecase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    white-space: nowrap;
}

.usecase-icon,
.usecase-tag svg {
    display: none !important;
}

.product-logo-container {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-logo-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ===== Coming Soon ===== */
.coming-soon {
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 32px 40px;
}

.coming-soon-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coming-soon-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coming-soon-icon svg {
    width: 24px;
    height: 24px;
}

.coming-soon-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.coming-soon-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow var(--transition), transform var(--transition);
}

@media (hover: hover) {
    .about-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }
}

.about-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-card-icon svg {
    width: 24px;
    height: 24px;
}

.about-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact-inner {
    text-align: center;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-text);
    color: #94a3b8;
    padding: 60px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer .nav-logo {
    color: #fff;
}

.footer .nav-logo-icon {
    color: #60a5fa;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
}




/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-chip {
        max-width: 280px;
    }

    .product-featured {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .product-featured-visual {
        order: -1;
    }

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

}

@media (max-width: 640px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 8px 16px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 64px 0;
    }

    .product-featured {
        padding: 24px;
    }

    .coming-soon {
        padding: 24px;
    }

    .coming-soon-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
    }
}
