/* ==========================================================================
   Conversation Analyzer Landing Page
   style.css — Part 1
   ========================================================================== */

   :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1f2630;
    --border: #2d333b;
    --text: #f0f6fc;
    --muted: #8b949e;
    --primary: #58a6ff;
    --primary-light: #79c0ff;
    --radius: 20px;
    --shadow: 0 30px 80px rgba(0, 0, 0, .45);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

.container {
    width: min(var(--container), 92%);
    margin: auto;
}

/* ===========================
        Background
=========================== */

.background {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
}

.gradient {
    position: absolute;
    width: 900px;
    height: 900px;
    left: -250px;
    top: -200px;
    background: radial-gradient(circle, rgba(88, 166, 255, .18), transparent 70%);
    filter: blur(30px);
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, white, transparent 90%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .25;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: #58a6ff;
    right: -150px;
    top: 120px;
}

.glow-2 {
    width: 420px;
    height: 420px;
    background: #7c3aed;
    left: 15%;
    bottom: -150px;
}

/* ===========================
        Splash
=========================== */

#splash {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0d1117;
    z-index: 999;
    transition: opacity .8s;
    padding: 20px;
}

.terminal {
    width: min(780px, 90vw);
    background: #11161d;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.terminal-header {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 18px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header span:nth-child(1) { background: #ff5f57; }
.terminal-header span:nth-child(2) { background: #febc2e; }
.terminal-header span:nth-child(3) { background: #28c840; }

.terminal-body {
    padding: 32px;
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
}

.logo {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.space {
    height: 20px;
}

.final {
    color: #79c0ff;
    font-size: 22px;
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 22px;
    background: white;
    margin-left: 4px;
    animation: blink 1s infinite;
}

/* ===========================
        Navbar
=========================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(13, 17, 23, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background .25s, border-color .25s;
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 36px;
}

nav a {
    color: var(--muted);
    transition: .25s;
}

nav a:hover {
    color: white;
}

.github-btn {
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: .25s;
    white-space: nowrap;
}

.github-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   style.css — Part 2
   Hero
   ========================================================================== */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 80px;
}

.hero-left {
    animation: fadeUp .8s ease both;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    margin-bottom: 28px;
    border-radius: 999px;
    border: 1px solid rgba(88, 166, 255, .25);
    background: rgba(88, 166, 255, .08);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
    font-weight: 800;
}

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

.hero p {
    max-width: 620px;
    font-size: 20px;
    line-height: 1.8;
    color: var(--muted);
}

.buttons {
    display: flex;
    gap: 18px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.primary,
.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 14px;
    transition: .25s;
    font-weight: 600;
}

.primary {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 15px 40px rgba(88, 166, 255, .28);
}

.primary:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 20px 60px rgba(88, 166, 255, .4);
}

.primary::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 220%;
    left: -150px;
    top: -60%;
    background: rgba(255, 255, 255, .18);
    transform: rotate(25deg);
    transition: .7s;
}

.primary:hover::after {
    left: 140%;
}

.secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
}

