/* ============================================
   GRVT MASTERPIECE - Art Direction
   ============================================ */

:root {
    /* Deep Space Colors */
    --bg-void: #000000;
    --bg-titanium: #0c0c0d;
    --bg-card: #161617;

    --text-primary: #f5f5f7;
    --text-secondary: #86868b;

    /* Neon Accents */
    --accent-blue: #2997ff;
    --accent-purple: #bf5af2;
    --accent-green: #30d158;
    --accent-red: #ff453a;
    --accent-orange: #ff9f0a;

    /* Metrics */
    --nav-height: 48px;
    --container-max: 1120px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-void);
}

body {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
}

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

.nav-link {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--accent-blue);
    opacity: 1;
}

.nav-login {
    background: linear-gradient(135deg, var(--accent-orange), #ff6b35);
    color: #fff !important;
    opacity: 1 !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-login:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 159, 10, 0.4);
}

/* ============================================
   HERO (Immersive)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

/* Animated Gradient Canvas */
.gradient-canvas {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(41, 151, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(191, 90, 242, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(48, 209, 88, 0.05) 0%, transparent 60%);
    animation: gradientShift 20s ease infinite alternate;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-5%, 5%) rotate(180deg);
    }

    100% {
        transform: translate(5%, -5%) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(41, 151, 255, 0.15);
    border: 1px solid rgba(41, 151, 255, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 32px;
    animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

h1 {
    font-size: clamp(48px, 9vw, 88px);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-desc {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    animation: fadeUp 1s var(--ease-out-expo) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    animation: fadeUp 1s var(--ease-out-expo) 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeUp 1s var(--ease-out-expo) 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.btn {
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-primary {
    background: var(--text-primary);
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* ============================================
   FEATURES SECTION (Mega Cards)
   ============================================ */
.section-features {
    padding: 120px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
}

/* Mega Feature Card */
.feature-mega {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-void) 100%);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-mega::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(191, 90, 242, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.mega-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.mega-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.mega-desc {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.mega-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AI Brain Animation */
.ai-brain {
    position: relative;
    width: 280px;
    height: 280px;
}

.brain-core {
    position: absolute;
    inset: 30%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    border-radius: 50%;
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.brain-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(191, 90, 242, 0.3);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

.brain-ring:nth-child(2) {
    inset: -20px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.brain-ring:nth-child(3) {
    inset: -40px;
    animation-duration: 20s;
    opacity: 0.5;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.brain-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-blue);
}

.brain-node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brain-node:nth-child(2) {
    top: 25%;
    right: 0;
}

.brain-node:nth-child(3) {
    bottom: 25%;
    right: 0;
}

.brain-node:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brain-node:nth-child(5) {
    bottom: 25%;
    left: 0;
}

.brain-node:nth-child(6) {
    top: 25%;
    left: 0;
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    height: 380px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-visual {
    margin-top: auto;
    position: relative;
    height: 100px;
}

/* Specific card accents */
.card-exercises .card-label {
    color: var(--accent-blue);
}

.card-healthkit .card-label {
    color: var(--accent-red);
}

.card-liveactivity .card-label {
    color: var(--accent-purple);
}

.card-diet .card-label {
    color: var(--accent-green);
}

.card-coach .card-label {
    color: var(--accent-orange);
}

.card-social .card-label {
    color: var(--accent-blue);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-void);
    border-top: 1px solid #333;
    padding: 60px 24px 40px;
    font-size: 12px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    margin-left: 24px;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-mega {
        grid-template-columns: 1fr;
        padding: 48px;
    }

    .mega-visual {
        order: -1;
        height: 250px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .feature-mega {
        grid-template-columns: 1fr;
        padding: 48px;
    }

    .mega-visual {
        order: -1;
        height: 250px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
    padding: 120px 24px;
    background: var(--bg-titanium);
}

.contact-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding-right: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.contact-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 17px;
    color: var(--accent-blue);
    text-decoration: none;
}

.contact-value:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(41, 151, 255, 0.05);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.section-faq {
    padding: 120px 24px;
    background: var(--bg-void);
}

.faq-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.faq-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s var(--ease-out-expo);
}

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

.faq-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   DOWNLOAD CTA SECTION
   ============================================ */
.section-download {
    padding: 160px 24px;
    background: linear-gradient(180deg, var(--bg-titanium) 0%, var(--bg-void) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 10;
}

/* Scan Line Animation */
@keyframes scanLine {

    0%,
    100% {
        top: 10%;
        opacity: 0.3;
    }

    50% {
        top: 80%;
        opacity: 1;
    }
}