/*
 * CoralCore Website Styles
 * Ocean-Inspired Design System
 * Combines serene blues with vibrant coral accents for a fresh, engaging look
 */

/* ============================================
   CSS CUSTOM PROPERTIES (CoralCore Ocean Theme - Apple Style)
   ============================================ */
:root {
    /* App Brand Colors - Deep Ocean Palette */
    --color-primary: #22d3ee;
    /* Bright Cyan - #22D3EE */
    --color-primary-dark: #0ea5e9;
    /* Sky Blue - #0EA5E9 */
    --color-primary-light: #38bdf8;
    /* Light Cyan - #38BDF8 */
    --color-accent: #2dd4bf;
    /* Teal - #2DD4BF */
    --color-accent-light: #5eead4;
    /* Light Teal - #5EEAD4 */

    /* Background Colors - Deep Ocean Theme */
    --color-bg-primary: #0f172a;
    /* Deep Navy - #0F172A */
    --color-bg-secondary: #1e293b;
    /* Ocean Navy - #1E293B */
    --color-bg-tertiary: #334155;
    /* Slate Blue - #334155 */
    --color-bg-light: #f8fafc;
    /* Very light gray for contrast */
    --color-bg-white: #ffffff;

    /* Text Colors */
    --color-text-primary: #ffffff;
    /* White for dark backgrounds */
    --color-text-secondary: #e2e8f0;
    /* Slate 200 - #E2E8F0 */
    --color-text-tertiary: #94a3b8;
    /* Slate 400 - #94A3B8 */
    --color-text-dark: #0f172a;
    /* Dark navy for light backgrounds */
    --color-text-muted: #64748b;
    /* Slate 500 - #64748B */

    /* Warm Accents (Sand/Beige) */
    --color-warm-sand: #d4a574;
    /* Warm sand - #D4A574 */
    --color-warm-brown: #bc8a5f;
    /* Brown sand - #BC8A5F */
    --color-soft-coral: #d4948b;
    /* Soft coral - #D4948B */

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Gradients - App Inspired */
    --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    --gradient-hero: var(--gradient-primary);
    --gradient-dark: linear-gradient(180deg, #111827 0%, #020617 100%);

    /* Compatibility aliases used across legacy sections */
    --color-text-light: #ffffff;
    --color-text-light-muted: #cbd5e1;
    --color-bg-dark: #020617;
    --color-reef-teal: #5eead4;

    /* Shadows - Subtle and Apple-like */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.3);

    /* Typography - SF Pro (Apple System Font) */
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing - Increased for Apple-like breathing room */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;

    /* Border Radius - Apple style */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions - Smooth and subtle */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

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

.section-alt h2,
.section-alt h3,
.section-alt h4,
.section-alt .step-content h4,
.section-alt .faq-section h3 {
    color: var(--color-text-dark);
}

.section-alt p,
.section-alt li,
.section-alt .section-header p,
.section-alt .metrics-note,
.section-alt .about-content p {
    color: var(--color-text-muted);
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-text-light);
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
    display: flex;
    gap: var(--space-md);
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-bg-tertiary);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-secondary);
    margin: 6px 0;
    transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* ============================================
   HERO SECTION - Apple Style
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-primary);
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-text {
    color: var(--color-text-primary);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-secondary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
    color: var(--color-text-secondary);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.05;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3xl);
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 220px;
}

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

.phone-mockup {
    width: 320px;
    height: 650px;
    background: var(--color-bg-secondary);
    border-radius: 50px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 2px solid var(--color-bg-tertiary);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    text-align: center;
    padding: var(--space-2xl);
}

.phone-screen .app-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 25px;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.stats-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    text-align: center;
}

.stats-preview .stat-item {
    padding: var(--space-lg);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
}

.stats-preview .stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.stats-preview .stat-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-transform: none;
    letter-spacing: normal;
}




/* ============================================
   BUTTONS - Apple Style with App Colors
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.btn-lg {
    padding: var(--space-xl) var(--space-3xl);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   HERO REEF BACKGROUND
   ============================================ */
.reef-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.reef-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.reef-back {
    height: 35%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(34, 211, 238, 0.6) 100%);
    clip-path: ellipse(150% 100% at 50% 100%);
}

.reef-mid {
    height: 25%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(45, 212, 191, 0.7) 100%);
    clip-path: ellipse(150% 90% at 50% 100%);
}

