/* ============================================
   BRAVE COMPASS — Complete Stylesheet
   Violet  #2D1B46
   Coral   #FF7B6B
   Ivory   #FFF8F0
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFF8F0;
    color: #2D1B46;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ----- TYPOGRAPHY ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #2D1B46;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

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

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: #2D1B46;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF7B6B;
    margin-bottom: 0.75rem;
}

/* ----- UTILITY ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: #FF7B6B;
    color: #FFF8F0;
}

.btn-primary:hover {
    background-color: #e85d4d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 123, 107, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: #2D1B46;
    border: 2px solid #2D1B46;
}

.btn-secondary:hover {
    background-color: #2D1B46;
    color: #FFF8F0;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: #FFF8F0;
    border: 2px solid #FFF8F0;
}

.btn-outline-light:hover {
    background-color: #FFF8F0;
    color: #2D1B46;
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.nav.scrolled {
    background-color: rgba(45, 27, 70, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(45, 27, 70, 0.15);
    padding: 0.6rem 0;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFF8F0;
    letter-spacing: -0.02em;
    z-index: 1001;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: #FF7B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #FFF8F0;
    flex-shrink: 0;
}

/* Nav Links (desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 248, 240, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF7B6B;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #FFF8F0;
}

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

.nav-links a.active {
    color: #FFF8F0;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.5rem;
    background-color: #FF7B6B;
    color: #FFF8F0 !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: #e85d4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 123, 107, 0.3);
}

/* ----- HAMBURGER ----- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: #FFF8F0;
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Hamburger open state */
.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(45, 27, 70, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
}

.nav-overlay a {
    color: #FFF8F0;
    font-size: 1.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-overlay a:hover {
    color: #FF7B6B;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #2D1B46;
    overflow: hidden;
    padding-top: 80px;
}

/* Background decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255, 123, 107, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 248, 240, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    color: #FFF8F0;
}

.hero-content .section-label {
    color: #FF7B6B;
}

.hero-content h1 {
    color: #FFF8F0;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: #FF7B6B;
}

.hero-content p {
    color: rgba(255, 248, 240, 0.8);
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-card {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, rgba(255, 248, 240, 0.08), rgba(45, 27, 70, 0.4));
    border-radius: 24px;
    border: 1px solid rgba(255, 248, 240, 0.12);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.hero-card .compass-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: compassSpin 20s linear infinite;
}

@keyframes compassSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-card h3 {
    color: #FFF8F0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: rgba(255, 248, 240, 0.7);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0;
}

/* Floating dots decoration */
.hero-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-dots span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FF7B6B;
    border-radius: 50%;
    opacity: 0.3;
}

.hero-dots span:nth-child(1) {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}
.hero-dots span:nth-child(2) {
    top: 60%;
    left: 90%;
    animation: float 8s ease-in-out infinite 1s;
}
.hero-dots span:nth-child(3) {
    top: 80%;
    left: 15%;
    animation: float 7s ease-in-out infinite 2s;
}
.hero-dots span:nth-child(4) {
    top: 20%;
    left: 85%;
    animation: float 9s ease-in-out infinite 0.5s;
}
.hero-dots span:nth-child(5) {
    top: 50%;
    left: 50%;
    animation: float 10s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.3);
        opacity: 0.6;
    }
}

/* ============================================
   HERO — Alternate (Dark background)
   ============================================ */
.hero-alt {
    background-color: #2D1B46;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-alt .container {
    text-align: center;
    max-width: 800px;
}

.hero-alt h1 {
    color: #FFF8F0;
    margin-bottom: 1.5rem;
}

.hero-alt h1 span {
    color: #FF7B6B;
}

.hero-alt p {
    color: rgba(255, 248, 240, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   FEATURES / SECTIONS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #FFF8F0;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(45, 27, 70, 0.06);
    box-shadow: 0 8px 32px rgba(45, 27, 70, 0.04);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 27, 70, 0.1);
    border-color: rgba(255, 123, 107, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 123, 107, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: #FF7B6B;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: #2D1B46;
}

.feature-card p {
    color: rgba(45, 27, 70, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #2D1B46 0%, #3d2a5a 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #FFF8F0;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 248, 240, 0.75);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-section .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #2D1B46;
    border-top: 1px solid rgba(255, 248, 240, 0.06);
    padding: 3rem 0;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFF8F0;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: #FF7B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #FFF8F0;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 248, 240, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF7B6B;
}

.footer-copy {
    color: rgba(255, 248, 240, 0.4);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE — TABLETS & BELOW
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-overlay {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 4rem;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-card {
        max-width: 300px;
        padding: 1.5rem;
    }

    .hero-card .compass-icon {
        font-size: 3.5rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    /* CTA */
    .cta-section {
        padding: 3.5rem 0;
    }

    .cta-section h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    /* Footer */
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

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

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-logo .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .nav-overlay a {
        font-size: 1.4rem;
    }

    .hero-card {
        max-width: 260px;
        padding: 1.25rem;
    }

    .hero-card .compass-icon {
        font-size: 2.8rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }
}

/* ============================================
   ANIMATIONS — UTILITY
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}
.fade-in-delay-2 {
    animation-delay: 0.2s;
}
.fade-in-delay-3 {
    animation-delay: 0.3s;
}
.fade-in-delay-4 {
    animation-delay: 0.4s;
}

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

/* ----- Selection ----- */
::selection {
    background-color: #FF7B6B;
    color: #FFF8F0;
}

/* ----- Scrollbar (for Webkit) ----- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #2D1B46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF7B6B;
}