:root {
    /* --- Dark Mode (Default) --- */
    --bg-body: #050507;
    --bg-surface: #111113;
    --bg-surface-hover: #1a1a1e;
    --border-color: rgba(255, 255, 255, 0.08);
    /* Subtle for grid */

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --primary: #3b82f6;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #ec4899;

    --code-bg: #1e1e24;
    --nav-bg: rgba(5, 5, 7, 0.85);

    /* --- Spacing & Radius --- */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --radius-md: 16px;
    --radius-full: 999px;
}

/* 4.575 */
.logo {
    width: 183px;
    height: 40px;
    fill: var(--text-main);
}

/* --- Light Mode Override --- */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --border-color: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #64748b;

    --primary: #3b82f6;
    --primary-glow: rgba(79, 70, 229, 0.2);

    --code-bg: #f1f5f9;
    --nav-bg: rgba(255, 255, 255, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.section {
    padding: 4rem 0 5rem 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hidden {
    display: none !important;
}

/* --- Visual FX: Grid Background --- */
.grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Uses --border-color so it adapts to Light/Dark mode automatically */
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .grid-bg {
        background-size: 40px 40px;
        mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .grid-bg {
        background-size: 30px 30px;
        mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
        opacity: 0.4;
    }
}

.glow-spot {
    position: absolute;
    width: 600px;
    max-width: 90vw;
    height: 600px;
    max-height: 90vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(80px);
    z-index: -2;
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .glow-spot {
        top: -100px;
        width: 400px;
        height: 400px;
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    .glow-spot {
        top: -50px;
        width: 300px;
        height: 300px;
        filter: blur(50px);
    }
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.text-left {
    text-align: left;
}

.feature-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-main);
    fill: none;
    stroke-width: 2px;
}

.card.text-left h3 {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card li {
    font-size: 0.96rem;
}

#pricing .card {
    padding: 2rem 1.6rem;
}

.badge {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    padding: 0.3rem 0.8rem;
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px var(--primary) solid;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Special: "How It Works" Flow Animation --- */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 3rem;
}

.connector-line {
    position: absolute;
    margin-top: auto;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.data-packet {
    position: absolute;
    margin-top: auto;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent));
    z-index: 1;
    border-radius: 4px;
    animation: flow 3s infinite ease-in-out;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes flow {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 90%;
        opacity: 0;
    }
}

.step-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    width: 30%;
    position: relative;
    z-index: 2;
    text-align: center;
    height: 234px;
}

.step-item.important {
    height: 260px;
}

.step-icon {
    display: block;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem auto;
    padding: 0 10px;
    stroke: var(--text-main);
    fill: none;
    stroke-width: 2px;
}

/* --- Mobile Menu & Responsive --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        display: none;
        /* Hidden by default on mobile */
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
        align-items: left;
    }

    .steps-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .connector-line,
    .data-packet {
        display: none;
    }

    /* Hide horizontal anim on mobile */
    .step-item {
        width: 100%;
    }
}

/* --- Apple-like Monitor Frame --- */
.monitor-frame {
    margin: 3rem auto;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-left: 114px;
    padding-right: 114px;
    overflow-x: clip;
}

.monitor-bezel {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 16px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
}

[data-theme="light"] .monitor-bezel {
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.monitor-screen {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 18.5 / 10;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .monitor-screen {
    background: #1a1a1a;
}

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

/* The Stand - matches bezel colors, now scales with container */
.monitor-stand {
    width: 10%;
    min-width: 80px;
    max-width: 120px;
    height: 60px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    margin-top: -20px;
    position: relative;
    z-index: 1;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .monitor-stand {
    background: linear-gradient(to bottom, #e8e8e8, #d4d4d4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* The Base - matches bezel colors, now scales with container */
.monitor-base {
    width: 20%;
    min-width: 160px;
    max-width: 240px;
    height: 8px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 0;
}

[data-theme="light"] .monitor-base {
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* =========================
   CREDITS (Horizontal rows)
   Paste at bottom of style.css
   ========================= */

/* Wrapper for the whole credits section */
.credits-wrap {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
}

/* Top text area (title + paragraph + optional button) */
.credits-header {
    text-align: center;
    margin-bottom: 2rem;
}

.credits-cta {
    margin-top: 1.25rem;
}

/* List container (the “table-like” box) */
.credits-list {
    margin-top: 2rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    background: var(--bg-surface, rgba(255, 255, 255, 0.03));
}

/* One row = one credit explainer */
.credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
}

.credit-row:last-child {
    border-bottom: none;
}

/* Nice hover (optional but helps) */
.credit-row:hover {
    background: var(--bg-surface-hover, rgba(255, 255, 255, 0.05));
}

/* Left side (name + explanation) */
.credit-left {
    min-width: 0;
    /* allows text to wrap nicely */
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
}

.credit-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text-main, #fff);
    margin-bottom: 0.35rem;
    width: 150px;
    text-align: left;
}

.credit-desc {
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Right side (pill + “per page/per run”) */
.credit-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* The “X credits” pill */
.credits-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 0.6rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.19);
    color: var(--text-main, #fff);
    font-weight: 650;
    font-size: 0.85rem;
}

/* Muted “per page/per run/per row” */
.credits-muted {
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.9rem;
}

/* Optional note under the list */
.credits-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.16));
    border-radius: var(--radius-md, 14px);
    background: var(--bg-surface, rgba(255, 255, 255, 0.03));
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
}

/* Responsive: stack right side under left on small screens */
@media (max-width: 640px) {
    .credit-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .credit-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .credit-right {
        margin-top: 0.6rem;
    }
}

/* Base style for all SVG annotations */
.marker-annotation {
    position: absolute;
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 2px rgba(72, 97, 236, 0.3));
    z-index: 10;
}

