/* Recaris - public site (dark theme, brand #FF952A) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0d1117;
    --bg2: #151b23;
    --bg3: #212a35;
    --line: rgba(255, 255, 255, .08);
    --text: #e6edf3;
    --text-soft: #98a4b1;
    --primary: #FF952A;
    --primary-dim: #d97717;
    --success: #3EFCA4;
    --danger: #ff6b6b;
    --warn: #ffd166;
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 72rem;
    --glow: 0 0 24px rgba(255, 149, 42, .18);
    --shadow: 0 20px 48px rgba(0, 0, 0, .38);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

h1, h2, h3 {
    margin: 0 0 .65em;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    background: var(--bg3); padding: .15rem .5rem; border-radius: 6px;
    font-size: .95em; color: var(--primary); font-weight: 600;
}
.muted { color: var(--text-soft); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* header ----------------------------------------------------- */
.site-header {
    position: relative;
    background:
        radial-gradient(60rem 24rem at 70% -10%, rgba(255, 149, 42, .10), transparent 60%),
        radial-gradient(40rem 20rem at 10% -20%, rgba(217, 119, 23, .12), transparent 60%),
        linear-gradient(180deg, #1b140c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2.75rem;
}
.site-header.hero { padding-bottom: 4.5rem; }
.site-header nav {
    display: flex; align-items: center; gap: 1.5rem;
    padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.logo {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; border-radius: 9px;
    background: linear-gradient(135deg, rgba(255, 149, 42, .16), rgba(217, 119, 23, .10));
    border: 1.5px solid var(--primary);
    color: var(--primary); font-weight: 800; box-shadow: var(--glow);
}
.links { display: flex; gap: .3rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.links a {
    color: var(--text-soft); font-weight: 600; font-size: .94rem;
    padding: .5rem .7rem; border-radius: 999px; border-bottom: none;
    transition: color .15s ease, background .15s ease;
}
.links a.active, .links a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .06); }
.links a.account-link {
    margin-left: .4rem;
    color: var(--primary); border: 1px solid rgba(255, 149, 42, .4);
    border-radius: 999px; padding: .5rem 1.1rem;
}
.links a.account-link:hover { background: rgba(255, 149, 42, .1); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

.welcome { padding-top: 1.5rem; }
.welcome h1 { margin: 1rem 0 .5rem; font-size: clamp(2.1rem, 4.4vw, 2.75rem); max-width: 40rem; }
.site-header.hero .welcome h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); max-width: 46rem; }
.welcome .slogan { color: var(--text-soft); font-size: 1.14rem; margin: 0; max-width: 46rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.85rem; align-items: stretch; }

/* layout ----------------------------------------------------- */
main { padding: 2.75rem 1.25rem 4rem; }
section { margin-bottom: 3.5rem; }
.section-header h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.section-header p { margin: 0 0 1.25rem; color: var(--text-soft); max-width: 46rem; font-size: 1.05rem; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* stat strip (trust-strip pattern) ---------------------------- */
.stat-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    margin-top: -2.75rem; position: relative; z-index: 1;
    background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.stat {
    padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .2rem;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.stat-label { color: var(--text-soft); font-size: .88rem; }

/* cards ------------------------------------------------------ */
.cards, .news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; }
.card {
    background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: rgba(255, 149, 42, .35); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { margin: .25rem 0 0; color: var(--text-soft); }
.card ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--text-soft); }

.feature-cards { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.feature-icon { font-size: 1.7rem; margin-bottom: .6rem; }

/* rank cards ------------------------------------------------- */
.rank-card { border-top: 3px solid var(--primary-dim); }
.rank-card strong { color: var(--primary); font-size: 1.05rem; }
.staff-list { list-style: none; padding: 0; display: flex; gap: .85rem; flex-wrap: wrap; }
.staff-list li { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.2rem; font-weight: 700; box-shadow: var(--shadow-sm); }

/* steps ------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.step {
    display: flex; gap: 1rem; background: var(--bg2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.step h3 { margin: 0 0 .35rem; font-size: 1.1rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--text-soft); }
.step-number {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: rgba(255, 149, 42, .12); border: 1.5px solid var(--primary);
    color: var(--primary); font-weight: 800; font-size: 1.1rem;
}

/* banner ----------------------------------------------------- */
.banner {
    display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap;
    background:
        radial-gradient(30rem 16rem at 90% 0%, rgba(255, 149, 42, .08), transparent 60%),
        var(--bg2);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem;
    box-shadow: var(--shadow-sm);
}
.banner-text { flex: 2 1 24rem; }
.banner-text h2 { margin: 0 0 .6rem; font-size: 1.7rem; letter-spacing: -.02em; }
.banner-text p { color: var(--text-soft); margin: 0 0 1.25rem; }
.banner-side { flex: 1 1 16rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.35rem 1.5rem; }
.banner-side h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; }
.mini-board { margin: 0; padding-left: 1.4rem; }
.mini-board li { padding: .25rem 0; }
.mini-board .tag { color: var(--primary); font-weight: 700; }
.mini-board .muted { float: right; }

