/* ============================================
   GlassQA — Apple-grade Landing Page Styles
   iOS 26 Liquid Glass Aesthetic
   ============================================ */

/* --- Reset & Base --- */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
        'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0b0b0f;
    color: #f5f5f7;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(100, 210, 255, 0.3);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout --- */

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

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
    color: #f5f5f7;
}

/* --- Glass Utility --- */

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(100, 210, 255, 0.08) 0%,
        rgba(60, 140, 255, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-title .accent {
    background: linear-gradient(135deg, #64d2ff, #5ac8fa, #a8e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    max-width: 480px;
    margin-bottom: 36px;
    font-weight: 400;
}

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

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #64d2ff, #3a8aff);
    color: #fff;
    box-shadow:
        0 2px 16px rgba(100, 210, 255, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow:
        0 4px 24px rgba(100, 210, 255, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 1px 8px rgba(100, 210, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.06);
}

/* --- Hero Visual (Code Card) --- */

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
}

.glass-card.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.card-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.card-body {
    padding: 20px;
}

.code-block {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.code-keyword { color: #ff7eb6; }
.code-string { color: #a8e0ff; }
.code-method { color: #64d2ff; }

/* ============================================
   Features
   ============================================ */

.features {
    padding: 120px 0;
    position: relative;
}

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

.feature-card {
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(100, 210, 255, 0.06) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(100, 210, 255, 0.08);
    color: #64d2ff;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: #f5f5f7;
}

.feature-desc {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
    font-weight: 400;
}

/* ============================================
   Demo
   ============================================ */

.demo {
    padding: 80px 0 120px;
}

.demo-frame {
    max-width: 800px;
    margin: 0 auto;
}

.demo-player {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(100, 210, 255, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.demo-placeholder {
    text-align: center;
    position: relative;
    z-index: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button svg {
    margin-left: 4px;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #64d2ff;
    box-shadow: 0 0 32px rgba(100, 210, 255, 0.15);
    transform: scale(1.05);
}

.demo-caption {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* ============================================
   CTA
   ============================================ */

.cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #64d2ff;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

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

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

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .glass-card {
        max-width: 340px;
    }

    .code-block {
        font-size: 0.7rem;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .features {
        padding: 80px 0;
    }

    .demo {
        padding: 60px 0 80px;
    }
}