.secondary:hover {
    background: rgba(255, 255, 255, .05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ===========================
        Preview Card
=========================== */

.hero-right {
    display: flex;
    justify-content: center;
    animation: float 7s ease-in-out infinite;
    width: 100%;
}

.preview {
    width: 100%;
    max-width: 520px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(22, 27, 34, .92);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow);
}

.preview-header {
    padding: 18px 24px;
    background: #1d2430;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--primary);
}

.preview-body {
    padding: 32px;
}

.preview pre {
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    line-height: 2;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    transition: opacity .25s, transform .25s;
}

/* ===========================
        Scroll Indicator
=========================== */

.scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.scroll span {
    width: 2px;
    height: 40px;
    background: linear-gradient(transparent, var(--primary), transparent);
    animation: scroll 2s infinite;
}

/* ===========================
        Placeholder Sections
=========================== */

.placeholder {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.placeholder h2 {
    font-size: 48px;
    color: #ffffff18;
    font-weight: 800;
}

/* ==========================================================================
   style.css — Part 3
   Features • Demo • Open Source • Community
   ========================================================================== */

#features,
#demo,
#opensource,
#community {
    padding: 140px 0;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-title span,
.mini-title {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: .85rem;
    margin-bottom: 18px;
}

.section-title h2,
.demo h2,
.open-source h2,
.community-box h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-title p,
.demo p,
.open-source p,
.community-box p {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ======================================
               Feature Grid
   ====================================== */

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

.feature-card {
    position: relative;
    padding: 36px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(22, 27, 34, .75);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .35s, border-color .35s;
    backdrop-filter: blur(18px);
    cursor: pointer;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: .35s;
    background: linear-gradient(135deg, rgba(88, 166, 255, .08), transparent);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    transition: .35s;
    background: linear-gradient(135deg, rgba(88, 166, 255, .22), transparent, rgba(88, 166, 255, .12));
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: rgba(88, 166, 255, .35);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 24px;
    transition: transform .35s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-card h3 {
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.8;
}

/* ======================================
               Demo
   ====================================== */

.demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.dashboard {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #141a22;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .45);
}

.dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(255, 255, 255, .04), transparent);
    animation: scan 5s linear infinite;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.dashboard-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-header span:nth-child(1) { background: #ff5f57; }
.dashboard-header span:nth-child(2) { background: #febc2e; }
.dashboard-header span:nth-child(3) { background: #28c840; }

.dashboard-header h4 {
    margin-left: 12px;
    font-weight: 600;
}

.dashboard-body {
    padding: 35px;
}

.analysis-card {
    border-radius: 18px;
    background: #0d1117;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .05);
}

.analysis-card small {
    color: var(--primary);
    font-weight: 700;
}

.analysis-card h3 {
    margin: 14px 0 24px;
    font-size: 1.5rem;
}

.analysis-card pre {
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
    transition: opacity .35s, transform .35s;
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
             Open Source
   ====================================== */

.open-source {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.opensource-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ======================================
               Community
   ====================================== */

.community-box {
    max-width: 920px;
    margin: auto;
    text-align: center;
    padding: 70px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(88, 166, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid rgba(88, 166, 255, .18);
    backdrop-filter: blur(18px);
}

.community-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px;
}

/* ==========================================================================
   style.css — Part 4
   Premium Effects
   ========================================================================== */

#mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, .12), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -5;
    will-change: transform;
}

.gradient { animation: driftOne 14s ease-in-out infinite; }
.glow-1 { animation: floatGlow1 18s ease-in-out infinite; }
.glow-2 { animation: floatGlow2 24s ease-in-out infinite; }
.grid { animation: gridMove 40s linear infinite; }

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s, transform .8s;
}

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

/* ===========================
      Animations
=========================== */

@keyframes blink { 50% { opacity: 0; } }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(-12px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes driftOne {
    0% { transform: translate(0, 0); }
    50% { transform: translate(80px, -40px); }
    100% { transform: translate(0, 0); }
}

@keyframes floatGlow1 { 50% { transform: translateY(-40px) translateX(-20px); } }
@keyframes floatGlow2 { 50% { transform: translateY(30px) translateX(40px); } }
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(50px); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* Disable mouse-follow glow on touch / no-hover devices */
@media (hover: none) {
    #mouse-glow {
        display: none;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ======================================
               Responsive
   ====================================== */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero p {
        margin: auto;
    }

    .buttons {
        justify-content: center;
    }
}

@media (max-width: 960px) {
    .demo {
        grid-template-columns: 1fr;
    }

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

    .opensource-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .community-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(13, 17, 23, .97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    nav.open {
        max-height: 320px;
    }

    nav a {
        padding: 16px 24px;
        border-top: 1px solid rgba(255, 255, 255, .05);
    }

    .nav-toggle {
        display: flex;
    }

    .github-btn {
        display: none;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 18px;
    }

    .terminal-body {
        font-size: 14px;
        padding: 24px;
    }

    .final {
        font-size: 18px;
    }

    .preview pre {
        font-size: 15px;
    }

    .preview-body {
        padding: 22px;
    }

    .placeholder h2 {
        font-size: 34px;
    }

    #features,
    #demo,
    #opensource,
    #community {
        padding: 90px 0;
    }

    .community-box {
        padding: 40px 24px;
    }

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

    .feature-card {
        padding: 28px;
    }
}

@media (max-width: 420px) {
    .badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .primary,
    .secondary {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
    }

    .buttons {
        flex-direction: column;
    }

    .community-buttons a {
        width: 100%;
    }
}