/* ==========================================================================
   Foundry Studio — Design System
   Refined · editorial · restrained. Warm neutrals + ink + one green accent.
   Type: Source Serif 4 (display) / Inter (UI) / JetBrains Mono (labels & numerals)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #12100d;
  --bg-subtle: #1a1713;
  --bg-muted: #24201a;
  --surface: #1c1914;

  /* Ink (text) */
  --ink: #ece6db;
  --ink-2: #cbc3b4;
  --muted: #9b9283;
  --subtle: #6d6558;

  /* Solid (buttons, avatars) */
  --primary: #efe8da;
  --primary-fg: #14110c;

  /* Borders */
  --border: #2b2721;
  --border-strong: #3a342c;

  /* Accent — green */
  --accent: #5cb988;
  --accent-ink: #a9e7c4;
  --accent-soft: #17241d;
  --accent-border: #2c4a39;

  /* Status */
  --success: #5cb988;
  --success-soft: #17241d;
  --success-border: #2c4a39;
  --warning: #e0a94e;
  --warning-soft: #2b2213;
  --warning-border: #4a3a1e;
  --danger: #e5736a;
  --danger-soft: #2b1715;
  --danger-border: #4a2a26;
  --info: #82a8d6;
  --info-soft: #151f2c;
  --info-border: #2a3a50;

  /* Radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 999px;

  /* Shadows (minimal) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 6px 16px -6px rgba(0,0,0,.6);
  --shadow-lg: 0 20px 40px -20px rgba(0,0,0,.7);

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --content-max: 1120px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
img, svg { display: block; }
svg { width: 1em; height: 1em; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

/* Typographic utilities */
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0; }
.mono { font-family: var(--font-mono); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* The marquee's centered kicker reads better without the leading dash */
.marquee .kicker::before { display: none; }

.text-muted { color: var(--muted); }
.text-subtle { color: var(--subtle); }
.text-ink-2 { color: var(--ink-2); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: left; }
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1.12; letter-spacing: 0; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }

.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink); background: var(--surface); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-subtle); color: var(--ink); }

.btn-outline-primary { background: transparent; color: var(--accent-ink); border-color: var(--accent-border); }
.btn-outline-primary:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-ink); }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }

.btn .spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* ==========================================================================
   Badges & chips
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  line-height: 1.4;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-border); }
.badge-slate { background: var(--bg-subtle); color: var(--ink-2); border-color: var(--border); }
.badge-success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: var(--info-border); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .14s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* Segmented role selector (login) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.seg-btn { font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 12px; border: none; background: transparent; color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; transition: all .14s ease; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background-color: var(--surface); background-image: radial-gradient(120% 80% at 100% 0%, rgba(92, 185, 136, .09), transparent 55%), radial-gradient(110% 70% at 0% 100%, rgba(224, 169, 78, .07), transparent 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.card-pad { padding: 24px; }
.card-hover { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Icon tile (replaces gradient/emoji tiles) */
.tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  flex-shrink: 0;
}
.tile svg { width: 20px; height: 20px; }
.tile.tile-lg { width: 48px; height: 48px; border-radius: var(--radius); }
.tile.tile-lg svg { width: 24px; height: 24px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--subtle); }

.input, .select, .textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.textarea { resize: vertical; min-height: 92px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a29b90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
}

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-label { font-size: 14px; font-weight: 500; }
.toggle-row .t-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

.toggle { position: relative; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.toggle input { display: none; }
.toggle .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: var(--radius-full); transition: background .16s ease; }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-xs); transition: transform .16s ease; }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track + .thumb { transform: translateX(16px); }

/* ==========================================================================
   Landing — nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,16,13,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
}
.brand-mark svg { width: 13px; height: 13px; }
.brand-word { font-family: var(--font-serif); font-weight: 600; font-size: 18px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .14s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Landing — hero
   ========================================================================== */
