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

:root {
    --bg: #05060a;
    --bg-2: #0b1018;
    --cyan: #5eead4;
    --cyan-2: #22d3ee;
    --gold: #fbbf24;
    --purple: #a78bfa;
    --green: #22c55e;
    --red: #ef4444;
    --text: #e6edf6;
    --muted: #8a97aa;
    --line: rgba(94, 234, 212, 0.16);
    --panel: rgba(255, 255, 255, 0.035);
    --panel-2: rgba(255, 255, 255, 0.055);
    --shadow: rgba(0, 0, 0, 0.42);
}

html,
body {
    min-height: 100%;
}

body {
    background:
        linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 280px),
        linear-gradient(135deg, #05060a 0%, #090b12 42%, #0d0a14 100%);
    color: var(--text);
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(94, 234, 212, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 70%);
}

#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.nav,
.hero,
.main-grid,
.cta,
.footer {
    position: relative;
    z-index: 1;
}

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

.logo,
.nav-btn,
.submit-btn,
.stat-num,
.stat-label,
.feedback-form label,
.feed-time,
.cta-btn,
.footer,
.char-count {
    font-family: "JetBrains Mono", "Courier New", monospace;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: signalPulse 2s infinite;
}

.logo-version {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.nav-btn,
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.24s ease, border-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
}

.nav-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 24px rgba(94, 234, 212, 0.18);
    transform: translateY(-2px);
}

.star-btn {
    border-color: rgba(251, 191, 36, 0.36);
    color: var(--gold);
}

.star-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.22);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: end;
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 32px 18px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--cyan);
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 22px;
    animation: fadeInUp 0.7s ease;
}

.hero-title {
    max-width: 740px;
    margin-bottom: 20px;
    font-size: 64px;
    line-height: 1.03;
    letter-spacing: 0;
}

.gradient-text {
    background: linear-gradient(135deg, #5eead4 0%, #22d3ee 42%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 610px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

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

.stat-card {
    min-height: 110px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px var(--shadow);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.stat-card:hover {
    border-color: rgba(94, 234, 212, 0.58);
    box-shadow: 0 22px 60px rgba(94, 234, 212, 0.08);
    transform: translateY(-3px);
}

.stat-num {
    margin-bottom: 7px;
    color: var(--cyan);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 24px;
    max-width: 1240px;
    margin: 30px auto 56px;
    padding: 0 32px;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 72px var(--shadow);
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.72;
}

.form-panel {
    padding: 34px;
}

.feed-panel {
    padding: 30px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
}

.panel-icon {
    color: var(--cyan);
    font-size: 18px;
}

.panel-icon.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    animation: livePulse 1.6s infinite;
}

.auth-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(94, 234, 212, 0.055);
}

.auth-title {
    color: var(--text);
    font-weight: 700;
}

.auth-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.auth-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.auth-btn {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(94, 234, 212, 0.5);
    border-radius: 8px;
    background: rgba(94, 234, 212, 0.14);
    color: var(--cyan);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.auth-btn.ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
}

.feedback-form .field {
    position: relative;
    margin-bottom: 22px;
}

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.optional {
    color: rgba(138, 151, 170, 0.68);
    text-transform: none;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    padding: 14px 16px;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.feedback-form textarea {
    min-height: 138px;
    resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(94, 234, 212, 0.04);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: rgba(138, 151, 170, 0.55);
}

.field-error {
    min-height: 17px;
    margin-top: 6px;
    color: #fca5a5;
    font-size: 12px;
}

.char-count {
    margin-top: 6px;
    text-align: right;
    color: var(--muted);
    font-size: 11px;
}

.rating {
    display: flex;
    gap: 8px;
}

.rating .star {
    width: 38px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(138, 151, 170, 0.34);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.rating .star:hover,
.rating .star.active {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.58);
    transform: translateY(-1px) scale(1.08);
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    min-height: 36px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
    border-color: rgba(94, 234, 212, 0.44);
    color: var(--text);
}

.pill.active {
    border-color: var(--cyan);
    background: rgba(94, 234, 212, 0.1);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(94, 234, 212, 0.14);
}

.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #5eead4 0%, #22d3ee 100%);
    color: #03131a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.submit-btn:hover {
    box-shadow: 0 14px 40px rgba(94, 234, 212, 0.34);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn-glow {
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transition: left 0.58s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

.form-note {
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 626px;
    overflow-y: auto;
    padding-right: 8px;
}

.feed-list::-webkit-scrollbar {
    width: 4px;
}

.feed-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--cyan);
}

.feed-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
    padding: 18px;
    animation: slideIn 0.4s ease;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.feed-card:hover {
    border-color: rgba(94, 234, 212, 0.34);
    background: rgba(94, 234, 212, 0.035);
    transform: translateX(3px);
}

.muted-card {
    color: var(--muted);
}

.feed-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #03131a;
    font-weight: 700;
}

.feed-meta {
    min-width: 0;
    flex: 1;
}

.feed-name {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 500;
}

.feed-time {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.feed-rating {
    color: var(--gold);
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
}

.feed-msg {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.cta {
    max-width: 1240px;
    margin: 0 auto 56px;
    padding: 0 32px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(167, 139, 250, 0.052));
    padding: 32px;
    backdrop-filter: blur(18px);
}

.cta h3 {
    margin-bottom: 6px;
    font-size: 26px;
    letter-spacing: 0;
}

.cta p {
    color: var(--muted);
}

.cta-btn {
    min-height: 46px;
    padding: 13px 26px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a0e00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cta-btn:hover {
    box-shadow: 0 14px 40px rgba(251, 191, 36, 0.34);
    transform: translateY(-2px);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(520px, calc(100vw - 32px));
    border: 1px solid var(--cyan);
    border-radius: 8px;
    background: rgba(10, 15, 25, 0.96);
    padding: 14px 22px;
    box-shadow: 0 0 34px rgba(94, 234, 212, 0.24);
    opacity: 0;
    transform: translateX(-50%) translateY(90px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

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

.toast-icon {
    color: var(--cyan);
    font-weight: 700;
}

.toast.error {
    border-color: var(--red);
    box-shadow: 0 0 34px rgba(239, 68, 68, 0.24);
}

.toast.error .toast-icon {
    color: var(--red);
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    padding: 28px 18px;
    text-align: center;
}

.footer-name {
    color: var(--gold);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes signalPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.48);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
    }
}

@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.56);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

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

@media (max-width: 700px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .nav-links {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-btn {
        flex: 1 1 auto;
    }

    .hero,
    .main-grid,
    .cta {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

    .form-panel,
    .feed-panel,
    .cta-inner {
        padding: 22px;
    }

    .feed-top {
        align-items: flex-start;
    }

    .feed-rating {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .hero-title {
        font-size: 36px;
    }

    .rating {
        gap: 4px;
    }

    .rating .star {
        width: 32px;
        font-size: 28px;
    }

    .cta-btn,
    .submit-btn {
        width: 100%;
    }

    .auth-box,
    .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
