@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

.seace-landing {
    --seace-ink: #0b1b2b;
    --seace-ink-2: #142b3d;
    --seace-paper: #f3ebdd;
    --seace-paper-light: #fbf7ef;
    --seace-copper: #c77a4d;
    --seace-mist: #94d8cc;
    --seace-dim: #aab6bd;
    --seace-display: 'DM Serif Display', Georgia, serif;
    --seace-body: 'Manrope', Arial, sans-serif;
    --seace-mono: 'IBM Plex Mono', 'Courier New', monospace;
    color: var(--seace-ink);
    background: var(--seace-paper);
    font-family: var(--seace-body);
    min-height: 100vh;
    overflow: clip;
}

.seace-landing *,
.seace-landing *::before,
.seace-landing *::after { box-sizing: border-box; }

.seace-landing a { color: inherit; text-decoration: none; }

.seace-landing button { color: inherit; font: inherit; }

.seace-landing a:focus-visible,
.seace-landing button:focus-visible {
    outline: 2px solid var(--seace-mist);
    outline-offset: 4px;
}

.seace-skip {
    position: fixed;
    z-index: 100;
    left: 1rem;
    top: 1rem;
    padding: .75rem 1rem;
    background: var(--seace-paper-light);
    color: var(--seace-ink) !important;
    transform: translateY(-150%);
}

.seace-skip:focus { transform: translateY(0); }

.seace-world {
    position: relative;
    min-height: 600svh;
    background: #091824;
    color: var(--seace-paper-light);
    isolation: isolate;
}

.seace-world__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: #091824;
}

.seace-world__poster,
.seace-world__video,
.seace-world__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.seace-world__poster,
.seace-world__video {
    object-fit: cover;
    object-position: center 52%;
}

.seace-world__poster {
    filter: saturate(.8) brightness(.72) contrast(1.08);
    transform: scale(1.015);
}

.seace-world__video {
    z-index: 1;
    filter: saturate(.86) brightness(.72) contrast(1.05);
}

.seace-world__shade {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(5, 16, 27, .9) 0%, rgba(5, 16, 27, .78) 34%, rgba(5, 16, 27, .3) 68%, rgba(5, 16, 27, .14) 100%),
        linear-gradient(0deg, rgba(5, 16, 27, .82) 0%, transparent 25%, transparent 74%, rgba(5, 16, 27, .54) 100%);
    pointer-events: none;
}

.seace-nav {
    position: absolute;
    z-index: 8;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 92px;
    padding: 1.35rem clamp(1.25rem, 5.2vw, 5.5rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(243, 235, 221, .14);
}

.seace-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--seace-paper-light) !important;
}

.seace-brand__mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(199, 122, 77, .86);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #e8b28d;
}

.seace-brand__copy { display: grid; line-height: 1; gap: .28rem; }

.seace-brand__copy strong { font-size: .78rem; font-weight: 800; letter-spacing: .17em; }