.reef-front {
    height: 15%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(56, 189, 248, 0.8) 100%);
    clip-path: ellipse(150% 80% at 50% 100%);
    z-index: 2;
}

/* Bubbles */
.bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise 8s infinite ease-in;
    bottom: -20px;
}

.bubble:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 12px;
    height: 12px;
    left: 25%;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 45%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 60%;
    animation-delay: 1s;
}

.bubble:nth-child(5) {
    width: 14px;
    height: 14px;
    left: 80%;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 8px;
    height: 8px;
    left: 90%;
    animation-delay: 5s;
}

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

    100% {
        transform: translateY(-500px) scale(0.5);
        opacity: 0;
    }
}

/* Fish Base Style */
.fish {
    position: absolute;
    font-size: 2.5rem;
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mockup-reef {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
    opacity: 0.8;
}

/* Base Coral Asset Style (Restored) */
.coral-asset {
    position: absolute;
    bottom: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    /* animation: sway 4s ease-in-out infinite; */
    transform-origin: bottom center;
}

.coral-asset:hover {
    z-index: 20 !important;
}

/* Back Layer (Smaller, darker, slower) */
.coral-back-left {
    width: 90px;
    left: 30%;
    bottom: 60px;
    z-index: 1;
    animation-delay: 0.2s;
}

.coral-back-right {
    width: 85px;
    right: 30%;
    bottom: 65px;
    z-index: 1;
    animation-delay: 0.5s;
}

/* Mid Layer */
.coral-mid-left {
    width: 110px;
    left: 5%;
    bottom: 50px;
    z-index: 2;
    animation-delay: 1.2s;
}

.coral-mid-right {
    width: 100px;
    right: 5%;
    bottom: 55px;
    z-index: 2;
    animation-delay: 0.9s;
}

/* Front Layer (Largest, main focus) */
.coral-front-left {
    width: 120px;
    left: 15%;
    bottom: 35px;
    z-index: 3;
    animation-delay: 0s;
}

.coral-front-center {
    width: 140px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    z-index: 4;
    animation-delay: 1.5s;
}

.coral-front-right {
    width: 115px;
    right: 15%;
    bottom: 35px;
    z-index: 3;
    animation-delay: 0.7s;
}

/* Textured Fish Assets */
.fish-img {
    position: absolute;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: opacity 0.5s ease, filter 0.5s ease;
    z-index: 10;
}

.fish-1 {
    width: 60px;
    top: 25%;
    left: -80px;
    animation: swim-left-right 14s linear infinite;
}

.fish-2 {
    width: 45px;
    top: 50%;
    left: -80px;
    animation: swim-left-right 18s linear infinite;
    animation-delay: -6s;
}

.fish-3 {
    width: 35px;
    top: 65%;
    left: -80px;
    animation: swim-left-right 10s linear infinite;
    animation-delay: -3s;
}

@keyframes swim-left-right {
    0% {
        left: -150px;
        transform: scaleX(1);
        /* Face Right */
    }

    45% {
        left: calc(100% + 20px);
        transform: scaleX(1);
        /* Face Right */
    }

    /* QUICK TURN START */
    49% {
        left: calc(100% + 20px);
        transform: scaleX(1);
        /* Face Right */
    }

    50% {
        left: calc(100% + 20px);
        transform: scaleX(-1);
        /* TURN: Face Left */
    }

    /* QUICK TURN END */

    95% {
        left: -80px;
        transform: scaleX(-1);
        /* Face Left */
    }

    /* QUICK TURN START */
    99% {
        left: -80px;
        transform: scaleX(-1);
        /* Face Left */
    }

    100% {
        left: -150px;
        transform: scaleX(1);
        /* TURN: Face Right */
    }
}

/* ============================================
   REEF CONCEPT SECTION
   ============================================ */
.reef-concept {
    /* Gradient from subtle Accent to Deep Navy */
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.1) 0%, var(--color-bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.reef-animation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 968px) {
    .reef-animation {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.reef-visual {
    position: relative;
    height: 400px;
    min-width: 300px;
    /* Deep Ocean Container */
    background: linear-gradient(180deg, #0f172a 0%, #0369a1 50%, #0ea5e9 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5), var(--shadow-xl);
    border: 4px solid var(--color-bg-tertiary);
}

/* Sand at bottom */
.reef-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent 0%, var(--color-warm-sand) 50%, var(--color-warm-brown) 100%);
    border-radius: 50% 50% 0 0 / 30px 30px 0 0;
    z-index: 5;
}

.reef-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* CSS Starfish Shape */
.starfish-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    bottom: 15px;
    left: 18%;
    background-image: url('../images/starfish_orange.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: opacity 0.5s ease;
    transform: rotate(15deg);
    z-index: 6;
    opacity: 0;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-2deg) translateX(0);
    }

    50% {
        transform: rotate(2deg) translateX(3px);
    }
}

