/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f7f7;
  --surface:   #ffffff;
  --border:    #e2e8e8;
  --text:      #1a2424;
  --muted:     #6b8080;
  --accent:    #00bebe;
  --accent-h:  #009999;
  --radius:    10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ── Nav button ───────────────────────────────────────── */
.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__link {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.nav__link:hover { color: var(--text); border-color: #b0c8c8; }

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.section__sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* ── Grid ─────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 16px;
}
.grid--2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .grid--2 { grid-template-columns: 1fr; }
}
.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ── Tool Cards ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(0,190,190,0.1);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0,190,190,0.1);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.card__icon svg { width: 20px; height: 20px; }

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.card__desc {
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.15s;
}
.card__link:hover { gap: 10px; color: var(--accent-h); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.15s, transform 0.12s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); opacity: 1; }

/* ── Modal ────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal__sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.modal__close:hover { color: var(--text); }

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Password input ───────────────────────────────────── */
.pw-input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.pw-input:focus { border-color: var(--accent); }

.pw-error {
  color: #dc2626;
  font-size: 0.825rem;
  margin-top: 8px;
  visibility: hidden;
}

/* ── Credentials table ────────────────────────────────── */
.creds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.creds-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 12px 12px;
}
.creds-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--border);
}
.creds-table tr:hover td { background: var(--bg-alt); }
.creds-table code {
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.825rem;
  color: var(--accent-h);
}