/* status pills ----------------------------------------------- */
.status { font-size: .85rem; font-weight: 700; padding: .12rem .65rem; border-radius: 999px; white-space: nowrap; }
.status.on { background: rgba(62, 252, 164, .12); color: var(--success); }
.status.off { background: rgba(255, 107, 107, .12); color: var(--danger); }

/* buttons ---------------------------------------------------- */
.button {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 48px; padding: .7rem 1.6rem; border-radius: 999px;
    font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 1rem;
    font-family: inherit; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.button.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dim)); color: #1a0e02; box-shadow: var(--glow); }
.button.primary:hover { filter: brightness(1.08); transform: translateY(-2px); text-decoration: none; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.button.danger { background: rgba(255, 107, 107, .14); color: var(--danger); border-color: rgba(255, 107, 107, .4); }
.button.danger:hover { background: rgba(255, 107, 107, .25); }
.button.big { padding: .9rem 2rem; font-size: 1.05rem; }
.button .ip { font-size: 1.1rem; letter-spacing: .5px; }
.button .hint { font-size: .72rem; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }
.button.copied .hint { opacity: 1; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* tables ----------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; background: var(--bg2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg3); color: var(--text-soft); font-size: .84rem; text-transform: uppercase; letter-spacing: .6px; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255, 149, 42, .04); }

/* forms ------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 28rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; color: var(--text-soft); }
.form input, .form textarea, .form select {
    background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--text); padding: .65rem .85rem; font-size: 1rem; font-family: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.inline-form { display: inline-block; }

/* flash ------------------------------------------------------ */
.flash { padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 600; }
.flash-success { background: rgba(62, 252, 164, .12); color: var(--success); border: 1px solid rgba(62, 252, 164, .25); }
.flash-error { background: rgba(255, 107, 107, .12); color: var(--danger); border: 1px solid rgba(255, 107, 107, .25); }

/* tickets ---------------------------------------------------- */
.ticket-thread { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.75rem; }
.ticket-message { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.ticket-message.staff { border-left: 3px solid var(--primary); }
.ticket-message.system { background: transparent; border-style: dashed; color: var(--text-soft); box-shadow: none; }
.ticket-message .meta { display: flex; gap: .6rem; align-items: center; margin-bottom: .35rem; flex-wrap: wrap; }
.badge { background: rgba(255, 149, 42, .15); color: var(--primary); font-size: .75rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; }
.ticket-image { max-width: 20rem; max-height: 15rem; border-radius: var(--radius-sm); margin-top: .5rem; display: block; }

/* misc ------------------------------------------------------- */
.rules li { margin-bottom: .6rem; }
.news-list { list-style: none; padding: 0; }
.news-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.article-body { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); }

/* footer ----------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 2.75rem 0 1.5rem; margin-top: 2rem; }
.site-footer .cols { display: flex; gap: 4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.site-footer .tagline-col { max-width: 20rem; }
.site-footer .tagline-col p { margin: 0; font-size: .95rem; }
.site-footer h4 { margin: 0 0 .6rem; color: var(--text); }
.site-footer .col { display: flex; flex-direction: column; gap: .4rem; }
.site-footer .col a { color: var(--text-soft); }
.site-footer .col a:hover { color: var(--text); }
.site-footer .note { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-soft); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

/* responsive ------------------------------------------------- */
@media (max-width: 48rem) {
    .menu-toggle { display: block; margin-left: auto; }
    .links { display: none; width: 100%; flex-direction: column; gap: .3rem; align-items: flex-start; }
    .links.open { display: flex; }
    .links a { width: 100%; }
    .site-header nav { flex-wrap: wrap; }
    .columns { grid-template-columns: 1fr; }
    .welcome h1, .site-header.hero .welcome h1 { font-size: 2rem; }
    .stat-strip { margin-top: -1.75rem; grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .stat:nth-child(2n) { border-right: 0; }
    .banner { padding: 1.5rem; }
    .table { display: block; overflow-x: auto; }
}
