/* ByteLyfe Web Styles */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-card: rgba(255, 255, 255, 0.09);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent-violet: #7c3aed;
    --accent-pink: #ec4899;
    --accent-cyan: #22d3ee;
    --gradient-brand: linear-gradient(100deg, var(--accent-violet), var(--accent-pink) 55%, var(--accent-cyan));
    --max-width: 1080px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient background glow */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(124, 58, 237, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(236, 72, 153, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
    animation: backgroundPulse 40s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .bg-glow {
        animation: none;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.brand span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    gap: 28px;
}

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

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

/* Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 96px 0 120px;
    max-width: 760px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 36px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* App cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}

.app-card {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    flex-shrink: 0;
}

.app-icon--soon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border-card);
}

.app-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.app-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.app-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.app-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

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

.inline-link {
    color: var(--accent-cyan);
    text-decoration: none;
}

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

/* About cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 28px;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* Contact */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 32px;
}

.contact-row h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contact-link {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

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

address {
    font-style: normal;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 40px;
    border-top: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-copy {
    margin-top: 14px;
}

/* Mobile */
@media (max-width: 560px) {

    .hero {
        padding: 64px 0 80px;
    }

    .site-nav {
        gap: 18px;
    }

    .app-card {
        flex-direction: column;
    }
}
