/* =====================================================
   Skills For Real Teams - Website Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #101318;
  --ink-soft: #3f4856;
  --muted: #6c7480;
  --paper: #fbfaf7;
  --paper-warm: #f4f1ea;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: #ffffff;
  --line: rgba(16, 19, 24, .11);
  --line-strong: rgba(16, 19, 24, .18);
  --brand: #176b87;
  --brand-dark: #0d4d63;
  --brand-soft: rgba(23, 107, 135, .1);
  --accent: #d66a3f;
  --accent-soft: rgba(214, 106, 63, .12);
  --dark: #11151c;
  --dark-soft: #1b212b;
  --dark-line: rgba(255, 255, 255, .12);
  --dark-muted: #a8b0bc;
  --code: #0d637f;
  --green: #2f8f5b;
  --yellow: #b98b15;
  --red: #b4533e;
  --purple: #7157a8;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(23, 32, 42, .12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  color: var(--code);
  font-size: .92em;
}

/* -- Hero ------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 7.25rem 1.25rem 5rem;
  display: flex;
  align-items: center;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(244,241,234,.72)),
    linear-gradient(90deg, rgba(23,107,135,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23,107,135,.06) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.72) 58%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 4.5rem;
  align-items: center;
}

.hero-content { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .78rem;
  border: 1px solid rgba(23, 107, 135, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 1.65rem;
  box-shadow: 0 10px 35px rgba(23, 107, 135, .08);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 760px;
  font-size: 6.4rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: .96;
  margin-bottom: 1.45rem;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 560px;
  margin-bottom: .8rem;
}

.hero-sub-en {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 570px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 650;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 14px 34px rgba(17, 21, 28, .2);
}

.btn-primary:hover { box-shadow: 0 18px 44px rgba(17, 21, 28, .26); }

.btn-secondary {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: rgba(23,107,135,.34);
  background: #fff;
}

.install-box {
  width: min(100%, 580px);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem .9rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--code);
  box-shadow: 0 14px 45px rgba(23, 32, 42, .08);
  position: relative;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.install-box:hover {
  border-color: rgba(23, 107, 135, .38);
  box-shadow: 0 18px 60px rgba(23, 107, 135, .13);
  transform: translateY(-1px);
}

.install-box span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-box .copy-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, background .2s ease;
}

.install-box .copy-btn:hover {
  color: var(--ink);
  background: var(--brand-soft);
}

.copy-toast {
  position: absolute;
  right: .7rem;
  top: -2.2rem;
  background: var(--dark);
  color: #fff;
  font-size: .74rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  transform: translateY(4px);
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual {
  border: 1px solid rgba(17, 21, 28, .12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.56));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
  transform: translateY(10px);
  animation: visualIn .7s ease both;
}

@keyframes visualIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(10px); }
}

.visual-toolbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: .48rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7d0c4;
}

.visual-toolbar span:nth-child(1) { background: #e06b54; }
.visual-toolbar span:nth-child(2) { background: #e2b84f; }
.visual-toolbar span:nth-child(3) { background: #69a46f; }

.visual-toolbar strong {
  margin-left: .45rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}

.visual-body {
  padding: 1.2rem;
  background:
    radial-gradient(circle at 24% 14%, rgba(23,107,135,.13), transparent 29%),
    linear-gradient(180deg, #fff, #f5f2eb);
}

.pipeline-map {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  margin-bottom: 1rem;
}

.pipeline-node {
  min-height: 128px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  transition: transform .22s ease, box-shadow .22s ease;
}

.pipeline-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(23, 32, 42, .12);
}

.pipeline-node.active {
  background: var(--dark);
  color: #fff;
  border-color: transparent;
}

.pipeline-node span {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .78rem;
  margin-bottom: 1rem;
}

.pipeline-node strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.pipeline-node small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: .25rem;
}

.pipeline-node.active small { color: var(--dark-muted); }

.pipeline-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(23,107,135,.18), rgba(23,107,135,.68), rgba(23,107,135,.18));
}

.artifact-preview,
.terminal-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
}

.artifact-preview {
  padding: 1rem;
  margin-bottom: .9rem;
}

.artifact-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
  font-weight: 650;
}

.artifact-head em {
  font-style: normal;
  color: var(--green);
  background: rgba(47,143,91,.1);
  border: 1px solid rgba(47,143,91,.2);
  border-radius: 999px;
  padding: .12rem .48rem;
  font-size: .72rem;
}

.artifact-line {
  height: 9px;
  width: 72%;
  border-radius: 999px;
  background: #e4ded4;
  margin-bottom: .55rem;
}

.artifact-line.long { width: 92%; }
.artifact-line.medium { width: 56%; }

.artifact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding-top: .35rem;
}

.artifact-checks span {
  border: 1px solid rgba(23,107,135,.16);
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .72rem;
  font-weight: 600;
}

.terminal-preview {
  background: var(--dark);
  color: #d9e1ea;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
}

.terminal-preview strong {
  color: #8fd6a4;
  font-weight: 500;
}

/* -- Shared Sections ------------------------------------ */
section { padding: 7rem 1.25rem; }

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  max-width: 760px;
  font-size: 3.7rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 740px;
  margin-bottom: 3rem;
  font-size: 1.02rem;
  line-height: 1.85;
}

