/* AI Office — Public Suite
   Shared language for /, /help, /profile, /login, /signup
   Obsidian Command Deck: void + teal + gold */

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

:root {
  --void: #030508;
  --ink: #070B0F;
  --panel: rgba(10, 16, 22, 0.78);
  --panel-solid: #0C1218;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(46, 230, 214, 0.28);
  --gold-line: rgba(201, 169, 98, 0.32);
  --text: #EDF3F6;
  --muted: #8B9DAA;
  --faint: #566674;
  --teal: #2EE6D6;
  --gold: #C9A962;
  --lime: #9AE66E;
  --danger: #ff7a7a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass: blur(28px) saturate(140%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font: 400 15px/1.55 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hidden { display: none !important; }

/* —— Atmosphere —— */
.su-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(46, 230, 214, 0.11), transparent 55%),
    radial-gradient(900px 560px at -10% 40%, rgba(201, 169, 98, 0.07), transparent 50%),
    radial-gradient(700px 480px at 50% 110%, rgba(46, 230, 214, 0.05), transparent 55%),
    linear-gradient(180deg, var(--void), var(--ink));
}
.su-bg::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.su-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--line);
}
.su-brand {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
}
.su-brand:hover { text-decoration: none; }
.su-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(46, 230, 214, 0.4), rgba(201, 169, 98, 0.22)),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), transparent 55%);
  border: 1px solid rgba(46, 230, 214, 0.4);
  box-shadow: 0 0 18px rgba(46, 230, 214, 0.2);
  display: grid; place-items: center;
  font: 700 11px 'JetBrains Mono', monospace;
  color: #dffcf8;
  flex-shrink: 0;
}
.su-brand-name { font: 700 15px/1 'Outfit', sans-serif; letter-spacing: 0.02em; }
.su-brand-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); }
.su-nav-links {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.su-nav-links a {
  font: 500 13px 'Outfit', sans-serif;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
.su-nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.su-nav-links a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
.su-nav-links .nav-cta {
  color: var(--teal);
  border: 1px solid var(--line-strong);
  background: rgba(46, 230, 214, 0.1);
}
.su-nav-links .nav-cta:hover { background: rgba(46, 230, 214, 0.18); color: #fff; }

@media (max-width: 720px) {
  .su-nav-links a:not(.nav-cta):not(.nav-keep) { display: none; }
}

/* —— Buttons —— */
.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font: 600 14px 'Outfit', sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
  cursor: pointer;
  color: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(145deg, var(--teal), #1bb8aa);
  color: #042824;
  box-shadow: 0 0 24px rgba(46, 230, 214, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); color: #042824; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--teal); }
.btn-danger {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.35);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(255, 80, 80, 0.18); color: #ffb0b0; }
.btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.btn-block { width: 100%; }

/* —— Footer —— */
.su-foot {
  position: relative; z-index: 1;
  margin-top: 24px;
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}
.su-foot a { color: var(--muted); }
.su-foot a:hover { color: var(--teal); }

/* —— Forms —— */
.su-field {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 14px;
}
.su-field label {
  font: 500 12px 'Outfit', sans-serif;
  color: var(--muted);
}
.su-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font: 500 14px 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.su-input:focus {
  border-color: rgba(46, 230, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(46, 230, 214, 0.12);
}
.su-input::placeholder { color: var(--faint); }
.su-msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.su-msg.err {
  color: #ffb0b0;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
}
.su-msg.ok {
  color: #c8f5b0;
  background: rgba(154, 230, 110, 0.1);
  border: 1px solid rgba(154, 230, 110, 0.3);
}

/* —— Motion —— */
@keyframes su-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.su-rise { animation: su-rise 0.75s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
