/*
 * /assets/css/app.css
 * ReelFlow UI 2026
 * Premium dark copper/gold design inspired by TopAudio.
 */

/* ==========================================================================
   Design tokens
========================================================================== */

:root {
    --bg: #080807;
    --bg-2: #100d0a;
    --bg-3: #17110c;
    --bg-4: #20150e;

    --surface: rgba(255, 255, 255, .055);
    --surface-2: rgba(255, 255, 255, .075);
    --surface-3: rgba(255, 255, 255, .105);
    --surface-dark: rgba(0, 0, 0, .18);

    --line: rgba(255, 255, 255, .105);
    --line-2: rgba(255, 255, 255, .18);
    --line-gold: rgba(247, 193, 109, .28);

    --text: #fff7ec;
    --soft: rgba(255, 247, 236, .74);
    --muted: rgba(255, 247, 236, .52);
    --faint: rgba(255, 247, 236, .34);

    --gold: #f7c16d;
    --gold-2: #ffd994;
    --orange: #ff8a52;
    --copper: #c97847;
    --copper-2: #a96035;
    --green: #77dfaa;
    --red: #ff7070;
    --violet: #9277ff;
    --blue: #7ab8ff;

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 30px;
    --radius-xl: 38px;

    --container: 1240px;

    --shadow-soft: 0 16px 48px rgba(0, 0, 0, .22);
    --shadow: 0 24px 80px rgba(0, 0, 0, .32);
    --shadow-gold: 0 18px 48px rgba(255, 138, 82, .20);

    --ease: .18s ease;
}

/* ==========================================================================
   Reset / base
========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% -4%, rgba(255, 138, 82, .20), transparent 34rem),
        radial-gradient(circle at 88% 5%, rgba(247, 193, 109, .15), transparent 32rem),
        radial-gradient(circle at 70% 54%, rgba(146, 119, 255, .10), transparent 36rem),
        linear-gradient(135deg, var(--bg), var(--bg-2) 48%, #070707);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .065) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .85), transparent 42rem),
        linear-gradient(to bottom, transparent, rgba(8, 8, 7, .82) 82%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
video,
svg {
    max-width: 100%;
}

::selection {
    background: rgba(247, 193, 109, .35);
    color: var(--text);
}

/* ==========================================================================
   Layout primitives
========================================================================== */

.container {
    width: min(var(--container), calc(100% - 36px));
    margin-inline: auto;
}

.section {
    padding: 62px 0;
}

.section.compact {
    padding: 42px 0;
}

.section-head {
    margin-bottom: 24px;
}

.kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(247, 193, 109, .22);
    border-radius: 999px;
    background: rgba(247, 193, 109, .08);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 920px;
    margin: 18px 0 14px;
    font-size: clamp(2.55rem, 6.4vw, 5.45rem);
    line-height: .91;
    letter-spacing: -.085em;
}

h2 {
    max-width: 780px;
    margin: 10px 0 0;
    font-size: clamp(1.9rem, 3.8vw, 3.35rem);
    line-height: .98;
    letter-spacing: -.07em;
}

h3 {
    letter-spacing: -.04em;
}

.dim {
    color: rgba(255, 247, 236, .43);
}

.lead {
    max-width: 760px;
    margin: 0;
    color: var(--soft);
    font-size: clamp(.98rem, 1.35vw, 1.14rem);
    line-height: 1.66;
    letter-spacing: -.024em;
    font-weight: 520;
}

.sub {
    margin: 10px 0 0;
    max-width: 700px;
    color: var(--soft);
    line-height: 1.62;
    font-size: .98rem;
}

/* ==========================================================================
   Topbar
========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 7, .74);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.08rem;
    font-weight: 950;
    letter-spacing: -.045em;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #17100b;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: var(--shadow-gold);
    font-weight: 950;
}

.brand-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 760;
    letter-spacing: -.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--soft);
    font-size: .86rem;
    font-weight: 760;
    transition: var(--ease);
}

.nav a:hover {
    background: rgba(255, 255, 255, .075);
    color: var(--text);
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Buttons / badges / chips
========================================================================== */

.btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: .88rem;
    font-weight: 850;
    white-space: nowrap;
    transition: var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-2);
    background: rgba(255, 255, 255, .095);
}

.btn-primary {
    border: 0;
    color: #17100b;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-2), var(--orange));
}

.btn-ghost {
    background: transparent;
}

.btn-soft {
    border-color: rgba(247, 193, 109, .24);
    background: rgba(247, 193, 109, .09);
    color: var(--gold);
}

.btn-block {
    width: 100%;
}

.badge,
.status-pill,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
}

.badge {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(247, 193, 109, .25);
    background: rgba(247, 193, 109, .09);
    color: var(--gold);
    font-size: .74rem;
    font-weight: 900;
}

.status-pill {
    min-height: 30px;
    padding: 0 10px;
    color: var(--green);
    background: rgba(119, 223, 170, .10);
    border: 1px solid rgba(119, 223, 170, .18);
    font-size: .72rem;
    font-weight: 900;
}

.tag {
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 850;
}

.tag.hot {
    color: var(--gold);
    background: rgba(247, 193, 109, .08);
    border-color: rgba(247, 193, 109, .20);
}

.tag.green {
    color: var(--green);
    background: rgba(119, 223, 170, .08);
    border-color: rgba(119, 223, 170, .18);
}

/* ==========================================================================
   Hero
========================================================================== */

.hero {
    padding: 58px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    gap: 24px;
    align-items: center;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(247, 193, 109, .13), transparent 18rem),
        rgba(255, 255, 255, .055);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel-head {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, .026);
}

.hero-panel-head strong {
    display: block;
    font-size: .92rem;
    letter-spacing: -.03em;
}

.hero-panel-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 720;
}

