﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --ink-900: #0b1a1f;
  --ink-700: #1b2d34;
  --ink-500: #3b4c54;
  --ink-300: #7a8a92;
  --accent-500: #f97316;
  --accent-300: #fdba74;
  --teal-500: #14b8a6;
  --teal-700: #0f766e;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(15, 118, 110, 0.18);
  --shadow: 0 18px 45px rgba(11, 26, 31, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: #f5f1ea;
  min-height: 100vh;
  position: relative;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #fff4e6, transparent 55%),
              radial-gradient(circle at 20% 60%, #e6fffb, transparent 55%),
              radial-gradient(circle at 80% 20%, #fef3c7, transparent 45%);
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  pointer-events: none;
}

header, main {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 3.5rem 6vw 2rem;
  align-items: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--teal-700);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 0 0 0.5rem;
}

.hero__sub {
  color: var(--ink-500);
  max-width: 32rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero__actions {
  margin-top: 1.6rem;
}

.chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero__status {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}

.status__label {
  font-size: 0.85rem;
  color: var(--ink-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status__value {
  font-size: 1.6rem;
  margin: 0.4rem 0;
  font-weight: 600;
}

.status__hint {
  color: var(--ink-500);
  font-size: 0.95rem;
}

.section {
  padding: 1rem 6vw 4rem;
}

.section__header h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.section__header p {
  color: var(--ink-500);
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.card__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.card__title h3 {
  margin: 0;
  font-size: 1.3rem;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-300);
}

.card__path {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink-500);
  background: rgba(15, 118, 110, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  word-break: break-all;
}

.card__meta {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.4;
}

.card__setup {
  font-size: 0.85rem;
  color: var(--ink-700);
  background: rgba(249, 115, 22, 0.12);
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
}

.card__actions {
  display: grid;
  gap: 0.6rem;
}

input[type="file"],
input[type="text"],
input[type="password"],
select {
  border: 1px dashed rgba(11, 26, 31, 0.2);
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
}

select {
  border-style: solid;
}

button {
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary {
  background: var(--teal-700);
  color: white;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.25);
}

button.secondary {
  background: rgba(249, 115, 22, 0.14);
  color: #9a3412;
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--teal-700);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.card__status {
  background: rgba(11, 26, 31, 0.06);
  border-radius: 12px;
  padding: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-700);
  min-height: 2.4rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 20, 0.6);
}

.modal__panel {
  position: relative;
  background: #101a1f;
  color: #f3f4f6;
  border-radius: 16px;
  width: min(840px, 90vw);
  max-height: 80vh;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 25px 55px rgba(8, 15, 20, 0.4);
  overflow: hidden;
}

.modal__panel--wide {
  background: #f8fafc;
  color: var(--ink-900);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(15, 118, 110, 0.3);
}

.modal__content {
  margin: 0;
  padding: 1rem 1.2rem;
  overflow: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.modal__body {
  padding: 1.2rem;
  overflow: auto;
}

.icon-button {
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
}

.form {
  display: grid;
  gap: 1rem;
}

.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form__hint {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.form__error {
  color: #b91c1c;
  font-weight: 600;
}

.step-list {
  display: grid;
  gap: 1rem;
}

.step {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.15);
  display: grid;
  gap: 0.6rem;
}

.step__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step__title {
  font-weight: 600;
}

.step__status {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-700);
}

.step__status.done {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.8rem;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 24, 0.7);
  display: grid;
  place-items: center;
  z-index: 20;
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  width: min(380px, 90vw);
  box-shadow: 0 20px 40px rgba(8, 15, 20, 0.25);
  display: grid;
  gap: 1rem;
}

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

@media (max-width: 720px) {
  .hero {
    padding-top: 2.6rem;
  }

  .hero__meta {
    gap: 0.4rem;
  }

  .card {
    padding: 1.1rem;
  }
}

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