/* =====================================================================
 * tadpie.space — modern hub
 * Monochrome + indigo accent. Inter sans + JetBrains Mono.
 * Single-page hub: identity · what I do · stack · access · contact.
 * ===================================================================== */

:root {
  --bg:           #FAFAFA;
  --surface:      #FFFFFF;
  --surface-2:    #F4F4F5;
  --surface-3:    #FAFAFA;
  --ink:          #0A0A0A;
  --ink-2:        #525252;
  --ink-3:        #A3A3A3;
  --ink-4:        #D4D4D4;
  --border:       rgba(10, 10, 10, 0.08);
  --border-2:     rgba(10, 10, 10, 0.14);

  --accent:       #4F46E5;
  --accent-soft:  rgba(79, 70, 229, 0.08);
  --accent-hover: #4338CA;

  --green:        #10B981;
  --red:          #EF4444;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --radius-lg:    20px;
  --radius:       12px;
  --radius-sm:    8px;

  --shadow-sm:    0 1px 2px rgba(10, 10, 10, 0.04), 0 0 0 1px rgba(10, 10, 10, 0.04);
  --shadow:       0 4px 16px rgba(10, 10, 10, 0.06), 0 0 0 1px rgba(10, 10, 10, 0.06);
  --shadow-lg:    0 14px 40px rgba(10, 10, 10, 0.10), 0 0 0 1px rgba(10, 10, 10, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(79, 70, 229, 0.08), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(79, 70, 229, 0.05), transparent 55%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

::selection { background: var(--accent-soft); color: var(--ink); }

/* =====================================================================
 * hub — page container
 * ===================================================================== */
.hub {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =====================================================================
 * top — minimal header
 * ===================================================================== */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--ink);
  border-radius: 10px;
  justify-content: center;
  transition: transform .15s ease;
}
.logo:hover { transform: scale(1.04); }
.logo-letter {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.05em;
}
.logo-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* =====================================================================
 * card-block — central card with sections
 * ===================================================================== */
.card-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: auto;
}

.block {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.block:last-child { border-bottom: none; }

.block-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

/* =====================================================================
 * identity block
 * ===================================================================== */
.lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.line-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}
.line-role {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.3;
  text-transform: lowercase;
}

.bio {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.bio strong {
  color: var(--ink);
  font-weight: 600;
}

.meta-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.meta-row li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.m-k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.m-v {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* =====================================================================
 * chips
 * ===================================================================== */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  cursor: default;
}
.chips li:hover {
  background: var(--surface);
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.chips-muted li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* =====================================================================
 * services — numbered offerings list
 * ===================================================================== */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.services li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: padding-left .18s ease;
}
.services li:first-child {
  border-top: none;
  padding-top: 4px;
}
.services li:last-child {
  padding-bottom: 4px;
}
.services li:hover {
  padding-left: 4px;
}
.s-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding-top: 4px;
}
.s-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.s-body strong {
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.s-body span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.003em;
}

/* =====================================================================
 * gate
 * ===================================================================== */
.block-gate {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%);
}

.gate { display: flex; flex-direction: column; gap: 8px; }

.gate-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.gate-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  letter-spacing: -0.005em;
}
.gate-input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}
.gate-input:hover {
  border-color: var(--ink-3);
}
.gate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.gate-btn {
  background: var(--ink);
  color: #FFFFFF;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.gate-btn:hover { background: #1F1F1F; }
.gate-btn:active { transform: scale(0.98); }
.gate-btn:disabled { opacity: 0.5; cursor: wait; }
.gate-btn .arrow { font-size: 14px; transition: transform .15s ease; }
.gate-btn:hover .arrow { transform: translateX(3px); }

.gate-status {
  margin: 4px 0 0;
  min-height: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.gate-status.is-loading { color: var(--ink-2); }
.gate-status.is-error   { color: var(--red); }
.gate-status.is-ok      { color: var(--green); }

/* =====================================================================
 * contact block
 * ===================================================================== */
.block-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.contact-link .arrow {
  font-size: 13px;
  transition: transform .15s ease;
  color: var(--ink-3);
}
.contact-link:hover {
  color: var(--accent);
}
.contact-link:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.contact-link-sec {
  font-weight: 500;
  color: var(--ink-2);
  font-size: 13px;
}
.contact-link-sec:hover .arrow {
  transform: translate(2px, -2px);
}

/* =====================================================================
 * foot — page footer
 * ===================================================================== */
.foot {
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  justify-content: center;
  flex-wrap: wrap;
}
.dot { color: var(--ink-4); font-size: 11px; }

/* =====================================================================
 * reveal animation
 * ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .6s cubic-bezier(.2, .7, .2, 1),
    transform .6s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .status-dot { animation: none !important; }
}

/* =====================================================================
 * responsive
 * ===================================================================== */
@media (max-width: 520px) {
  .hub { padding: 20px 14px 28px; }
  .top { margin-bottom: 22px; }
  .block { padding: 22px 22px; }
  .line-name { font-size: 30px; }
  .meta-row { gap: 18px; }
  .gate-row { flex-direction: column; }
  .gate-btn { justify-content: center; padding: 14px 18px; }
  .block-contact { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
}