.reef-description {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.reef-step {
    text-align: center;
    padding: var(--space-md);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.reef-step h3 {
    margin-bottom: var(--space-xs);
    color: #ffffff;
}

.reef-step p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* ============================================
   GAMIFICATION SECTION
   ============================================ */
.xp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: left;
    margin-top: var(--space-2xl);
}

.xp-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-item h4 {
    font-family: var(--font-display);
    color: var(--color-reef-teal);
    margin-bottom: var(--space-xs);
}

.xp-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.achievements-showcase {
    margin-top: var(--space-3xl);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    justify-content: center;
}

.achievement {
    text-align: center;
    padding: var(--space-md);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.achievement-name {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: var(--color-bg-secondary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.author-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.author-title {
    color: var(--color-text-tertiary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: var(--color-bg-primary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}

.feature-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    background: var(--gradient-dark);
    color: var(--color-text-light);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: var(--color-bg-primary);
    text-align: center;
}

.cta-box {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.cta-box h2 {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-box p {
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: 1.25rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.app-store-badge {
    display: inline-block;
    height: 54px;
    transition: transform var(--transition-base);
    margin-top: var(--space-md);
}

.app-store-badge img {
    height: 100%;
    width: auto;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.footer-brand p {
    color: var(--color-text-light-muted);
    font-size: 0.875rem;
}

.footer-links h4 {
    color: var(--color-text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-light-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--color-text-light-muted);
    font-size: 0.875rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-text-light-muted);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.legal-page {
    min-height: 100vh;
    padding-top: 0;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.legal-header {
    background: var(--gradient-hero);
    color: var(--color-text-light);
    padding: calc(72px + var(--space-2xl)) 0 var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.legal-header h1 {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.legal-header .last-updated {
    opacity: 0.8;
    font-size: 0.875rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-4xl);
}

.legal-content section {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: var(--space-sm);
}

/* ============================================
   SUPPORT PAGE
   ============================================ */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    color: var(--color-text-light);
    text-align: center;
}

.contact-card h3 {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.contact-card p {
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-bottom: var(--space-xl);
}

.faq-section h3 {
    margin-bottom: var(--space-xl);
    color: var(--color-text-primary);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-lg) 0;
}

.faq-question {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--color-text-secondary);
    display: none;
    padding-top: var(--space-sm);
}

.faq-answer p,
.faq-answer li,
.faq-answer a {
    color: var(--color-text-secondary);
}

.faq-answer a:hover {
    color: var(--color-primary-light);
}

.faq-item.active .faq-answer {
    display: block;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.troubleshooting-item {
    background: var(--color-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.troubleshooting-item h4 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.troubleshooting-item ul {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.resource-card {
    background: var(--color-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.resource-card h4 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.resource-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}



/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* ============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.steps {
    counter-reset: step;
    margin-top: var(--space-3xl);
}

.step {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.metric {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.metric-name {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metrics-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-xl);
}

.gamification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.gamification-item {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    border-radius: var(--radius-xl);
    color: white;
}

.gamification-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.gamification-item h4 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: var(--space-sm);
}

.gamification-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.xp-rewards {
    margin-top: var(--space-3xl);
}

.ai-feature,
.social-feature,
.wellness-feature,
.nutrition-feature {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.ai-feature:hover,
.social-feature:hover,
.wellness-feature:hover,
.nutrition-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ai-feature h3,
.social-feature h3,
.wellness-feature h3,
.nutrition-feature h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.privacy-features {
    text-align: center;
    margin-top: var(--space-xl);
}

.privacy-features ul {
    list-style: none;
    margin: var(--space-xl) 0;
}

.privacy-features li {
    margin-bottom: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--color-text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

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

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

    .reef-animation {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .reef-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        border-top: 1px solid rgba(148, 163, 184, 0.18);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        gap: var(--space-md);
    }

    .nav-links a {
        color: var(--color-text-secondary);
    }

    .stats-preview {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

    .mobile-toggle {
        display: flex;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .step {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .phone-mockup {
        width: 200px;
        height: 420px;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-light);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}