:root {
    --bg: #07111f;
    --panel: rgba(10, 25, 47, 0.76);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #f5f7fb;
    --muted: #9fb3c8;
    --primary: #68e1fd;
    --secondary: #a78bfa;
    --accent: #6ee7b7;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(104, 225, 253, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.12), transparent 32%),
        linear-gradient(180deg, #040814 0%, #07111f 45%, #081524 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.55), transparent 90%);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(4, 10, 24, 0.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

.brand-kicker,
.panel-kicker,
.eyebrow,
.pricing-name,
.footer-title,
.message-role {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--primary);
}

.brand {
    display: inline-block;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a,
.site-footer p,
.hero-text,
.feature-card p,
.feature-card li,
.pricing-desc,
.payment-list li,
.message p,
.status-text,
.image-result p,
.payment-card li {
    color: var(--muted);
}

.nav-links a {
    text-decoration: none;
}

.hero,
.section {
    padding: 88px 0;
}

.hero-grid,
.demo-grid,
.payment-grid,
.footer-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
}

.hero-copy h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.08;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-top: 16px;
}

.hero-copy h1 span,
.section-heading h2 {
    background: linear-gradient(90deg, #fff 0%, var(--primary) 45%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 24px 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8bf3ff);
    color: #04111f;
    box-shadow: 0 12px 30px rgba(104, 225, 253, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.hero-points,
.payment-list,
.feature-card ul,
.pricing-card ul,
.payment-card ol {
    padding-left: 18px;
}

.hero-points {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.glass-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-card {
    overflow: hidden;
}

.hero-card-head {
    display: flex;
    gap: 8px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #fb7185; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #4ade80; }

.hero-card-body,
.panel,
.feature-card,
.pricing-card,
.payment-card {
    padding: 24px;
}

.mini-panel {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 14px;
}

.mini-panel.accent {
    background: linear-gradient(135deg, rgba(167,139,250,0.16), rgba(110,231,183,0.08));
}

.mini-title {
    margin-top: 0;
    font-weight: 700;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.metrics div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
}

.metrics strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-top: 14px;
}

.feature-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card h3,
.panel-header h3,
.pricing-card h3,
.payment-section h2 {
    margin-top: 0;
}

.demo-grid,
.payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(104, 225, 253, 0.12);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-alt {
    background: rgba(167, 139, 250, 0.14);
    color: #d9c8ff;
}

.chat-messages {
    min-height: 320px;
    max-height: 420px;
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
}

.message {
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.message.assistant {
    background: rgba(104,225,253,0.08);
}

.message.user {
    background: rgba(167,139,250,0.1);
}

.message p {
    margin: 10px 0 0;
    white-space: pre-wrap;
    line-height: 1.65;
}

.stack-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

label {
    font-weight: 600;
}

textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font: inherit;
}

textarea:focus {
    outline: 2px solid rgba(104,225,253,0.45);
    border-color: transparent;
}

.status-text {
    min-height: 22px;
    margin: 0;
    font-size: 0.94rem;
}

.image-result {
    min-height: 220px;
    border-radius: 24px;
    border: 1px dashed rgba(255,255,255,0.16);
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.02);
}

.result-card {
    width: 100%;
}

.result-card img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

.result-card a {
    color: var(--primary);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-highlight {
    border-color: rgba(104, 225, 253, 0.3);
    transform: translateY(-8px);
}

.pricing-card .btn {
    margin-top: auto;
}

.payment-card ol {
    display: grid;
    gap: 12px;
}

.site-footer {
    padding: 26px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .hero-grid,
    .demo-grid,
    .payment-grid,
    .feature-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav,
    .panel-header,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero,
    .section {
        padding: 64px 0;
    }

    .hero-grid,
    .demo-grid,
    .payment-grid,
    .feature-grid,
    .pricing-grid,
    .footer-grid,
    .metrics {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }
}