/* Hand-drawn "rough" effect */
.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawIn 1s ease-out forwards;
}

@keyframes drawIn {
    to {
        stroke-dashoffset: 0;
    }
}

/* Playful Text Labels */
.marker-text {
    position: absolute;
    font-family: 'Comic Sans MS', 'Cursive', sans-serif;
    /* Fallback to playful fonts */
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2rem;
    transform: rotate(-5deg);
    z-index: 11;
    white-space: nowrap;
}

/* Specific Positions (Tweak these based on your screenshot) */
.arrow-1 {
    width: 60px;
    height: 80px;
    top: 13%;
    right: -46px;
    transform: rotate(45deg);
}

.arrow-connect {
    position: relative;
    width: 60px;
    height: 80px;
    padding-bottom: 10px;
    padding-top: 10px;
    display: none;
}

.text-1 {
    top: 7%;
    right: -112px;
    transform: rotate(0deg);
}

.arrow-2 {
    width: 60px;
    height: 80px;
    top: 55%;
    right: -46px;
    transform: rotate(45deg);
}

.text-2 {
    top: 49%;
    right: -112px;
    transform: rotate(0deg);
}

.arrow-3 {
    width: 60px;
    height: 80px;
    bottom: -17%;
    right: 40%;
    transform: rotate(-150deg);
    z-index: 13;
}

.text-3 {
    bottom: -24%;
    right: 47%;
    transform: rotate(0deg);
    width: 110px;
    text-wrap: auto;
}

.arrow-4 {
    width: 60px;
    height: 80px;
    bottom: -17%;
    right: 10%;
    transform: rotate(-150deg);
    z-index: 13;
}

.text-4 {
    bottom: -24%;
    right: 16%;
    transform: rotate(0deg);
    width: 110px;
    text-wrap: auto;
}

