/* ═══════════════════════════════════════════
   BRIEFINE LANDING PAGE — DESIGN SYSTEM
   Theme: Dark Glassmorphism + Gradient Accents
   ═══════════════════════════════════════════ */

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

:root {
    /* Colors */
    --bg-primary: #06080f;
    --bg-secondary: #0c1021;
    --bg-card: rgba(15, 20, 40, 0.6);
    --bg-card-hover: rgba(20, 28, 58, 0.7);
    --text-primary: #f0f2f8;
    --text-secondary: #8b92a8;
    --text-muted: #5a6178;
    --accent-violet: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-card);
}

.btn-ghost:hover {
    border-color: var(--accent-violet);
    color: var(--text-primary);
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 1001;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent);
    bottom: -5%;
    right: -5%;
    animation-delay: -4s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent);
    top: 40%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}



.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.proof-avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar:first-child {
    margin-left: 0;
}

.hero-proof p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-proof .counter {
    color: var(--text-primary);
    font-weight: 700;
}

/* ── SECTIONS ── */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── PROBLEM SECTION ── */
.problem {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-quote {
    font-style: italic;
    color: var(--accent-pink);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--accent-pink);
}

.problem-card p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── SOLUTION / STEPS ── */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    transition: all 0.4s ease;
}

.step-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    margin-bottom: 16px;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-connector {
    flex-shrink: 0;
}

/* ── FEATURES GRID ── */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ── PERSONAS ── */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.persona-card::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--gradient-primary);
}

.persona-card:nth-child(2)::before {
    background: linear-gradient(135deg, #06b6d4, #67e8f9);
}

.persona-card:nth-child(3)::before {
    background: linear-gradient(135deg, #ec4899, #f9a8d4);
}

.persona-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(124, 58, 237, 0.2);
}

.persona-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.12);
    margin: 32px auto 0;
}

.persona-card:nth-child(2) .persona-icon-wrap {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.12);
}

.persona-card:nth-child(3) .persona-icon-wrap {
    background: rgba(236, 72, 153, 0.06);
    border-color: rgba(236, 72, 153, 0.12);
}

.persona-text {
    padding: 20px 28px 0;
    text-align: center;
    flex: 1;
}

.persona-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.persona-quote {
    font-style: italic;
    color: var(--accent-cyan);
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.6;
    padding: 0 4px;
}

.persona-card:nth-child(1) .persona-quote {
    color: var(--accent-violet);
}

.persona-card:nth-child(3) .persona-quote {
    color: var(--accent-pink);
}

.persona-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.persona-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 20px 24px 28px;
    margin-top: auto;
}

.persona-capabilities span {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.persona-card:hover .persona-capabilities span {
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-secondary);
}

/* ── WAITLIST CTA ── */
.waitlist {
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.waitlist-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent);
    top: -20%;
    right: -10%;
    animation-delay: -2s;
}

.orb-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent);
    bottom: -15%;
    left: -5%;
    animation-delay: -6s;
}

.waitlist-content {
    position: relative;
    z-index: 1;
}

.waitlist-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-field input,
.form-field select {
    background: rgba(15, 20, 40, 0.8);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6178' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.form-field select option {
    background: #0c1021;
    color: var(--text-primary);
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit-full {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
}

.form-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.waitlist-success {
    margin-top: 24px;
}

.success-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.waitlist-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.waitlist-success p {
    color: var(--text-secondary);
}

/* spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── FOOTER ── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
}

.footer-tagline {
    display: none;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

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

.footer-badge span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.problem-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.problem-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.features-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.features-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.features-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.features-grid .reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.features-grid .reveal:nth-child(6) {
    transition-delay: 0.4s;
}

.personas-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.personas-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.steps-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.steps-grid .reveal:nth-child(3) {
    transition-delay: 0.15s;
}

.steps-grid .reveal:nth-child(4) {
    transition-delay: 0.2s;
}

.steps-grid .reveal:nth-child(5) {
    transition-delay: 0.25s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {

    .problem-grid,
    .features-grid,
    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-connector {
        display: none;
    }
}

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

    /* Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(6, 8, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 24px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-subtle);
    }

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

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    /* Grids */
    .problem-grid,
    .features-grid,
    .personas-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}