/* ==========================================
   BUaic — Marketing Website Styles
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-dark: #0a0a0b;
    --bg-card: #141416;
    --bg-elevated: #1a1a1d;
    --text-primary: #f5f5f4;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --border: #27272a;
    --border-light: #3f3f46;

    /* Typography */
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "DM Sans", sans-serif;

    /* Spacing */
    --container: 1200px;
    --section-pad: 120px;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

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

.nav-link:hover::after {
    width: 100%;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

.btn-download:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        var(--accent-glow) 0%,
        transparent 60%
    );
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    mask-image: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        black 0%,
        transparent 70%
    );
}

.hero-content {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: reveal 0.8s var(--ease-out) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}
.title-line:nth-child(2) {
    animation-delay: 0.2s;
}
.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line-accent {
    color: var(--accent);
}

.hero-subtitle {
    max-width: 540px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: reveal 0.8s var(--ease-out) 0.4s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    opacity: 0;
    animation: reveal 0.8s var(--ease-out) 0.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-features {
    display: flex;
    gap: 32px;
    opacity: 0;
    animation: reveal 0.8s var(--ease-out) 0.6s forwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-icon {
    color: var(--accent);
    font-size: 8px;
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    max-width: 500px;
    pointer-events: none;
}

.phone-mockup {
    position: relative;
    width: 100%;
    padding-bottom: 205%;
    background: var(--bg-card);
    border-radius: 40px;
    border: 8px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.5);
}

.phone-carousel {
    position: absolute;
    inset: 0;
}

.phone-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.phone-screen.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.phone-frame {
    position: absolute;
    inset: 8px;
    border-radius: 32px;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Workout Types Section */
.workout-types {
    padding: var(--section-pad) 24px;
}

.section-header {
    max-width: var(--container);
    margin: 0 auto 80px;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.types-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.type-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.type-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px var(--accent-glow);
}

.type-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 20px;
    margin-bottom: 16px;
}

.type-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: invert(1);
}

.type-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.type-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Feature Section */
.feature-section {
    padding: var(--section-pad) 24px;
}

.feature-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s var(--ease-out);
}

.feature-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.text-accent {
    color: var(--accent);
}

.feature-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.feature-visual {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s var(--ease-out);
}

.feature-visual.visible {
    opacity: 1;
    transform: translateX(0);
}

.screenshot-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.screenshot {
    width: 100%;
    border-radius: 16px;
}

/* Hangboard Section */
.hangboard-section {
    position: relative;
    padding: var(--section-pad) 24px;
    overflow: hidden;
}

.hangboard-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    z-index: -1;
}

.hangboard-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        var(--border) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    opacity: 0.3;
}

.hangboard-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hangboard-screens {
    position: relative;
    height: 500px;
}

.hangboard-screen {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--ease-out);
}

.hangboard-screen img {
    width: 100%;
    border-radius: 12px;
}

.hangboard-screen-1 {
    width: 70%;
    top: 0;
    left: 0;
    z-index: 3;
}

.hangboard-screen-2 {
    width: 75%;
    bottom: 40px;
    right: 0;
    z-index: 2;
}

.hangboard-screen-3 {
    width: 50%;
    bottom: 0;
    left: 10%;
    z-index: 1;
    opacity: 0.6;
}


.hangboard-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.hangboard-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.hangboard-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hb-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hb-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.hb-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.hb-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Analytics Section */
.analytics-section {
    padding: var(--section-pad) 24px;
}

.analytics-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.analytics-text {
    order: 2;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s var(--ease-out);
}

.analytics-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.analytics-visual {
    order: 1;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s var(--ease-out);
}

.analytics-visual.visible {
    opacity: 1;
    transform: translateX(0);
}

.analytics-screenshot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.analytics-screenshot img {
    width: 100%;
    border-radius: 16px;
}

.analytics-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Features Grid Section */
.features-grid-section {
    padding: var(--section-pad) 24px;
    background: var(--bg-elevated);
}

.features-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fg-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}

.fg-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.fg-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.fg-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 16px;
}

.fg-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fg-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 120px 24px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 40% at 20% 50%,
            var(--accent-glow) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 80% 50%,
            var(--accent-glow) 0%,
            transparent 50%
        );
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 28px;
    height: 28px;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
}

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

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-visual {
        position: relative;
        width: 100%;
        max-width: 250px;
        margin: 60px auto 0;
        transform: none;
    }

    .feature-content,
    .hangboard-content,
    .analytics-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .analytics-text {
        order: 1;
    }

    .analytics-visual {
        order: 2;
    }

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

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 140px;
    }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-stats {
        justify-content: center;
    }
}