img.create-scraper {
    position: absolute;
    bottom: -20%;
    left: 0px;
    width: 40%;
    object-fit: contain;
    display: block;
    z-index: 12;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.data-container {
    position: absolute;
    bottom: -20%;
    right: 0px;
    width: 40%;
    object-fit: contain;
    display: block;
    z-index: 12;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

img.extracted-data {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive: Hide or scale annotations on small screens */
@media (max-width: 768px) {

    /* Reduce monitor frame padding on mobile */
    .monitor-frame {
        padding-left: 1rem;
        padding-right: 1rem;

    }

    .monitor-bezel {
        padding: 8px;
        border-radius: 12px;
    }

    .monitor-screen {
        border-radius: 6px;
    }

    .monitor-stand {
        height: 40px;
        margin-top: -10px;
    }

    .monitor-base {
        height: 6px;
    }

    /* Position create-scraper ABOVE monitor */
    img.create-scraper {
        position: relative;
        width: 80%;
        box-shadow: none;
    }

    /* Position extracted-data BELOW monitor */
    .data-container {
        position: relative;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-shadow: none;
    }

    .arrow-1 {
        width: 60px;
        height: 80px;
        top: 1%;
        right: -11px;
        transform: rotate(20deg);
    }

    .text-1 {
        top: -12%;
        right: -12px;
    }

    .arrow-2 {
        width: 60px;
        height: 80px;
        top: 55%;
        right: 25px;
    }

    .text-2 {
        top: 48%;
        right: -12px;

    }

    .arrow-3 {
        bottom: -9%;
        right: 40%;
    }

    .text-3 {
        bottom: -14%;
        right: 45%;
    }

    .arrow-4 {
        bottom: -9%;
        right: 10%;
    }

    .text-4 {
        bottom: -14%;
        right: 14%;
    }

    .arrow-connect {
        display: block;
    }
}

@media (max-width: 700px) {

    .arrow-1 {
        width: 60px;
        height: 80px;
        top: 1%;
        right: -11px;
        transform: rotate(20deg);
    }

    .text-1 {
        top: -12%;
        right: -12px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-2 {
        width: 60px;
        height: 80px;
        top: 55%;
        right: 25px;
    }

    .text-2 {
        top: 48%;
        right: -12px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-3 {
        bottom: -14%;
        right: 40%;
    }

    .text-3 {
        bottom: -19%;
        right: 45%;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-4 {
        bottom: -14%;
        right: 10%;
    }

    .text-4 {
        bottom: -19%;
        right: 14%;
        font-size: 0.8rem;
        line-height: 1rem;
        width: 90px;
    }

}

@media (max-width: 580px) {

    .arrow-1 {
        width: 60px;
        height: 80px;
        top: -5%;
        right: -25px;
        transform: rotate(20deg);
    }

    .text-1 {
        top: -20%;
        right: -12px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-2 {
        width: 60px;
        height: 80px;
        top: 50%;
        right: 0px;
    }

    .text-2 {
        top: 42%;
        right: -12px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-3 {
        bottom: -19%;
        right: 40%;
    }

    .text-3 {
        bottom: -24%;
        right: 45%;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-4 {
        bottom: -19%;
        right: 10%;
    }

    .text-4 {
        bottom: -24%;
        right: 15%;
        font-size: 0.8rem;
        line-height: 1rem;
        width: 90px;
    }
}

@media (max-width: 500px) {

    img.create-scraper {
        width: 100%;
    }

    /* Position extracted-data BELOW monitor */
    .data-container {
        padding-left: 0;
        padding-right: 0;
    }

    .arrow-1 {
        width: 60px;
        height: 80px;
        top: -7%;
        right: -30px;
        transform: rotate(20deg);
    }

    .text-1 {
        top: -25%;
        right: -12px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-2 {
        width: 60px;
        height: 80px;
        top: 45%;
        right: -20px;
    }

    .text-2 {
        top: 34%;
        right: -12px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-3 {
        bottom: -25%;
        right: 40%;
    }

    .text-3 {
        bottom: -32%;
        right: 46%;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-4 {
        bottom: -25%;
        right: 10%;
    }

    .text-4 {
        bottom: -32%;
        right: 17%;
        font-size: 0.8rem;
        line-height: 1rem;
        width: 90px;
    }
}

@media (max-width: 400px) {

    .arrow-3 {
        bottom: -33%;
        right: 43%;
    }

    .text-3 {
        bottom: -39%;
        right: 49%;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-4 {
        bottom: -38%;
        right: 11%;
    }

    .text-4 {
        bottom: -47%;
        right: 19%;
        font-size: 0.8rem;
        line-height: 1rem;
        width: 90px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {

    img.create-scraper,
    .data-container {
        width: 45%;
    }

    .arrow-1 {
        width: 60px;
        height: 80px;
        top: 10%;
        right: -49px;
    }

    .text-1 {
        top: 2%;
        right: -102px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-2 {
        width: 60px;
        height: 80px;
        top: 50%;
        right: -49px;
    }

    .text-2 {
        top: 44%;
        right: -102px;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-3 {
        bottom: -22%;
        right: 40%;
    }

    .text-3 {
        bottom: -29%;
        right: 47%;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .arrow-4 {
        bottom: -22%;
        right: 10%;
    }

    .text-4 {
        bottom: -29%;
        right: 16%;
        font-size: 0.8rem;
        line-height: 1rem;
        width: 90px;
    }

    .step-item {
        height: 324px;
    }

    .step-item.important {
        height: 350px;
    }
}

/* --- Popup Styles --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.popup-overlay.hidden .popup-container {
    transform: scale(0.9);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--text-main);
}

.popup-content h2 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.popup-content>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.beta-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.thank-you-message {
    text-align: center;
    padding: 2rem 0;
}

.thank-you-message.hidden {
    display: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: #10b981;
    margin: 0 auto 1.5rem;
    display: block;
}

.thank-you-message h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.thank-you-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.thank-you-message .btn {
    margin: 0 auto;
}