@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* SATOSHI — Hand-picked for a more human/premium feel */
@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/satoshi/Satoshi-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SatoshiBlack';
    src: url('../assets/fonts/satoshi/Satoshi-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #F04E3A;
    --primary-hover: #D03D2B;
    --primary-cyan: #3D5155;
    --bg-sidebar: #222A2C;
    /* Official Dashboard Cyan */
    --bg-dark: #1A1D1F;
    --bg-light: #F8FAFB;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-on-dark: #FFFFFF;
    --text-muted: #6B7280;
    --glass-border: rgba(0, 0, 0, 0.08);
    --radius-lg: 12px;
    --radius-md: 8px;
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Responsive Spacing */
    --section-padding: 5.5rem;
    --container-width: 1200px;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: var(--section-padding) 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(34, 42, 44, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: lowercase;
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-sidebar);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Hero Section */
.hero {
    background-color: var(--bg-sidebar);
    color: var(--text-on-dark);
    padding-top: 8rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

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

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 580px;
    margin-bottom: 3.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1/1;
    /* background: rgba(255, 255, 255, 0.02); */
    /* border-radius: 24px; */
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5); */
}

.sound-visualizer {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60%;
    width: 80%;
    justify-content: center;
}

.bar {
    flex: 1;
    max-width: 6px;
    height: 100%;
    background: linear-gradient(to top, var(--primary) 0%, #FF8E78 100%);
    border-radius: 10px;
    animation: rhythmicPulse 1.8s ease-in-out infinite;
    transform-origin: center;
}

/* Individual Bar Pacing — Doubled for a smoother, ambient feel */
.bar:nth-child(1) {
    animation-duration: 1.6s;
    height: 30%;
}

.bar:nth-child(2) {
    animation-duration: 2.4s;
    height: 60%;
}

.bar:nth-child(3) {
    animation-duration: 1.8s;
    height: 90%;
}

.bar:nth-child(4) {
    animation-duration: 2.8s;
    height: 40%;
}

.bar:nth-child(5) {
    animation-duration: 1.4s;
    height: 80%;
}

.bar:nth-child(6) {
    animation-duration: 2.2s;
    height: 50%;
}

.bar:nth-child(7) {
    animation-duration: 2.6s;
    height: 100%;
}

.bar:nth-child(8) {
    animation-duration: 1.7s;
    height: 70%;
}

.bar:nth-child(9) {
    animation-duration: 2.5s;
    height: 40%;
}

.bar:nth-child(10) {
    animation-duration: 1.9s;
    height: 85%;
}

.bar:nth-child(11) {
    animation-duration: 2.7s;
    height: 65%;
}

.bar:nth-child(12) {
    animation-duration: 1.5s;
    height: 45%;
}

.bar:nth-child(13) {
    animation-duration: 2.3s;
    height: 95%;
}

.bar:nth-child(14) {
    animation-duration: 1.6s;
    height: 55%;
}

.bar:nth-child(15) {
    animation-duration: 2.1s;
    height: 35%;
}

@keyframes rhythmicPulse {

    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero p {
        margin: 0 auto 3rem;
    }

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

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Features */
.features {
    background-color: var(--bg-light);
}

.section-title {
    margin-bottom: 5rem;
    text-align: left;
    /* More professional asymmetrical look */
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 500px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(240, 78, 58, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(240, 78, 58, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Mission Section */
.mission-card {
    background: var(--bg-sidebar);
    color: white;
    padding: clamp(3rem, 10vw, 6rem);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

/* Footer Styling */
footer {
    padding: 6rem 0 3rem;
    background-color: #F8FAFB;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1.5rem auto 0;
    }
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

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

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Grain Overlay Refinement */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}