.hero { position: relative; padding: 120px 0 96px; border-bottom: 1px solid var(--border); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero .kicker { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { color: var(--ink-2); font-size: 17.5px; line-height: 1.65; margin: 24px 0 32px; max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual — mono activity log */
.hero-visual { position: relative; }
.log-window {
  background: #17150f;
  border-radius: var(--radius-lg);
  border: 1px solid #2a2722;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lw-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #2a2722; }
.lw-bar .lw-title { font-family: var(--font-mono); font-size: 12px; color: #8f8a7e; }
.lw-dots { display: flex; gap: 6px; margin-left: auto; }
.lw-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a362e; }
.lw-body { padding: 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 2; }
.log-line { color: #d6d1c4; }
.log-line .p { color: #6f8f7d; }
.log-line .k { color: #9d9584; }
.log-line .ok { color: #7fb69a; }
.log-line .dim { color: #5c584e; }

/* ==========================================================================
   Landing — services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 36px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background-color: var(--surface); background-image: radial-gradient(120% 80% at 100% 0%, rgba(92, 185, 136, .09), transparent 55%), radial-gradient(110% 70% at 0% 100%, rgba(224, 169, 78, .07), transparent 55%); display: flex; flex-direction: column; }
.service-card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); margin-bottom: 28px; }
.service-card .tile { margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; margin-bottom: 10px; letter-spacing: 0; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 24px; }
.service-card .s-link { font-size: 13.5px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.service-card .s-link svg { display: none; }
.service-card:hover .s-link svg { transform: translateX(3px); }

/* ==========================================================================
   Landing — testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.testi-card .quote { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testi-card .who .nm { font-weight: 600; font-size: 13.5px; }
.testi-card .who .role { font-size: 12.5px; color: var(--subtle); }

/* ==========================================================================
   Landing — CTA & footer
   ========================================================================== */
.cta-band { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 72px 48px; text-align: left; background: var(--surface); }
.cta-band .kicker { margin-bottom: 18px; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 500; font-size: 40px; letter-spacing: 0; margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 52ch; }
.cta-band .btn { margin-right: 10px; }

.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 14px; }
.footer .f-about { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 320px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--subtle); font-size: 13px; flex-wrap: wrap; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-visual {
  background: #17150f;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px; color: #e9e5d8;
  border-right: 1px solid #2a2722;
}
.auth-visual .brand { color: #e9e5d8; }
.auth-visual .brand-mark { background: var(--accent); }
.auth-visual .brand-word { color: #e9e5d8; }
.auth-visual .av-body { max-width: 420px; }
.auth-visual h2 { font-family: var(--font-serif); font-weight: 500; color: #f3efe3; font-size: 30px; letter-spacing: 0; margin-bottom: 14px; }
.auth-visual p { color: #b4ad9b; font-size: 15px; }
.auth-visual .av-quote { margin-top: 28px; padding-top: 22px; border-top: 1px solid #2f2b24; font-size: 13.5px; color: #b4ad9b; line-height: 1.7; }
.auth-visual .av-quote .who { margin-top: 10px; color: #8f8a7e; font-size: 12.5px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; letter-spacing: 0; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-alt { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--subtle); font-size: 12.5px; }
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; background: var(--bg); }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  gap: 4px;
}
.sidebar .brand { padding: 2px 10px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.side-label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--subtle);
  padding: 18px 12px 6px;
}
.side-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: background .13s ease, color .13s ease;
}
.side-link svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--subtle); transition: color .13s ease; }
.side-link:hover { background: var(--bg-subtle); color: var(--ink); }
.side-link:hover svg { color: var(--muted); }
.side-link.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side-link.active svg { color: var(--accent); }
.side-link.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px;
  width: 2px; border-radius: 2px; background: var(--accent);
}
.side-link .side-count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--subtle);
}
.side-link.active .side-count { color: var(--accent-ink); }
.side-user {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 10px 0; border-top: 1px solid var(--border); margin-top: 10px;
}
.side-user .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.side-user .u-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.side-user .u-mail { font-size: 11.5px; color: var(--subtle); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  background: rgba(18,16,13,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; gap: 16px;
}
.topbar .crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--subtle); }
.topbar .crumb b { color: var(--ink); font-weight: 600; }
.topbar .crumb .sep { color: var(--subtle); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; position: relative;
  transition: all .13s ease;
}
.icon-btn:hover { background: var(--bg-subtle); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .ping { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--bg); }

.content { padding: 36px 32px 72px; max-width: 1080px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 32px; }
.page-head .kicker { margin-bottom: 12px; }
.page-head h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.015em; }
.page-head p { color: var(--muted); font-size: 14.5px; max-width: 60ch; }

.menu-toggle { display: none; }
.sidebar-backdrop { display: none; }

/* ==========================================================================
   Service selection
   ========================================================================== */
.service-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-select-card { padding: 28px; display: flex; flex-direction: column; position: relative; }
.service-select-card .s-icon { margin-bottom: 24px; }
.service-select-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 20px; margin-bottom: 8px; letter-spacing: 0; }
.service-select-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.service-select-card .s-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.service-select-card .btn { margin-top: auto; }
.service-select-card.featured { border-color: var(--accent-border); box-shadow: inset 0 0 0 1px var(--accent-border); }
.service-select-card .featured-flag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================================
   Agent gallery
   ========================================================================== */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent-card { padding: 24px; display: flex; flex-direction: column; }
.agent-card .a-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.agent-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.agent-card .a-tagline { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.agent-card .a-does { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.agent-card .a-does li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.agent-card .a-does li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 1.5px; }
.agent-card .btn { margin-top: auto; }
.agent-card.custom { border-style: dashed; border-color: var(--border-strong); align-items: center; justify-content: center; text-align: center; background: var(--bg-subtle); }
.agent-card.custom .plus {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 12px;
}
.agent-card.custom .plus svg { width: 18px; height: 18px; }

/* ==========================================================================
   Agent config
   ========================================================================== */
.config-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

.agent-hero { display: flex; align-items: flex-start; gap: 16px; padding: 24px; margin-bottom: 20px; }
.agent-hero h1 { font-size: 21px; margin-bottom: 6px; }
.agent-hero p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.section-card { padding: 24px; margin-bottom: 20px; }
.section-card > h2 { font-size: 15px; margin-bottom: 4px; }
.section-card > .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* Workflow step flow */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow-step { flex: 1; text-align: center; }
.flow-step .fs-node { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; height: 100%; }
.flow-step .fs-ico { color: var(--accent); margin-bottom: 10px; display: flex; justify-content: center; }
.flow-step .fs-ico svg { width: 22px; height: 22px; }
.flow-step .fs-kind { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px; }
.flow-step .fs-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.flow-arrow { display: flex; align-items: center; color: var(--border-strong); padding: 0 6px; }
.flow-arrow svg { width: 18px; height: 18px; }

/* Connections */
.conn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conn { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; transition: border-color .14s ease, background .14s ease; }
.conn .c-logo { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; background: var(--bg-subtle); color: var(--ink-2); border: 1px solid var(--border); flex-shrink: 0; }
.conn .c-name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.conn .c-desc { font-size: 11.5px; color: var(--subtle); }
.conn .c-body { flex: 1; min-width: 0; }
.conn .c-rec { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-top: 4px; }
.conn .c-action { margin-left: auto; flex-shrink: 0; }
.conn.connected { border-color: var(--success-border); background: var(--success-soft); }
.conn-btn { min-width: 92px; }

/* Config summary */
.summary { position: sticky; top: calc(var(--topbar-h) + 16px); padding: 22px; }
.summary h3 { font-size: 14px; margin-bottom: 14px; }
.summary .s-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.summary .s-row:last-of-type { border-bottom: none; }
.summary .s-row .k { color: var(--muted); }
.summary .s-row .v { font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; }

/* Generic definition-list rows (brief cards, etc.) */
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.s-row:last-child { border-bottom: none; }
.s-row .k { color: var(--muted); flex-shrink: 0; }
.s-row .v { font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; }
.summary .note {
  background: var(--warning-soft); border: 1px solid var(--warning-border);
  color: var(--warning); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12px; margin: 16px 0;
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.5;
}
.summary .note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.summary .btn { margin-top: 4px; }

/* ==========================================================================
   Requests
   ========================================================================== */
.request-list { display: grid; gap: 12px; }
.request-card { padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.request-card .r-title { font-weight: 600; font-size: 14.5px; }
.request-card .r-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--subtle); margin-top: 2px; }
.request-card .r-detail { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Admin request rows */
.request-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.request-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.request-row .rr-title { font-weight: 600; font-size: 14px; }
.request-row .rr-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.request-row .rr-meta { text-align: right; }
.request-card .r-status { text-align: right; }

.stepper { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.stepper .st { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--subtle); }
.stepper .st .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-muted); border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; }
.stepper .st.done { color: var(--ink-2); }
.stepper .st.done .dot { background: var(--success); border-color: var(--success); }
.stepper .st.done .dot::after { content: ""; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.stepper .st.current { color: var(--accent-ink); font-weight: 600; }
.stepper .st.current .dot { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stepper .st-line { width: 20px; height: 1px; background: var(--border-strong); }
.stepper .st-line.filled { background: var(--success); }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: grid; gap: 10px; }
.toast {
  background: var(--primary); color: var(--primary-fg);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease;
  max-width: 340px;
}
.toast .t-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.toast .t-ico svg { width: 14px; height: 14px; color: #fff; }
.toast .t-title { font-weight: 600; font-size: 13.5px; }
.toast .t-msg { font-size: 12.5px; opacity: .8; }

/* ==========================================================================
   Placeholder pages
   ========================================================================== */
.placeholder-hero { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 72px 40px; text-align: center; }
.placeholder-hero .p-icon { width: 52px; height: 52px; margin: 0 auto 22px; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); }
.placeholder-hero .p-icon svg { width: 24px; height: 24px; }
.placeholder-hero h1 { font-family: var(--font-serif); font-weight: 600; font-size: 30px; letter-spacing: 0; margin-bottom: 10px; }
.placeholder-hero p { color: var(--muted); font-size: 15px; max-width: 52ch; margin: 0 auto 28px; }
.placeholder-hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.coming-grid .cg-item { padding: 20px; }
.coming-grid .cg-item .cg-ico { color: var(--accent); margin-bottom: 12px; }
.coming-grid .cg-item .cg-ico svg { width: 20px; height: 20px; }
.coming-grid .cg-item h4 { font-size: 14px; margin-bottom: 6px; }
.coming-grid .cg-item p { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Settings
   ========================================================================== */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 1px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.settings-nav a {
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.settings-nav a svg { width: 16px; height: 16px; color: var(--subtle); }
.settings-nav a:hover { background: var(--bg-subtle); color: var(--ink); }
.settings-nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.settings-nav a.active svg { color: var(--accent); }

.settings-panel { padding: 28px; }
.settings-panel > h2 { font-size: 16px; margin-bottom: 4px; }
.settings-panel > .sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.avatar-upload { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.avatar-upload .big-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-size: 22px; font-weight: 600; flex-shrink: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .field { margin-bottom: 0; }

/* ==========================================================================
   Animations (minimal)
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.reveal { animation: rise .5s ease both; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid, .testi-grid, .service-select-grid, .agents-grid, .coming-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .config-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 90; transform: translateX(-100%); transition: transform .2s ease; width: 270px; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(26,24,21,.4); z-index: 85; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .menu-toggle { display: grid; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .request-card { grid-template-columns: 1fr; }
  .request-card .r-status { text-align: left; }
  .conn-list { grid-template-columns: 1fr; }
  .flow { flex-direction: column; gap: 10px; }
  .flow-arrow { transform: rotate(90deg); padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
  .services-grid, .testi-grid, .service-select-grid, .agents-grid, .coming-grid, .two-col { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero h1 { font-size: 42px; }
  .section-head h2 { font-size: 32px; }
  .nav-links { display: none; }
  .cta-band { padding: 48px 28px; }
  .topbar { padding: 0 16px; }
  .content { padding: 28px 18px 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Premium effects (21st-inspired)
   ========================================================================== */

/* Aurora background blobs */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(110px); opacity: .38; animation: drift 22s ease-in-out infinite; }
.aurora i:nth-child(1) { background: #5cb988; top: -14%; left: -8%; }
.aurora i:nth-child(2) { background: #e0a94e; top: 12%; right: -10%; animation-delay: -7s; }
.aurora i:nth-child(3) { background: #5fbfb4; bottom: -20%; left: 26%; animation-delay: -13s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(48px, -34px) scale(1.1); } 66% { transform: translate(-34px, 26px) scale(.94); } }

/* Animated gradient text */
.grad-text { background: linear-gradient(90deg, #5cb988, #e0b45e, #5fbfb4, #5cb988); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 7s linear infinite; }
@keyframes gradShift { to { background-position: 300% center; } }

/* Cursor-follow spotlight cards */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 79, .16), transparent 42%); opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 1; }
.spotlight:hover::after { opacity: 1; }

/* Button shine */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(0, 0, 0, .08), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn-primary:hover::after { animation: shine .75s ease; }
@keyframes shine { to { left: 135%; } }

/* Outlined text marquee */
.marquee { position: relative; overflow: hidden; padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-group img { height: 26px; width: auto; opacity: .9; transition: opacity .25s ease, transform .25s ease; }
.marquee-group img:hover { opacity: 1; transform: translateY(-2px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .b-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background-color: var(--surface); background-image: radial-gradient(120% 80% at 100% 0%, rgba(92, 185, 136, .09), transparent 55%), radial-gradient(110% 70% at 0% 100%, rgba(224, 169, 78, .07), transparent 55%); position: relative; overflow: hidden; }
.bento .b-card.span-2 { grid-column: span 2; }
.bento .b-card.span-3 { grid-column: span 3; }
.bento .b-card.span-4 { grid-column: span 4; }
.bento .b-card.span-6 { grid-column: span 6; }
.bento .b-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bento .b-eyebrow svg { width: 16px; height: 16px; }
.bento .b-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 21px; letter-spacing: 0; margin-bottom: 8px; }
.bento .b-card p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 44ch; }
.bento .b-card .b-glow { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,79,.10), transparent 70%); pointer-events: none; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="1"] { transition-delay: .08s; }
[data-reveal="2"] { transition-delay: .16s; }
[data-reveal="3"] { transition-delay: .24s; }

/* Card lift + glow */
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(47, 107, 79, .35); border-color: var(--accent-border); }

/* Floating elements */
.float { animation: floaty 6s ease-in-out infinite; }
.float.d2 { animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Nav scrolled state */
.nav.scrolled { background: rgba(18, 16, 13, .94); box-shadow: 0 1px 0 var(--border), 0 12px 32px -20px rgba(26, 24, 21, .25); }

/* Hero texture + rotator + cursor */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(236, 230, 219, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 32%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 32%, #000 25%, transparent 72%);
}

/* Service card motion */
.service-card { position: relative; overflow: hidden; transition: border-color .35s ease, box-shadow .35s ease; }
.service-card:hover { border-color: var(--accent-border); box-shadow: 0 24px 60px -24px rgba(92, 185, 136, .35); }
.service-card .tile { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.service-card:hover .tile { transform: scale(1.1) rotate(-4deg); }
.service-card .idx { transition: color .35s ease; }
.service-card:hover .idx { color: var(--accent); }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .05), transparent); transform: translateX(-160%) skewX(-18deg); transition: transform .7s ease; pointer-events: none; }
.service-card:hover::before { transform: translateX(280%) skewX(-18deg); }
.rotator { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.rotator.swap { opacity: 0; transform: translateY(-0.4em); }
.cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); margin-left: 3px; vertical-align: -0.15em; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero product mockup (bento) */
.hero-mockup { position: relative; }
.hero-mockup .glow { position: absolute; inset: -28% -18%; z-index: 0; background: radial-gradient(50% 50% at 50% 42%, rgba(92, 185, 136, .22), transparent 70%); filter: blur(28px); pointer-events: none; }
.mock-window { position: relative; z-index: 1; background: rgba(26, 22, 17, .6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .04); overflow: hidden; }
.mock-wbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-wbar .title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mock-dots { display: flex; gap: 6px; margin-left: auto; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-body { padding: 14px; display: grid; gap: 10px; }
.mock-card { background: rgba(255, 255, 255, .035); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-title { font-weight: 600; font-size: 13px; }
.mock-sub { font-size: 11.5px; color: var(--subtle); }
.mock-flow { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.mock-flow .node { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 9px; }
.mock-flow .node svg { width: 13px; height: 13px; color: var(--accent); }
.mock-arrow { color: var(--subtle); }
.mock-num { font-family: var(--font-mono); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.mock-bar { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.mock-bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
.mock-monograms { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mock-monograms span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.mock-steps { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.mock-steps i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.mock-steps i.done { background: var(--success); }
.mock-steps i.now { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mock-steps b { flex: 1; height: 1px; background: var(--border-strong); }

/* Retro animated grid */
.retro-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; perspective: 400px; }
.retro-grid::before { content: ""; position: absolute; left: -60%; right: -60%; top: 0; bottom: -30%; background-image: linear-gradient(to right, rgba(236, 230, 219, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(236, 230, 219, .05) 1px, transparent 1px); background-size: 44px 44px; transform: rotateX(62deg); animation: grid-move 4s linear infinite; }
@keyframes grid-move { 0% { background-position: 0 0; } 100% { background-position: 0 44px; } }

.float-soft { animation: floaty-sm 8s ease-in-out infinite; }
@keyframes floaty-sm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Work / portfolio cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; }
.work-preview { padding: 20px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; min-height: 190px; }
.work-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.work-meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin-bottom: 10px; }
.work-body h3 { font-family: var(--font-serif); font-weight: 600; font-size: 20px; letter-spacing: 0; margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.work-result { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; gap: 10px; }
.work-stat { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.work-label { font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

/* Marketing asset mocks */
.ad-social, .ad-email, .ad-ad, .ad-serp, .ad-analytics, .ad-content { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ad-social { padding: 14px; }
.ad-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ad-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0b0a08; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.ad-name { font-weight: 600; font-size: 13px; }
.ad-handle { font-size: 11.5px; color: var(--subtle); }
.ad-net { margin-left: auto; height: 18px; width: auto; opacity: .85; }
.ad-text { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.ad-eng { margin-top: 10px; font-size: 11.5px; color: var(--subtle); display: flex; gap: 16px; }
.ad-email { padding: 14px; }
.ad-subject { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.ad-preview { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.ad-cta { display: inline-block; background: var(--primary); color: var(--primary-fg); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); }
.ad-copy { padding: 14px; }
.ad-headline { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ad-body { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ad-media { height: 62px; background: linear-gradient(135deg, rgba(92, 185, 136, .22), rgba(224, 169, 78, .18)); display: grid; place-items: center; color: var(--accent); font-family: var(--font-serif); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.ad-serp { padding: 14px; }
.ad-domain { font-size: 11.5px; color: var(--accent); }
.ad-link { font-size: 14px; font-weight: 600; color: #9ec7ff; margin: 2px 0 4px; }
.ad-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ad-analytics { padding: 14px; }
.ad-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ad-kpis div { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.ad-kpis .k { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--accent); }
.ad-kpis .l { font-size: 10.5px; color: var(--subtle); }
.ad-content { display: flex; gap: 12px; align-items: center; padding: 14px; }
.ad-thumb { width: 58px; height: 58px; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(92, 185, 136, .22), rgba(130, 168, 214, .2)); flex-shrink: 0; }
.ad-content .t { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.ad-content .e { font-size: 11.5px; color: var(--muted); }

/* Service result teaser */
.service-result { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; }
.service-result .n { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--accent); }
.service-result .l { font-size: 12.5px; color: var(--subtle); }

/* Work cards as links */
.work-card { text-decoration: none; color: inherit; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card { display: flex; flex-direction: column; padding: 28px; }
.pricing-card .p-plan { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.pricing-card .p-price { font-family: var(--font-serif); font-size: 34px; font-weight: 600; letter-spacing: 0; margin: 14px 0 4px; }
.pricing-card .p-price small { font-size: 15px; color: var(--subtle); font-family: var(--font-sans); font-weight: 400; }
.pricing-card .p-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.pricing-card ul li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.pricing-card ul li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.pricing-card .btn { margin-top: auto; }
.pricing-card.featured { border-color: var(--accent-border); box-shadow: inset 0 0 0 1px var(--accent-border); }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Tilt + hover glow */
.b-card, .testi-card, .service-card { transform-style: preserve-3d; will-change: transform; }
.b-card:hover, .testi-card:hover, .service-card:hover { border-color: var(--accent-border); box-shadow: 0 26px 70px -24px rgba(92, 185, 136, .42); }

/* Rotating mockup panels */
.mock-stage { display: grid; }
.mock-panel { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.mock-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.skel { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); margin-bottom: 8px; }
.skel.w60 { width: 60%; }
.skel.w80 { width: 80%; }
.skel.w40 { width: 40%; }
.mock-list { display: grid; gap: 9px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.mock-list .item { display: flex; align-items: center; gap: 8px; }
.mock-list .item i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Stats / counters */
.stat-num { font-variant-numeric: tabular-nums; }

/* Bento responsive */
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .bento .b-card { grid-column: span 1; } .bento .b-card.span-3, .bento .b-card.span-4, .bento .b-card.span-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .b-card { grid-column: span 1 !important; } .marquee-track span { font-size: 36px; } }


/* ==========================================================================
   Aurora — full-page canvas backdrop (adapted from 21st.dev "Aurora Background")
   ========================================================================== */
#aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .85;
}
@media (prefers-reduced-motion: reduce) { #aurora { opacity: .6; } }

/* Marquee divider — compact logo strip repeated between sections */
.marquee-divider { padding: 20px 0; }
.marquee-divider .marquee-group { gap: 40px; padding-right: 40px; }
.marquee-divider .marquee-group img { height: 20px; opacity: .78; }

@media (max-width: 900px) { .nav-links { gap: 16px; } }

