/* 
   Rivulet Website Style
   Theme: DEEP BLACK / DARK MODE ACTIVATED
   Updated: Jan 8, 2026
*/

:root {
    /* Colors from design-tokens.ts & User Palette */
    --peach: #FFE5D9;
    --rose: #FFD6E8;
    --lavender: #E6D9F5;
    --mint: #A8E6CF;
    /* Vibrant mint from success token */
    --sky: #D9F0FF;
    --cream: #FFF8E7;
    --lilac: #F0E6FF;
    --blush: #FFE8F0;
    --yellow: #FFD89B;
    /* Vibrant yellow/gold */

    --white: #FFFFFF;
    --off-white: #FDFCF9;
    --light-gray: #F5F5F5;
    --gray: #E8E8E8;
    --medium-gray: #B8B8B8;
    --dark-gray: #6B6B6B;
    --charcoal: #2C2C2C;
    --black: #000000;
    /* Pure black as requested */

    --primary: #B8A9D9;
    --secondary: #A8D5BA;
    --tertiary: #FFB8C6;

    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;

    --spacing-container: 1200px;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary) !important;
    background-color: #000000 !important;
    /* Force pure black background */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 70px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
}

/* Translucent Shield on top of logo */
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
}

.logo-img {
    pointer-events: none;
    /* Disables direct interaction */
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

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

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

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-large-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(184, 169, 217, 0.3);
}

.btn-large-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.btn-large-white {
    background-color: var(--white);
    color: var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 40px;
    position: relative;
    overflow: hidden;
}

#hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content h1 span {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image-container {
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Features Section */
.features-section {
    padding: 60px 0 120px;
    background-color: var(--black);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force single line on desktop */
    gap: 1.5rem;
}

.feature-card {
    padding: 3rem 2rem;
    background-color: #111;
    border-radius: 30px;
    transition: var(--transition-normal);
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(circle at 30% 30%, var(--lavender) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, var(--mint) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, var(--sky) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, var(--peach) 0%, transparent 60%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) rotate(0deg);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1) rotate(45deg);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px -10px var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.5s var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.feature-card p {
    color: var(--text-secondary);
    position: relative;
    margin-bottom: 2rem;
}

.feature-sub-list {
    margin-top: 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.feature-sub-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-normal);
}

.feature-sub-list li span {
    color: var(--accent);
    font-size: 0.8rem;
    opacity: 0.7;
}

.feature-card:hover .feature-sub-list li {
    color: var(--white);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #080808;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-list {
    display: grid;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

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

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    font-size: 4rem;
    animation: float 6s ease-in-out infinite;
}

.i1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.i2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.i3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Tech Specs (SEO & Detail) */
.tech-specs {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding) 0;
    background-color: var(--black);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--lavender);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1.5rem;
}

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

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--black);
}

.cta-card {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    padding: 5rem 3rem;
    border-radius: 40px;
    text-align: center;
    color: var(--white);
}

.cta-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.waitlist-form {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--white);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-normal);
}

.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.waitlist-input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-notify {
    background-color: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1.1rem;
    white-space: nowrap;
}

.btn-notify:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--off-white);
}

.cta-btns-mini {
    margin-top: 4rem;
}

.platforms-text {
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem !important;
    opacity: 0.7;
}

.btn-small-white {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
}

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

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--black);
    border-top: 1px solid #222;
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    display: grid;
    gap: 0.8rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

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

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

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

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets */
    }
}

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

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .cta-card h2 {
        font-size: 2.5rem;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .waitlist-form {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .waitlist-input {
        width: 100%;
        text-align: center;
    }

    .btn-notify {
        width: 100%;
        padding: 1.2rem;
    }

    .cta-card {
        padding: 4rem 1.5rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 2000;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    width: auto;
    max-width: 90vw;
}

@media (max-width: 768px) {
    .toast {
        bottom: auto;
        top: 20px;
        transform: translateX(-50%) translateY(-100px);
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

.toast.show {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.toast-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 169, 217, 0.2) 0%, rgba(255, 184, 198, 0.2) 100%);
    z-index: -1;
}

.toast-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--lavender));
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.2;
}

.toast-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.coming-soon-trigger {
    cursor: pointer;
}