.seace-brand__copy small { color: #c3c7c4; font: 400 .58rem var(--seace-mono); letter-spacing: .065em; }

.seace-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(1.35rem, 3vw, 3.4rem);
    color: rgba(251, 247, 239, .76);
    font: 500 .64rem var(--seace-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.seace-nav__links a { transition: color .18s ease; }

.seace-nav__links a:hover { color: var(--seace-mist); }

.seace-nav__cta {
    justify-self: end;
    min-height: 42px;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--seace-paper-light) !important;
    border: 1px solid rgba(243, 235, 221, .43);
    font-size: .76rem;
    font-weight: 700;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.seace-nav__cta:hover { border-color: var(--seace-copper); background: rgba(199, 122, 77, .14); }

.seace-world__edition {
    position: absolute;
    z-index: 5;
    right: clamp(1.25rem, 5.2vw, 5.5rem);
    top: 50%;
    display: grid;
    gap: .5rem;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    color: rgba(243, 235, 221, .68);
    font: 400 .56rem var(--seace-mono);
    letter-spacing: .2em;
}

.seace-world__copy {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
}

.seace-chapter {
    position: absolute;
    top: 50%;
    left: clamp(1.5rem, 12vw, 12rem);
    width: min(760px, 68vw);
    padding: 1rem 0;
    transition: opacity .12s linear;
    pointer-events: none;
}

.seace-chapter[aria-hidden="false"] { pointer-events: auto; }

.seace-chapter__eyebrow,
.seace-kicker {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #e3aa85;
    font: 500 .66rem var(--seace-mono);
    letter-spacing: .14em;
    line-height: 1.6;
    text-transform: uppercase;
}

.seace-chapter__signal {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--seace-mist);
    box-shadow: 0 0 0 4px rgba(148, 216, 204, .12);
}

.seace-chapter__title {
    max-width: 760px;
    margin: 1.25rem 0 1.1rem;
    color: var(--seace-paper-light);
    font: 400 clamp(3.45rem, 7.2vw, 7.25rem)/.94 var(--seace-display);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.seace-chapter__title em,
.seace-method__intro h2 em,
.seace-controls__heading h2 em,
.seace-final h2 em {
    color: #e8b28d;
    font-weight: 400;
}

.seace-chapter__body {
    max-width: 510px;
    color: rgba(251, 247, 239, .78);
    font-size: clamp(.98rem, 1.35vw, 1.12rem);
    line-height: 1.78;
}

.seace-chapter__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.35rem;
    margin-top: 1.8rem;
    pointer-events: auto;
}

.seace-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 0 1.15rem;
    border: 1px solid transparent;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.seace-button:hover { transform: translateY(-2px); }

.seace-button--copper {
    color: #fffaf2 !important;
    background: #9f5834;
    border-color: #9f5834;
}

.seace-button--copper:hover { background: #87472b; border-color: #87472b; }

.seace-button--quiet {
    color: rgba(251, 247, 239, .86);
    background: transparent;
    border-color: rgba(243, 235, 221, .32);
}

.seace-button--quiet:hover { color: var(--seace-mist); border-color: var(--seace-mist); }

.seace-chapter__proof {
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: rgba(243, 235, 221, .62);
    font: 400 .68rem var(--seace-mono);
}

.seace-chapter__proof svg { color: var(--seace-mist); }

.seace-route {
    position: absolute;
    z-index: 7;
    right: clamp(1.1rem, 4vw, 4rem);
    top: 50%;
    display: grid;
    gap: 1rem;
    transform: translateY(-50%);
}

.seace-route__item {
    position: relative;
    width: 16px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.seace-route__item::before {
    content: '';
    position: absolute;
    right: 7px;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(243, 235, 221, .27);
}

.seace-route__item:last-child::before { height: 50%; top: 0; }

.seace-route__dot {
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(243, 235, 221, .68);
    border-radius: 50%;
    background: var(--seace-ink);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.seace-route__item.is-active .seace-route__dot {
    background: var(--seace-copper);
    border-color: #f1c19f;
    transform: scale(1.45);
}

.seace-route__label {
    position: absolute;
    right: 1.55rem;
    color: rgba(251, 247, 239, .78);
    font: 400 .59rem var(--seace-mono);
    letter-spacing: .07em;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    text-transform: uppercase;
}

.seace-route__item.is-active .seace-route__label,
.seace-route__item:hover .seace-route__label { opacity: 1; transform: translateX(0); }

.seace-world__footer {
    position: absolute;
    z-index: 8;
    left: clamp(1.5rem, 5.2vw, 5.5rem);
    right: clamp(1.5rem, 5.2vw, 5.5rem);
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    color: rgba(243, 235, 221, .66);
    font: 400 .58rem var(--seace-mono);
    letter-spacing: .12em;
}

.seace-world__progress {
    height: 1px;
    background: rgba(243, 235, 221, .28);
    overflow: hidden;
}

.seace-world__progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--seace-copper);
    transform: scaleX(var(--world-progress, 0));
    transform-origin: left;
}

.seace-method,
.seace-controls {
    padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 10vw, 10rem);
}

.seace-method { background: var(--seace-paper); }

.seace-section-label {
    display: flex;
    justify-content: space-between;
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(11, 27, 43, .23);
    color: #60717a;
    font: 500 .63rem var(--seace-mono);
    letter-spacing: .1em;
}

.seace-method__intro {
    max-width: 920px;
    margin: clamp(3rem, 7vw, 6rem) 0 4.5rem;
}

.seace-method__intro .seace-kicker,
.seace-controls .seace-kicker,
.seace-final .seace-kicker { color: #a85e38; }

.seace-method__intro h2,
.seace-controls__heading h2,
.seace-final h2 {
    margin-top: 1.25rem;
    font: 400 clamp(2.9rem, 6.2vw, 6rem)/.98 var(--seace-display);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.seace-method__intro h2 em,
.seace-controls__heading h2 em { color: #a85e38; }

.seace-method__lede {
    max-width: 520px;
    margin-top: 1.4rem;
    color: #53626a;
    font-size: 1rem;
    line-height: 1.8;
}

.seace-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(11, 27, 43, .22);
    border-bottom: 1px solid rgba(11, 27, 43, .22);
}

.seace-step {
    min-height: 250px;
    padding: 1.6rem 1.6rem 1.8rem 0;
}

.seace-step + .seace-step {
    padding-left: 1.6rem;
    border-left: 1px solid rgba(11, 27, 43, .22);
}

.seace-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #a85e38;
}

.seace-step__num,
.seace-step__label {
    font: 500 .66rem var(--seace-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.seace-step__label { margin-top: 2.5rem; color: #a85e38; }

.seace-step h3 { margin-top: .5rem; font-size: 1.12rem; letter-spacing: -.025em; }

.seace-step__body { max-width: 330px; margin-top: .7rem; color: #5c6870; font-size: .86rem; line-height: 1.75; }

.seace-controls {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    column-gap: clamp(3rem, 9vw, 10rem);
    row-gap: 2.5rem;
    background: var(--seace-ink);
    color: var(--seace-paper-light);
}

.seace-controls__heading h2 em { color: #e8b28d; }

.seace-ledger {
    align-self: center;
    border-top: 1px solid rgba(243, 235, 221, .28);
}

.seace-ledger__row {
    min-height: 74px;
    display: grid;
    grid-template-columns: 34px minmax(130px, .9fr) minmax(150px, 1fr) 20px;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid rgba(243, 235, 221, .2);
}

.seace-ledger__icon { color: #e8b28d; }

.seace-ledger__name { font-size: .78rem; font-weight: 800; }

.seace-ledger__detail { color: rgba(243, 235, 221, .65); font-size: .7rem; }

.seace-ledger__check { color: var(--seace-mist); }

.seace-controls__note { grid-column: 2; color: rgba(243, 235, 221, .58); font-size: .7rem; line-height: 1.7; }

.seace-final {
    padding: clamp(5rem, 10vw, 10rem) 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(199, 122, 77, .08), transparent 45%),
        var(--seace-paper-light);
}

.seace-final__stamp {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #a85e38;
    font: 500 .62rem var(--seace-mono);
    letter-spacing: .1em;
}

.seace-final .seace-kicker { margin-top: 3rem; }

.seace-final h2 { margin-top: 1rem; }

.seace-final h2 em { color: #a85e38; }

.seace-final > p:not(.seace-kicker) { margin: 1.35rem 0 1.8rem; color: #5c6870; font-size: .95rem; }

.seace-footer {
    min-height: 100px;
    padding: 1.6rem clamp(1.5rem, 5.2vw, 5.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--seace-ink);
    color: rgba(243, 235, 221, .7);
    font-size: .7rem;
}

.seace-brand--footer .seace-brand__mark { width: 32px; height: 32px; }

.seace-footer > a:last-child { color: #e8b28d; }

@media (max-width: 960px) {
    .seace-nav { grid-template-columns: 1fr auto; }
    .seace-nav__links { display: none; }
    .seace-chapter { left: 9vw; width: min(700px, 76vw); }
    .seace-controls { grid-template-columns: 1fr; }
    .seace-controls__note { grid-column: 1; }
}

@media (max-width: 640px) {
    .seace-world__stage { min-height: 520px; }
    .seace-world__poster,
    .seace-world__video { object-position: 42% center; }
    .seace-world__poster { filter: saturate(.72) brightness(.48) contrast(1.1); }
    .seace-world__video { filter: saturate(.78) brightness(.52) contrast(1.07); }
    .seace-world__shade {
        background:
            linear-gradient(0deg, rgba(5, 16, 27, .96) 0%, rgba(5, 16, 27, .78) 47%, rgba(5, 16, 27, .2) 100%),
            linear-gradient(180deg, rgba(5, 16, 27, .42), transparent 35%);
    }
    .seace-nav { min-height: 74px; padding: 1rem 1.15rem; }
    .seace-brand__mark { width: 34px; height: 34px; }
    .seace-nav__cta { min-height: 38px; padding: 0 .7rem; gap: .4rem; font-size: .69rem; }
    .seace-nav__cta svg { width: 14px; }
    .seace-world__edition { top: 28%; right: .9rem; font-size: .49rem; }
    .seace-chapter {
        top: auto;
        bottom: calc(max(5rem, env(safe-area-inset-bottom)) + 3.1rem);
        left: 1.25rem;
        width: calc(100% - 2.5rem);
        padding: 0;
        transform: none !important;
    }
    .seace-chapter__eyebrow { font-size: .56rem; letter-spacing: .11em; }
    .seace-chapter__title { margin: .85rem 0 .7rem; font-size: clamp(2.85rem, 13vw, 4.5rem); line-height: .97; }
    .seace-chapter__body { max-width: 39rem; font-size: .86rem; line-height: 1.62; }
    .seace-chapter__actions { margin-top: 1.05rem; gap: .6rem; }
    .seace-button { min-height: 45px; padding: 0 .85rem; font-size: .72rem; }
    .seace-chapter__proof { margin-top: 1rem; font-size: .58rem; }
    .seace-route { top: 42%; right: 1.05rem; gap: .7rem; }
    .seace-route__label { display: none; }
    .seace-world__footer { left: 1.2rem; right: 1.2rem; bottom: max(1rem, env(safe-area-inset-bottom)); gap: .7rem; font-size: .48rem; }
    .seace-world__footer > span:first-child { max-width: 96px; line-height: 1.5; }
    .seace-method,
    .seace-controls { padding: 4.5rem 1.25rem; }
    .seace-method__intro { margin: 3rem 0 2.5rem; }
    .seace-method__intro h2,
    .seace-controls__heading h2,
    .seace-final h2 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
    .seace-steps { grid-template-columns: 1fr; }
    .seace-step { min-height: auto; padding: 1.25rem 0 1.4rem; }
    .seace-step + .seace-step { padding-left: 0; border-left: 0; border-top: 1px solid rgba(11, 27, 43, .22); }
    .seace-step__label { margin-top: 1.45rem; }
    .seace-ledger__row { grid-template-columns: 26px 1fr 18px; gap: .45rem; min-height: 72px; }
    .seace-ledger__detail { grid-column: 2; grid-row: 2; margin-top: -1.2rem; font-size: .64rem; }
    .seace-ledger__check { grid-column: 3; grid-row: 1 / span 2; }
    .seace-final { padding: 5rem 1.25rem; }
    .seace-final .seace-kicker { margin-top: 2.3rem; }
    .seace-footer { padding: 1.5rem 1.25rem; flex-wrap: wrap; }
}

@media (max-height: 680px) and (min-width: 641px) {
    .seace-chapter__title { font-size: clamp(3rem, 6.1vw, 5rem); }
    .seace-chapter { left: 9vw; }
    .seace-chapter__proof { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .seace-world__video { display: none; }
    .seace-world__poster { filter: saturate(.78) brightness(.68); }
    .seace-landing *,
    .seace-landing *::before,
    .seace-landing *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-height: 640px) and (max-width: 640px) {
    .seace-world__stage { min-height: 100svh; }
    .seace-chapter { bottom: calc(max(3.5rem, env(safe-area-inset-bottom)) + 2.8rem); }
    .seace-chapter__title { font-size: clamp(2.25rem, 9vw, 3.2rem); margin: .6rem 0; }
    .seace-chapter__body { font-size: .75rem; line-height: 1.48; }
    .seace-chapter__actions { margin-top: .7rem; }
    .seace-chapter__proof { margin-top: .65rem; }
}

:root {
  /* Premium Color Palette (HSL) */
  --primary: 220 70% 50%;
  /* Deep Blue */
  --primary-foreground: 210 40% 98%;

  --secondary: 200 95% 10%;
  /* Dark Navy */
  --secondary-foreground: 210 40% 98%;

  --accent: 260 80% 60%;
  /* Vibrant Purple for AI/Highlights */
  --accent-foreground: 210 40% 98%;

  --background: 220 30% 96%;
  /* Light Gray-Blue */
  --foreground: 222 47% 11%;

  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  --border: 214 32% 91%;
  --input: 214 32% 91%;

  --muted: 220 23% 94%;
  --muted-foreground: 218 14% 46%;

  --radius: 0.75rem;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.dark {
  --background: 222 47% 11%;
  --foreground: 210 40% 98%;

  --card: 217 33% 17%;
  --card-foreground: 210 40% 98%;

  --border: 217 33% 25%;
  --input: 217 33% 25%;

  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Desktop styles (ensure mobile elements are hidden) */
@media (min-width: 769px) {

  .mobile-menu-btn,
  .mobile-close-btn {
    display: none !important;
  }
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Layout */
.layout-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 260px;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: width 0.3s ease;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, #f0f4f8 100%);
}

.header {
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--border));
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    transform: translateX(-100%);
    width: 80%;
    max-width: 300px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    width: 100%;
  }

  .header {
    padding: 0 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .mobile-menu-btn {
    display: flex !important;
    margin-right: 0.5rem;
  }

  .mobile-close-btn {
    display: flex !important;
  }

  .user-info {
    display: none;
  }
}

/* Background Animation */
@keyframes documentFloat {
  0% { transform: translateY(100vh) rotate(-10deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-20vh) rotate(10deg); opacity: 0; }
}

.bg-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.doc-particle {
  position: absolute;
  animation: documentFloat linear infinite;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───────────────────────── Landing / Hero ───────────────────────── */
.lp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(56, 132, 255, 0.28), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(150, 90, 255, 0.25), transparent 55%),
    linear-gradient(160deg, #0a1430 0%, #0b1020 55%, #070b18 100%);
  color: #e6ecff;
}

/* Malla de gradientes que se desplaza lentamente */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(420px 420px at 30% 40%, rgba(56, 132, 255, 0.22), transparent 60%),
    radial-gradient(380px 380px at 70% 60%, rgba(150, 90, 255, 0.20), transparent 60%);
  filter: blur(20px);
  animation: lpMeshDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Grilla técnica que late suave */
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  animation: lpGridPan 24s linear infinite;
  pointer-events: none;
}

@keyframes lpMeshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
@keyframes lpGridPan {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 46px 46px, 46px 46px; }
}

@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-reveal { opacity: 0; animation: lpFadeUp 0.7s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes lpFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(-1.5deg); }
}
.lp-float { animation: lpFloat 6s ease-in-out infinite; }

@keyframes lpCheckPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); opacity: 1; }
}
.lp-check { animation: lpCheckPop 0.45s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes lpFill { from { width: 0; } }

.lp-gradient-text {
  background: linear-gradient(110deg, #7fb0ff 0%, #b79bff 50%, #5ce0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-wa {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1aa851);
  color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.7); }

.lp-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #cdd7f5;
  border: 1px solid rgba(255,255,255,0.15); text-decoration: none; font-weight: 600;
  transition: all 0.2s ease;
}
.lp-ghost:hover { background: rgba(255,255,255,0.12); }

.lp-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #aab8e0; font-size: 0.8rem; font-weight: 600;
}

.lp-glass {
  background: rgba(18, 26, 51, 0.6);
  border: 1px solid rgba(140, 170, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}

.lp-feature {
  background: #fff; border: 1px solid hsl(var(--border));
  border-radius: 16px; padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -12px rgba(20,40,90,0.18); border-color: hsl(var(--primary)); }

@media (max-width: 860px) {
  .lp-hero-grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero::before, .lp-hero::after, .lp-float, .lp-reveal, .lp-check { animation: none !important; opacity: 1 !important; }
}
/* Barra de progreso indeterminada (procesamiento de bases/presupuesto) */
.kreo-bar { height: 6px; width: 100%; max-width: 340px; margin: 0 auto; background: hsl(var(--muted)); border-radius: 999px; overflow: hidden; }
.kreo-bar-fill { height: 100%; width: 40%; background: hsl(var(--primary)); border-radius: 999px; animation: kreo-indeterminate 1.2s ease-in-out infinite; }
@keyframes kreo-indeterminate { 0% { margin-left: -42%; } 100% { margin-left: 102%; } }
@media (prefers-reduced-motion: reduce) { .kreo-bar-fill { animation: none; width: 100%; opacity: 0.6; } }
