/* EditRoast — Shared design system for tools/ and hub/ pages */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:    #080c16;
  --bg2:   #0c1020;
  --sur:   rgba(255,255,255,0.035);
  --sur-h: rgba(255,255,255,0.06);
  --bdr:   rgba(255,255,255,0.07);
  --bdr-h: rgba(255,255,255,0.16);
  --acc:   #6366f1;
  --acc2:  #8b5cf6;
  --acc3:  #a78bfa;
  --grn:   #10b981;
  --gold:  #f59e0b;
  --txt:   #f1f5f9;
  --txt2:  #94a3b8;
  --txt3:  #94a3b8;
  --r:     16px;
  --rl:    24px;
  --blur:  blur(24px);
  --ease:  cubic-bezier(0.4,0,0.2,1);
}
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Orbs ── */
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.o1 { width: 700px; height: 700px; top: -250px; left: -200px; background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%); }
.o2 { width: 500px; height: 500px; top: 300px; right: -150px; background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%); }
body > * { position: relative; z-index: 1; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Glass ── */
.glass {
  background: var(--sur); border: 1px solid var(--bdr);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: var(--rl);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.glass:hover { border-color: var(--bdr-h); background: var(--sur-h); }

/* ── Typography ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 100px;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.22);
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--acc3);
}
.hl {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  background: linear-gradient(140deg, #f1f5f9 30%, #8b9bbd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hl-md {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.025em;
}
.sub { color: var(--txt2); font-size: 1rem; line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 14px 28px; border-radius: 12px; border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .22s var(--ease);
}
.btn-p {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff; box-shadow: 0 4px 24px rgba(99,102,241,.4);
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,.55); }
.btn-g {
  background: var(--sur); color: var(--txt2); border: 1px solid var(--bdr);
}
.btn-g:hover { border-color: var(--bdr-h); color: var(--txt); background: var(--sur-h); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; border-radius: 14px; }
.btn-full { width: 100%; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--bdr);
  padding: 15px 0;
  background: rgba(8,12,22,.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: background .3s;
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none;
  background: linear-gradient(135deg, var(--acc3), var(--acc));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--txt2); font-size: .88rem; font-weight: 500; text-decoration: none; transition: color .2s; padding: 6px 10px; border-radius: 8px; display: flex; align-items: center; gap: 4px; }
.nav-links a:hover { color: var(--txt); background: var(--sur); }
.nav-drop-trigger svg { transition: transform .2s var(--ease); flex-shrink: 0; }
.nav-links li.open .nav-drop-trigger svg { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: rgba(10,14,28,.97); border: 1px solid var(--bdr);
  border-radius: 16px; padding: 8px; min-width: 260px;
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 20px 48px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  pointer-events: none;
}
.nav-links li.open .nav-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.nav-drop-label { font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--txt3); padding: 8px 12px 4px; display: block; }
.nav-drop a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 10px; background: none !important; color: var(--txt2) !important; font-size: .85rem; }
.nav-drop a:hover { background: rgba(255,255,255,.05) !important; color: var(--txt) !important; }
.nd-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.nd-text { display: flex; flex-direction: column; gap: 2px; }
.nd-title { font-weight: 600; color: var(--txt); font-size: .85rem; line-height: 1.3; }
.nd-sub { font-size: .74rem; color: var(--txt3); line-height: 1.4; }
.nav-drop-flagship { background: rgba(99,102,241,.08) !important; border: 1px solid rgba(99,102,241,.18) !important; border-radius: 10px !important; }
.nav-drop-flagship .nd-title { color: var(--acc3) !important; }
.nav-drop-flagship:hover { background: rgba(99,102,241,.14) !important; }
.nav-drop-divider { height: 1px; background: var(--bdr); margin: 6px 0; }
.nav-drop-all { font-size: .82rem !important; color: var(--acc3) !important; font-weight: 600 !important; }
.nav-drop-all:hover { color: var(--acc3) !important; }
.nav-drop-premium-label { font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 4px 12px 4px; display: block; }
.nav-drop-premium a { background: rgba(245,158,11,.05) !important; border: 1px solid rgba(245,158,11,.12) !important; border-radius: 10px !important; }
.nav-drop-hub { min-width: 300px; left: auto; right: 0; transform: translateY(-6px); }
.nav-links li.open .nav-drop-hub { transform: translateY(0); }
.nav-drop-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-drop-hub-grid a { padding: 7px 10px !important; gap: 7px !important; }
.nav-drop-hub-grid .nd-icon { font-size: .9rem; }
.editing-hl { background: rgba(99,102,241,.08) !important; border: 1px solid rgba(99,102,241,.15) !important; border-radius: 8px !important; }
.editing-hl .nd-title { color: var(--acc3) !important; }

.nav-hamburger {
  display: none; background: none; border: 1px solid var(--bdr); border-radius: 8px;
  padding: 8px 9px; cursor: pointer; color: var(--txt2); flex-direction: column;
  gap: 4px; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: all .2s var(--ease); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8,12,22,.98); border-bottom: 1px solid var(--bdr);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  padding-bottom: 8px;
}
.nav-mobile.open { display: block; }
.nm-section { padding: 0 20px; }
.nm-section h5 { font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--txt3); padding: 14px 0 8px; }
.nm-section a { display: block; padding: 10px 0; color: var(--txt2); text-decoration: none; font-size: .9rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.04); transition: color .2s; }
.nm-section a:last-child { border-bottom: none; }
.nm-section a:hover { color: var(--txt); }
.nm-divider { height: 1px; background: var(--bdr); margin: 6px 20px; }
.nm-cta { padding: 14px 20px 8px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--bdr); padding: 56px 0 28px; font-size: .825rem; color: var(--txt3); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 0.7fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--bdr); margin-bottom: 24px; }
.foot-tagline { font-size: .82rem; color: var(--txt3); line-height: 1.7; margin-top: 10px; max-width: 220px; }
.foot-col h4 { font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--txt3); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col ul a { color: var(--txt2); font-size: .875rem; text-decoration: none; transition: color .2s; }
.foot-col ul a:hover { color: var(--txt); }
.foot-col ul a.foot-all { color: var(--acc3); font-size: .8rem; font-weight: 600; margin-top: 4px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--txt3); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--txt2); }

/* ── Scroll animations ── */
.fu { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fu.show { opacity: 1; transform: none; }
.d1 { transition-delay: .06s; }
.d2 { transition-delay: .12s; }
.d3 { transition-delay: .18s; }
.d4 { transition-delay: .24s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  nav .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; text-align: center; }
}