/* -- Main Path ------------------------------------------ */
.main-path {
  background: var(--dark);
  color: #fff;
}

.main-path .section-kicker,
.main-path .section-desc { color: var(--dark-muted); }

.main-path .section-kicker::before { background: var(--accent); }

.flow-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.flow-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.group-label {
  grid-column: 1 / -1;
  color: var(--dark-muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flow-step {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  min-height: 176px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .82rem;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.flow-step:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border-color: rgba(255,255,255,.2);
}

.product-flow .flow-step { box-shadow: inset 0 2px 0 rgba(23,107,135,.95); }
.delivery-flow .flow-step { box-shadow: inset 0 2px 0 rgba(47,143,91,.95); }

.step-index {
  width: fit-content;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .78rem;
}

.flow-step strong {
  font-family: var(--font-mono);
  color: #f4f7fb;
  font-size: .9rem;
  line-height: 1.4;
  word-break: break-word;
}

.flow-step small {
  color: var(--dark-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.flow-bridge {
  align-self: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 999px;
  padding: .42rem .78rem;
  font-weight: 750;
  font-size: .76rem;
  letter-spacing: 0;
}

.optional-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--dark-muted);
  font-size: .88rem;
}

.optional-row span {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: .45rem .82rem;
}

.optional-row code {
  color: #9ed5e7;
}

/* -- Scenarios ------------------------------------------ */
.scenarios {
  background: var(--paper-warm);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scenario-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem;
  box-shadow: 0 14px 42px rgba(23, 32, 42, .07);
  min-height: 338px;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  backdrop-filter: blur(12px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(23, 32, 42, .1);
  border-color: var(--line-strong);
}

.debt-card { box-shadow: inset 0 2px 0 var(--purple), 0 14px 42px rgba(23, 32, 42, .07); }
.harness-card { box-shadow: inset 0 2px 0 var(--red), 0 14px 42px rgba(23, 32, 42, .07); }
.doc-card { box-shadow: inset 0 2px 0 var(--yellow), 0 14px 42px rgba(23, 32, 42, .07); }

.scenario-label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scenario-card h3 {
  font-size: 1.35rem;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: 0;
}

.scenario-card p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.78;
}

.scenario-flow {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.scenario-flow code {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(23,107,135,.16);
  border-radius: 8px;
  padding: .22rem .48rem;
  font-size: .78rem;
}

.scenario-flow span {
  color: var(--muted);
  font-weight: 750;
}

/* -- Skill Index ---------------------------------------- */
.skill-index-section {
  background: var(--paper);
}

.skill-index {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: 0 18px 60px rgba(23, 32, 42, .08);
}

.index-row {
  display: grid;
  grid-template-columns: 92px minmax(230px, 330px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}

.index-row:hover { background: #f8f6f1; }
.index-row:last-child { border-bottom: 0; }

.index-domain {
  display: inline-flex;
  justify-content: center;
  border: 1px solid rgba(23,107,135,.2);
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: .18rem .5rem;
  font-size: .75rem;
  font-weight: 700;
}

.index-row code {
  font-size: .86rem;
  word-break: break-word;
}

.index-row p {
  color: var(--muted);
  font-size: .9rem;
}

/* -- Footer --------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 1rem 2.4rem;
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
  position: relative;
  background: #fff;
}

.footer-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
  opacity: .6;
}

.footer-tagline {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .7rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* -- Responsive ----------------------------------------- */
@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero h1 {
    font-size: 5.1rem;
  }

  .section-title {
    font-size: 3.15rem;
  }

  .hero-visual {
    transform: none;
  }

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

  .flow-lane {
    grid-template-columns: 1fr;
  }

  .flow-bridge {
    justify-self: start;
  }

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

@media (max-width: 760px) {
  section { padding: 5rem 1rem; }

  .hero {
    padding: 4.6rem 1rem 3.5rem;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-sub {
    font-size: 1.18rem;
  }

  .section-title {
    font-size: 2.45rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .install-box {
    font-size: .75rem;
  }

  .pipeline-map {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .pipeline-line {
    width: 1px;
    height: 24px;
    justify-self: center;
  }

  .terminal-preview {
    flex-direction: column;
    gap: .25rem;
  }

  .flow-group {
    grid-template-columns: 1fr;
  }

  .index-row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .index-domain {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.72rem;
  }

  .section-title {
    font-size: 2.08rem;
  }

  .visual-body {
    padding: .8rem;
  }

  .artifact-checks span {
    width: 100%;
  }
}
