/* ============================================================
   Arraytics — Agentic AI Workshop
   Design system: warm off-white, deep ink, single teal accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Fraunces:opsz,wght@9..144,300;9..144,400&display=swap');

:root {
  --bg:        #FAF9F6;
  --bg-2:      #F2F0EA;
  --ink:       #0F1B17;
  --ink-2:     #1A2924;
  --muted:     #6B7570;
  --muted-2:   #A5ABA6;
  --line:      #E2DFD7;
  --line-2:    #CFCBC0;
  --accent:    #14B88C;
  --accent-2:  #0E8E6C;
  --accent-soft: #D5F0E6;
  --code-bg:   #0F1B17;
  --code-fg:   #E8E6DF;
  --code-dim:  #6F7C76;
  --code-accent: #4ED9A6;

  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-serif: 'Fraunces', Georgia, serif;
}

/* ---- links ---- */
a {
  color: inherit;
  text-decoration: none;
}
a.inline-link {
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent-soft);
  transition: color 120ms, border-color 120ms;
}
a.inline-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.dark a.inline-link, .ink-2 a.inline-link {
  color: var(--accent);
  border-bottom-color: rgba(78,217,166,0.3);
}

/* ---- resources card grid ---- */
.res-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.res-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 32px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  transition: border-color 140ms, transform 140ms, box-shadow 140ms;
  overflow: hidden;
}
.res-card::after {
  content: "↗";
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--f-mono);
  font-size: 26px;
  color: var(--muted-2);
  transition: color 140ms, transform 140ms;
}
.res-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(15,27,23,0.25);
}
.res-card:hover::after {
  color: var(--accent-2);
  transform: translate(2px, -2px);
}
.res-label {
  font-family: var(--f-mono);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.res-card[data-type="docs"] .res-label    { color: var(--muted); }
.res-card[data-type="skills"] .res-label  { color: var(--accent-2); }
.res-card[data-type="spec"] .res-label    { color: #B8651F; }
.res-card[data-type="tooling"] .res-label { color: #2A4DB0; }
.res-name {
  font-family: var(--f-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.res-name span {
  color: var(--muted);
  font-weight: 500;
}
.res-desc {
  font-size: 22px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- slide base ---- */
section.slide {
  background: #FDFDFE;
  color: var(--ink);
  font-family: var(--f-sans);
  padding: 170px 100px 140px 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

section.slide.dark {
  background: var(--ink);
  color: var(--bg);
}

section.slide.ink-2 {
  background: var(--ink-2);
  color: var(--bg);
}

section.slide.warm {
  background: #FDFDFE;
}

/* ---- chrome: tiny marker label top-left ---- */
.marker {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
  margin-bottom: 56px;
}
.marker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.dark .marker { color: var(--muted-2); }

/* ---- chrome: footer ---- */
.footer {
  position: absolute;
  left: 100px;
  right: 100px;
  bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 24px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer .brand {
  display: flex; align-items: center; gap: 12px;
}
.footer .brand span:not(.mark) {
  display: none;
}
.footer .brand .mark {
  width: 14px; height: 14px;
  background: var(--accent);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  display: inline-block;
}
.dark .footer { color: var(--muted-2); }

/* ---- titles ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px 0;
}
.dark .eyebrow { color: var(--accent); }

h1.title {
  font-family: var(--f-sans);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}

h2.title {
  font-family: var(--f-sans);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h3.sub {
  font-family: var(--f-sans);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink-2);
}

p.body {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 1400px;
  margin: 0;
  text-wrap: pretty;
}

p.small { font-size: 30px; line-height: 1.45; color: var(--muted); margin: 0; }

.mono { font-family: var(--f-mono); }

/* ---- cover ---- */
.cover-display {
  font-family: var(--f-sans);
  font-size: 180px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
  text-wrap: balance;
}
.cover-display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}

/* ---- section divider slide ---- */
.section-divider {
  justify-content: flex-end;
  gap: 56px;
}
.section-divider > div:first-child {
  margin-top: auto;
}
.section-divider .num {
  font-family: var(--f-mono);
  font-size: 44px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.section-divider .title-block {
  font-family: var(--f-sans);
  font-size: 176px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
  color: var(--bg);
}
.section-divider .lede {
  font-size: 34px;
  color: var(--muted-2);
  max-width: 1100px;
  line-height: 1.4;
}

/* ---- grids ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ---- tiles ---- */
.tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tile .label {
  font-family: var(--f-mono);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.tile h4 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
.tile p {
  font-size: 24px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* ---- code block ---- */
.code {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--f-mono);
  font-size: 24px;
  line-height: 1.55;
  padding: 40px 44px;
  border-radius: 8px;
  white-space: pre;
  overflow: hidden;
  position: relative;
}
.code .k { color: #F0B86E; }    /* keyword */
.code .s { color: #7EC4A1; }    /* string */
.code .c { color: var(--code-dim); font-style: italic; }
.code .p { color: var(--code-accent); } /* prompt/path */
.code .u { color: #E8E6DF; }
.code .cm { color: #4ED9A6; }   /* command */
.code .d { color: var(--code-dim); }
.code .hl { background: rgba(78,217,166,0.12); padding: 0 4px; border-radius: 2px; }
.code-header {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-transform: uppercase;
}
.code-header .dots {
  display: inline-flex; gap: 6px;
}
.code-header .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2); display: inline-block;
}

/* inline code chip */
.chip {
  font-family: var(--f-mono);
  font-size: 0.85em;
  background: var(--bg-2);
  color: var(--ink);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ---- bullet list ---- */
ul.blist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
ul.blist li {
  font-size: 30px;
  line-height: 1.38;
  color: var(--ink-2);
  padding-left: 34px;
  position: relative;
}
ul.blist li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 16px;
}
ul.blist li b { color: var(--ink); font-weight: 600; }
ul.blist.tight li { font-size: 26px; }

ul.dash {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
ul.dash li {
  font-size: 28px;
  line-height: 1.4;
  color: var(--ink-2);
  padding-left: 32px;
  position: relative;
}
ul.dash li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--f-mono);
}

/* ---- exercise box ---- */
.exercise {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 56px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.exercise .tag {
  font-family: var(--f-mono);
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.exercise .tag .mark {
  width: 10px; height: 10px;
  background: var(--accent);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.exercise h4 {
  font-family: var(--f-sans);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.exercise .task {
  font-size: 26px;
  line-height: 1.5;
  color: var(--muted-2);
  font-family: var(--f-sans);
}
.exercise .steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: ex;
}
.exercise .steps li {
  counter-increment: ex;
  list-style: none;
  font-size: 24px;
  line-height: 1.45;
  color: var(--code-fg);
  padding-left: 48px;
  position: relative;
}
.exercise .steps li::before {
  content: counter(ex, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--f-mono);
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0.05em;
}

/* ---- big number / stat ---- */
.bignum {
  font-family: var(--f-sans);
  font-size: 320px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: var(--ink);
}
.bignum.accent { color: var(--accent-2); }

/* ---- quote ---- */
.pullquote {
  font-family: var(--f-serif);
  font-size: 88px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  font-style: normal;
  position: relative;
}
.pullquote::before {
  content: "\201C";
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.4em;
  line-height: 0.9;
  position: absolute;
  left: -0.55em;
  top: -0.05em;
}
.pullquote em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
  background: linear-gradient(transparent 70%, var(--accent-soft) 70%);
  padding: 0 0.06em;
  white-space: nowrap;
}
.pullquote .mark {
  color: var(--accent);
  font-family: var(--f-serif);
}

/* ---- compare columns ---- */
.compare {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
}
.compare .col {
  padding: 44px 40px;
  display: flex; flex-direction: column; gap: 22px;
}
.compare .col.a {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
}
.compare .col.b {
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
}
.compare .vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  color: var(--muted-2);
  font-size: 22px;
  letter-spacing: 0.12em;
}
.compare h5 {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 0;
}
.compare .col.b h5 { color: var(--accent); }
.compare .col h6 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px 0;
  color: inherit;
}
.compare ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.compare ul li { font-size: 24px; line-height: 1.4; }
.compare .col.a ul li { color: var(--muted); }
.compare .col.b ul li { color: var(--muted-2); }

/* ---- kbd ---- */
.kbd {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 56px; height: 56px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-bottom-width: 4px;
  border-radius: 10px;
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.dark .kbd {
  background: var(--ink-2);
  border-color: var(--code-dim);
  color: var(--bg);
}

/* ---- misc ---- */
.hr {
  height: 1px; background: var(--line); width: 100%;
}
.dark .hr { background: #2A3B35; }

.logo-mark {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #33C5A0 0%, #1E8C6D 100%);
  clip-path: polygon(10% 100%, 50% 0, 90% 100%);
  position: relative;
}

/* triangle + dot (arraytics-inspired) */
.ar-mark {
  display: inline-flex; align-items: flex-end; gap: 6px;
}
.ar-mark .tri {
  width: 38px; height: 44px;
  background: linear-gradient(180deg, #3BC9A6 0%, #14B88C 100%);
  clip-path: polygon(50% 0, 0 100%, 25% 100%, 50% 40%, 75% 100%, 100% 100%);
}
.ar-mark .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #3BC9A6;
  margin-bottom: 2px;
}

/* larger */
.ar-mark.lg .tri { width: 76px; height: 88px; }
.ar-mark.lg .dot { width: 26px; height: 26px; }

/* table */
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-sans);
}
table.tbl th, table.tbl td {
  text-align: left;
  padding: 20px 20px;
  font-size: 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tbl th {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
table.tbl td b { font-weight: 600; color: var(--ink); }

/* stepflow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
.flow .step {
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
  border-radius: 8px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.flow .step .n {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.flow .step h5 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
.flow .step p {
  font-size: 22px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* pill list */
.pills {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.pills .pill {
  font-family: var(--f-mono);
  font-size: 20px;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
}
.pills .pill.accent {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ---- opt-in form ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.optin-form { margin: 0; }
.optin-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px;
  transition: border-color 140ms, box-shadow 140ms;
}
.optin-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 140, 0.12);
}
.optin-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  padding: 14px 16px;
}
.optin-input::placeholder { color: var(--muted-2); }
.optin-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  background: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 140ms, transform 140ms;
}
.optin-button:hover {
  background: var(--accent-2);
}
.optin-button:hover .optin-arrow {
  transform: translateX(3px);
}
.optin-arrow {
  display: inline-block;
  transition: transform 140ms;
}
.optin-help {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
