* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #08080d;
    --card: #101017;
    --card-light: #15151e;
    --text: #f4f1ea;
    --muted: #9996a5;
    --accent: #b69cff;
    --accent-light: #d4c5ff;
    --border: rgba(255, 255, 255, 0.09);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, #211a34 0%, #08080d 40%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    z-index: 100;
}

.navbar {
    width: min(1180px, 92%);
    margin: auto;
    padding: 26px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo span {
    color: var(--accent);
    font-size: 25px;
    margin-right: 8px;
}

.status {
    font-size: 13px;
    color: #bdb9c9;

    display: flex;
    gap: 8px;
    align-items: center;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #75dca4;
    box-shadow: 0 0 12px #75dca4;
}

main {
    width: min(1180px, 92%);
    margin: auto;
}

.hero {
    text-align: center;
    padding: 75px 10px 55px;
}

.eyebrow,
.small-label {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -4px;
    margin: 22px 0;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-text {
    max-width: 650px;
    margin: auto;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

.privacy-badge {
    display: inline-block;
    margin-top: 25px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255,255,255,0.035);
    color: #bbb7c5;
    font-size: 12px;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.memory-card,
.output-card {
    min-height: 490px;
    padding: 28px;
    background: rgba(16,16,23,0.8);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(15px);
}

.card-heading,
.output-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

h2 {
    font-size: 23px;
    margin-top: 7px;
}

.ghost-icon {
    font-size: 34px;
    opacity: 0.8;
}

textarea {
    width: 100%;
    height: 250px;
    margin-top: 25px;
    padding: 18px;

    resize: none;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #0a0a10;
    color: var(--text);

    font-size: 15px;
    line-height: 1.7;

    outline: none;
}

textarea:focus {
    border-color: rgba(182,156,255,0.6);
}

textarea::placeholder {
    color: #666472;
}

.controls {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-top: 18px;
}

.select-wrapper {
    flex: 1;
}

.select-wrapper label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 7px;
}

select {
    width: 100%;
    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #0b0b11;
    color: #ddd9e4;

    outline: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

#generateBtn {
    height: 43px;
    padding: 0 20px;

    border-radius: 10px;

    background: var(--accent);
    color: #120e1b;

    font-weight: 700;

    transition: 0.2s;
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182,156,255,0.2);
}

#generateBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.icon-button {
    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255,255,255,0.03);
    color: #aaa7b5;
}

.output-text {
    min-height: 330px;
    margin-top: 25px;

    color: #d0ccd7;
    line-height: 1.8;
    font-size: 15px;

    white-space: pre-wrap;
}

.placeholder {
    color: #5e5c68;
}

.output-footer {
    display: flex;
    gap: 10px;
    color: #696674;
    font-size: 11px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.loader {
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--muted);
    font-size: 13px;
}

.loader-orbit {
    width: 45px;
    height: 45px;

    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);

    border-radius: 50%;

    animation: spin 1s linear infinite;

    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.memory-wall-section {
    margin-top: 90px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.clear-btn {
    background: transparent;
    color: #777482;
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: 9px;
}

.memory-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.memory-item {
    padding: 20px;

    border-radius: 15px;
    border: 1px solid var(--border);

    background: rgba(255,255,255,0.025);

    transition: 0.2s;
}

.memory-item:hover {
    transform: translateY(-3px);
    border-color: rgba(182,156,255,0.3);
}

.memory-date {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 1.5px;
}

.memory-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

.memory-item p {
    color: #888593;
    font-size: 13px;
    line-height: 1.6;
}

.about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 90px 0;
}

.about-card {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255,255,255,0.02);
}

.about-icon {
    font-size: 25px;
}

.about-card h3 {
    margin: 16px 0 9px;
}

.about-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

footer {
    text-align: center;
    padding: 35px 15px;
    border-top: 1px solid var(--border);
    color: #595762;
    font-size: 12px;
}

footer span {
    color: var(--accent);
}

.fog {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.05;
    background: #b69cff;
    pointer-events: none;
}

.fog-one {
    top: 10%;
    left: -300px;
}

.fog-two {
    bottom: 10%;
    right: -300px;
}

@media (max-width: 800px) {

    .workspace,
    .memory-wall,
    .about {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 45px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #generateBtn {
        width: 100%;
    }

    .memory-card,
    .output-card {
        min-height: auto;
    }
}