.idea-preview-list {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.idea-preview {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, .16);
    transition: var(--ease);
}

.idea-preview:hover {
    border-color: var(--line-2);
    background: rgba(0, 0, 0, .22);
}

.idea-preview small {
    display: block;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.idea-preview strong {
    display: block;
    margin-top: 7px;
    font-size: .94rem;
    letter-spacing: -.035em;
}

.idea-preview p {
    margin: 7px 0 0;
    color: var(--soft);
    font-size: .82rem;
    line-height: 1.48;
}

/* ==========================================================================
   Cards / grids
========================================================================== */

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .052);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.card.highlight {
    border-color: rgba(247, 193, 109, .32);
    background:
        radial-gradient(circle at 80% 0, rgba(247, 193, 109, .13), transparent 14rem),
        rgba(255, 255, 255, .066);
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #17100b;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    margin-bottom: 14px;
    font-weight: 950;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: -.038em;
}

.card p {
    margin: 0;
    color: var(--soft);
    line-height: 1.58;
    font-size: .88rem;
}

/* ==========================================================================
   Idea cards
========================================================================== */

.idea-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.idea-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(247, 193, 109, .09), transparent 12rem),
        rgba(255, 255, 255, .052);
    padding: 16px;
    overflow: hidden;
    transition: var(--ease);
}

.idea-card:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 193, 109, .28);
    background:
        radial-gradient(circle at 0 0, rgba(247, 193, 109, .13), transparent 13rem),
        rgba(255, 255, 255, .072);
}

.idea-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.idea-card h3 {
    margin: 0 0 8px;
    letter-spacing: -.04em;
    font-size: 1rem;
}

.idea-card p {
    margin: 0;
    color: var(--soft);
    line-height: 1.54;
    font-size: .88rem;
}

.idea-score {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
}

.idea-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty {
    border: 1px dashed var(--line-2);
    border-radius: 24px;
    padding: 20px;
    color: var(--soft);
    background: rgba(255, 255, 255, .035);
}

/* ==========================================================================
   Pricing
========================================================================== */

.pricing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.price-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .052);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.price-card.featured {
    border-color: rgba(247, 193, 109, .36);
    background:
        radial-gradient(circle at 80% 0, rgba(247, 193, 109, .16), transparent 13rem),
        rgba(255, 255, 255, .072);
}

.plan-label {
    display: inline-flex;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    align-items: center;
    background: rgba(247, 193, 109, .10);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
}

.price-card h3 {
    margin: 14px 0 6px;
    font-size: 1.1rem;
    letter-spacing: -.04em;
}

.price-card p {
    margin: 0;
    color: var(--soft);
    font-size: .84rem;
    line-height: 1.52;
}

.price {
    margin-top: 18px;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -.07em;
}

.price span {
    font-size: .86rem;
    color: var(--muted);
    letter-spacing: -.02em;
}

.plan-features {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.plan-features li {
    color: var(--soft);
    font-size: .82rem;
    line-height: 1.45;
    display: flex;
    gap: 8px;
}

.plan-features li::before {
    content: "✓";
    color: var(--green);
    font-weight: 950;
}

/* ==========================================================================
   Tables
========================================================================== */

.table-wrap,
.provider-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .045);
}

.table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-size: .88rem;
}

.table th {
    color: var(--gold);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
    background: rgba(255, 255, 255, .026);
}

.table td {
    color: var(--soft);
}

.table tr:last-child td {
    border-bottom: 0;
}

.table strong {
    color: var(--text);
}

/* ==========================================================================
   Forms / workspace future support
========================================================================== */

.form-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .052);
    padding: 18px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.field label {
    color: var(--soft);
    font-size: .82rem;
    font-weight: 850;
}

.input,
.textarea,
.select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    padding: 12px 13px;
    transition: var(--ease);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(247, 193, 109, .38);
    box-shadow: 0 0 0 4px rgba(247, 193, 109, .08);
}

.textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--faint);
}

/* ==========================================================================
   Dashboard future support
========================================================================== */

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    border-right: 1px solid var(--line);
    background: rgba(0, 0, 0, .16);
    padding: 18px;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.sidebar-nav a {
    min-height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--soft);
    font-size: .88rem;
    font-weight: 800;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(247, 193, 109, .09);
    color: var(--gold);
}

.main-content {
    min-width: 0;
    padding: 26px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .052);
    padding: 16px;
}

.metric small {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 850;
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 1.6rem;
    letter-spacing: -.06em;
}

/* ==========================================================================
   Footer
========================================================================== */

.footer {
    padding: 34px 0;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.footer-inner {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Utility classes
========================================================================== */

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.text-soft { color: var(--soft); }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

.hidden {
    display: none !important;
}

/* ==========================================================================
   Responsive
========================================================================== */

@media (max-width: 1120px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .metric-grid,
    .grid4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .idea-grid,
    .grid3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .topbar-inner {
        min-height: 66px;
    }

    .nav {
        display: none;
    }

    .actions .btn-ghost {
        display: none;
    }

    .hero {
        padding: 42px 0 22px;
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 4rem);
        letter-spacing: -.078em;
    }

    h2 {
        font-size: clamp(1.85rem, 9vw, 3rem);
    }

    .section {
        padding: 44px 0;
    }

    .grid2,
    .grid3,
    .grid4,
    .idea-grid,
    .pricing,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        border-radius: 24px;
    }

    .hero-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .main-content {
        padding: 18px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-sub {
        display: none;
    }

    .actions .btn {
        min-height: 38px;
        padding: 0 12px;
        font-size: .8rem;
    }

    .badge {
        white-space: normal;
        text-align: center;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tag,
    .badge {
        justify-content: flex-start;
    }

    .idea-actions .btn {
        width: 100%;
    }
}
