:root {
  --ink: #14181f;
  --ink-soft: #2a3340;
  --paper: #eef1f4;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #f7f9fb;
  --line: rgba(20, 24, 31, 0.12);
  --mint: #1f9d8a;
  --mint-deep: #0f6f63;
  --signal: #e85d4c;
  --signal-deep: #c24739;
  --muted: #5c6675;
  --shadow: 0 24px 60px rgba(20, 24, 31, 0.12);
  --radius: 18px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

code {
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 10% 0%, rgba(31, 157, 138, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(232, 93, 76, 0.14), transparent 50%),
    linear-gradient(160deg, #e8edf2 0%, #f4f6f8 45%, #e6ebe8 100%);
}

.grid-plane {
  position: absolute;
  inset: -20%;
  background-image: linear-gradient(rgba(20, 24, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(900px) rotateX(58deg) translateY(-12%);
  animation: gridDrift 28s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
}

.signal-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orbFloat 16s ease-in-out infinite alternate;
}

.signal-orb--a {
  width: 280px;
  height: 280px;
  background: rgba(31, 157, 138, 0.35);
  top: 8%;
  left: -4%;
}

.signal-orb--b {
  width: 220px;
  height: 220px;
  background: rgba(232, 93, 76, 0.28);
  right: 4%;
  bottom: 12%;
  animation-delay: -7s;
}

@keyframes gridDrift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      0 48px,
      48px 0;
  }
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(24px, 18px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.brand-hero {
  margin-bottom: 2.75rem;
  max-width: 40rem;
  animation: riseIn 0.7s ease-out both;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 4.75rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.hero-support {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font: 600 0.9rem/1 var(--font-body);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 157, 138, 0.45);
}

.chip--active {
  background: var(--ink);
  color: #f4f7f6;
  border-color: var(--ink);
}

.auth-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
  animation: riseIn 0.8s ease-out 0.12s both;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 1.6rem;
}

.panel-head {
  margin-bottom: 1.35rem;
}

.panel-head h2,
.guide-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.label-text,
label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mode-btn {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink-soft);
  font: 600 0.92rem/1.2 var(--font-body);
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.mode-btn:hover {
  border-color: rgba(31, 157, 138, 0.5);
}

.mode-btn.active {
  background: rgba(31, 157, 138, 0.12);
  border-color: var(--mint);
  color: var(--mint-deep);
}

textarea,
input[type='text'] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: 400 0.98rem/1.45 var(--font-body);
  resize: vertical;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea:focus,
input[type='text']:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(31, 157, 138, 0.18);
}

.helper-text {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-deep) 100%);
  color: #fff;
  font: 700 1rem/1 var(--font-display);
  letter-spacing: -0.01em;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    opacity 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.75;
}

.hidden {
  display: none !important;
}

.results-section {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  animation: riseIn 0.45s ease-out both;
}

.results-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.results-content p {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.highlight-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.highlight-list li {
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--mint);
  background: rgba(31, 157, 138, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
}

.results-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.result-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--mint-deep);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(31, 157, 138, 0.35);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.result-link:hover {
  background: rgba(31, 157, 138, 0.12);
  border-color: var(--mint);
}

.guide-steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 1.5rem;
}

.guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mint-deep);
  letter-spacing: -0.03em;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

.config-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  display: grid;
  gap: 0.35rem;
  word-break: break-all;
}

.muted {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .shell {
    padding-top: 2.25rem;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }
}
