/* ================================================================
   BotPlantão — Design System v2 (editorial · luxury · responsive)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@300;400;450;500;600;700&display=swap');

:root {
    /* Surface */
    --bg:             #07080d;
    --bg-2:           #0a0c14;
    --surface:        #10131e;
    --surface-2:      #161a28;
    --line:           rgba(214, 192, 138, 0.12);
    --line-2:         rgba(214, 192, 138, 0.22);
    --line-soft:      rgba(255, 255, 255, 0.06);

    /* Text */
    --text:           #ecedf2;
    --text-soft:      #b2b8c6;
    --text-muted:     #767d8d;
    --text-faint:     #4c5366;

    /* Gold scale */
    --gold-50:        #f8edcb;
    --gold-100:       #ecd9a0;
    --gold-200:       #e0c587;
    --gold-300:       #d0b070;
    --gold-400:       #b88f4d;
    --gold-500:       #8e6a2f;
    --gold-deep:      #543d18;

    /* Status */
    --ok:             #6fd49a;
    --warn:           #e7b86a;
    --err:            #ef6e6e;
    --info:           #8aa6ff;

    /* Gradients */
    --grad-gold:      linear-gradient(135deg, #f8edcb 0%, #d0b070 45%, #8e6a2f 100%);
    --grad-gold-soft: linear-gradient(135deg, rgba(248,237,203,.18), rgba(142,106,47,.08));
    --grad-bg:
        radial-gradient(1100px 700px at 85% -10%, rgba(184,143,77,.18), transparent 55%),
        radial-gradient(800px 600px at -10% 20%, rgba(90,120,220,.10), transparent 55%),
        radial-gradient(700px 500px at 50% 110%, rgba(184,143,77,.12), transparent 60%),
        linear-gradient(180deg, #07080d 0%, #0a0c14 100%);
    --grad-card:      linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
    --grad-card-hover:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));

    /* Shadows */
    --sh-1: 0 1px 0 rgba(255,255,255,.04) inset;
    --sh-2: 0 20px 60px -30px rgba(0,0,0,.7);
    --sh-3: 0 40px 90px -40px rgba(0,0,0,.85);
    --sh-gold: 0 18px 40px -16px rgba(184,143,77,.55), 0 0 0 1px rgba(248,237,203,.4) inset;

    /* Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;
    --r-2xl: 44px;

    /* Type */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Motion */
    --ease: cubic-bezier(.2,.7,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
*::selection { background: var(--gold-300); color: #1a1206; }

html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
}

body {
    min-height: 100vh;
    background: var(--grad-bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Subtle noise overlay for richness */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 .5em;
    font-feature-settings: "ss01", "ss02", "ss03";
}
h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 450;
}
h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.028em;
}
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--text-soft); font-size: 1rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-soft); line-height: 1.6; }

a { color: var(--gold-100); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-50); }

.muted { color: var(--text-muted); }
.accent {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 500;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .72rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold-200);
    font-weight: 500;
}
.eyebrow::before {
    content: ''; width: 24px; height: 1px;
    background: var(--grad-gold);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: rgba(7, 8, 13, 0.72);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px;
    max-width: 1240px;
    margin: 0 auto;
}
.brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.015em;
    color: var(--text);
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 500;
}
.brand-mark {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--grad-gold);
    display: grid; place-items: center;
    color: #1a1206;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 6px 18px -6px rgba(184,143,77,.55);
}
.brand span { color: var(--gold-100); font-style: italic; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 10px 18px;
    color: var(--text-soft);
    font-size: .92rem;
    font-weight: 500;
    border-radius: 999px;
    transition: all .25s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link--button { background: none; border: 0; cursor: pointer; font: inherit; }
.nav-link--primary {
    background: var(--grad-gold);
    color: #1a1206 !important;
    font-weight: 600;
    box-shadow: var(--sh-gold);
    margin-left: 8px;
}
.nav-link--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 42px; height: 42px;
    cursor: pointer;
    padding: 0;
    color: var(--text);
}
.nav-toggle span {
    display: block; width: 18px; height: 1.5px;
    background: currentColor;
    margin: 4px auto;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(7,8,13,.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 6px;
        border-bottom: 1px solid var(--line-soft);
        transform: translateY(-110%);
        transition: transform .35s var(--ease);
    }
    .site-nav.open { transform: translateY(0); }
    .nav-link { text-align: center; padding: 14px 18px; font-size: 1rem; }
    .nav-link--primary { margin-left: 0; margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s var(--ease);
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}
.btn:hover { background: rgba(255,255,255,.07); border-color: var(--gold-400); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad-gold);
    color: #1a1206;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--sh-gold);
}
.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s var(--ease);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(184,143,77,.7), 0 0 0 1px rgba(248,237,203,.5) inset; }
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-soft); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }

.btn-danger {
    background: rgba(239,110,110,.08);
    border-color: rgba(239,110,110,.32);
    color: #ffb3b3;
}
.btn-danger:hover { background: rgba(239,110,110,.16); border-color: rgba(239,110,110,.5); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Form controls ---------- */
.input, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="time"], select, textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font: 450 .95rem var(--font-sans);
    transition: all .25s var(--ease);
}
.input:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    background: rgba(255,255,255,.045);
    box-shadow: 0 0 0 4px rgba(184,143,77,.12);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { resize: vertical; min-height: 100px; }
label { display: block; font-size: .82rem; color: var(--text-soft); margin-bottom: 8px; letter-spacing: .01em; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 120px;
    padding: 60px 0 40px;
    border-top: 1px solid var(--line-soft);
    color: var(--text-muted);
    text-align: center;
    font-size: .85rem;
}
.site-footer .brand { justify-content: center; margin-bottom: 20px; }

/* ---------- Animations ---------- */
@keyframes float-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-in-blur {
    from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(111,212,154,.5); }
    70%{ box-shadow: 0 0 0 14px rgba(111,212,154,0); }
    100%{ box-shadow: 0 0 0 0 rgba(111,212,154,0); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(20px, -20px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
