/* DIFRXN aesthetic: black core, red/gold highlights, luxe grain */
:root {
    --bg: #050308;
    --panel: #0c0911;
    --panel-2: #15101d;
    --text: #f7f2ff;
    --muted: #b7aecd;
    --red: #e94560;
    --gold: #f2b441;
    --blue: #5ac8ff;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --glow: 0 0 30px rgba(233,69,96,0.35), 0 0 60px rgba(242,180,65,0.35);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--sans);
    background: radial-gradient(circle at 18% 10%, rgba(233,69,96,0.2), transparent 30%),
                radial-gradient(circle at 60% 80%, rgba(242,180,65,0.15), transparent 40%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 64px;
}

header.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 26px;
    position: sticky;
    top: 0;
    background: rgba(5,3,8,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.brand .glyph {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: conic-gradient(from 120deg, rgba(233,69,96,0.8), rgba(242,180,65,0.6), rgba(233,69,96,0.8));
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}
.brand .glyph::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: rgba(0,0,0,0.5);
    filter: blur(8px);
}
.brand .name {
    font-size: 18px;
    letter-spacing: 3px;
    font-weight: 800;
}
.nav-links { display: flex; gap: 14px; align-items: center; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); border-color: rgba(255,255,255,0.08); }

.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    color: #0b070f;
    background: linear-gradient(120deg, var(--red), var(--gold));
    box-shadow: var(--glow);
    transition: transform 140ms ease, filter 140ms ease;
}
.btn:hover { transform: translateY(-1px) scale(1.01); filter: brightness(1.05); }
.btn.ghost { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: none; border: 1px solid rgba(255,255,255,0.1); }
.btn.outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.12); box-shadow: none; }

main { padding: 28px; display: grid; gap: 20px; }

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    padding: 28px;
    background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 22px 80px rgba(0,0,0,0.65);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width=\"160\" height=\"160\" viewBox=\"0 0 160 160\" fill=\"none\"><path d=\"M0 80 L40 0 L120 0 L160 80 L120 160 L40 160 Z\" stroke=\"rgba(255,255,255,0.04)\" stroke-width=\"1\" fill=\"none\"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 46px); letter-spacing: -1px; }
.hero .lede { color: var(--muted); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual {
    background: radial-gradient(circle at 20% 20%, rgba(233,69,96,0.2), transparent 35%),
                radial-gradient(circle at 80% 80%, rgba(242,180,65,0.18), transparent 40%),
                var(--panel);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--glow);
}
.hero-visual canvas { width: 100%; border-radius: 12px; background: #040206; }

.section {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.6);
}
.section h2 { margin-top: 0; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.card {
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}
.pricing .plan {
    display: grid;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}
.pricing ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); }
.pricing li::before { content: '• '; color: var(--gold); }

.form-grid { display: grid; gap: 10px; }
input, select, textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: var(--sans);
}

.visual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.visual-card {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    box-shadow: var(--glow);
    display: grid;
    gap: 8px;
}
.visual-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(242,180,65,0.4);
}
.visual-card .title { font-weight: 800; }
.visual-card .pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(233,69,96,0.12); border: 1px solid rgba(233,69,96,0.4); font-size: 12px; font-weight: 700; }
.visual-card .pro { background: linear-gradient(120deg, var(--gold), #ffecb3); color: #0a050d; border: none; }

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
    font-size: 12px;
}

.muted { color: var(--muted); }
.workspace {
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
}
.tabs { display: flex; gap: 8px; }
.tabs button { border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: var(--text); padding: 8px 12px; cursor: pointer; }
.tabs button.active { border-color: var(--red); box-shadow: var(--glow); }

.viz-layout {
    display: grid;
    grid-template-columns: minmax(480px, 2fr) minmax(320px, 1fr);
    gap: 12px;
}
.viz-layout canvas { width: 100%; border-radius: 12px; background: #030106; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 80px rgba(0,0,0,0.65); }
.control-panel { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.control-panel .row { display: grid; gap: 6px; }
.control-panel label { display: flex; justify-content: space-between; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.control-panel input[type="range"] { width: 140px; accent-color: var(--gold); }
.control-panel .preset-group { display: flex; gap: 6px; flex-wrap: wrap; }
.control-panel textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text); border-radius: 12px; padding: 10px; font-family: var(--mono); }

.studio {
    display: grid;
    grid-template-columns: minmax(480px, 2fr) minmax(320px, 1fr);
    gap: 12px;
}
.status { color: var(--muted); font-family: var(--mono); font-size: 12px; }

footer {
    padding: 20px 28px;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(5,3,8,0.85);
}

@media (max-width: 920px) {
    .viz-layout, .studio { grid-template-columns: 1fr; }
    main { padding: 18px; }
}
@media (max-width: 640px) {
    header.nav { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero { padding: 18px; }
}
