/* Hackimads marketing site — neobrutalism.
   Thick ink borders, hard offset shadows, flat colour blocks.
   Tokens: primary #FDC800, secondary #432DD7, surface #FBFBF9, text #1C293C. */

:root {
  --primary: #fdc800;
  --secondary: #432dd7;
  --surface: #fbfbf9;
  --ink: #1c293c;
  --white: #ffffff;

  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 12px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 2 * var(--s5));
  margin-inline: auto;
}

:focus-visible {
  outline: 4px solid var(--secondary);
  outline-offset: 3px;
}

.section-ink :focus-visible,
.cta :focus-visible {
  outline-color: var(--white);
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -80px;
  z-index: 20;
  padding: var(--s3) var(--s4);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip:focus {
  top: var(--s4);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--s3) var(--s5);
  background: var(--primary);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-sm {
  padding: var(--s2) var(--s4);
}

.btn-lg {
  min-height: 56px;
  padding: var(--s4) var(--s6);
  font-size: 1.1rem;
}

.btn-ghost {
  background: var(--white);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
}

.btn-ink:hover {
  box-shadow: 2px 2px 0 var(--white);
}

.btn-ink:active {
  box-shadow: 0 0 0 var(--white);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: var(--border);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 72px;
}

.logo {
  display: block;
  margin-right: auto;
}

.nav {
  display: flex;
  gap: var(--s5);
}

.nav a {
  font-weight: 700;
  text-decoration: none;
  padding: var(--s2) 0;
  border-bottom: 3px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--ink);
}

/* Hero */

.hero {
  background: var(--primary);
  border-bottom: var(--border);
  padding-block: clamp(40px, 8vw, 96px);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.kicker {
  display: inline-block;
  margin-bottom: var(--s4);
  padding: var(--s1) var(--s3);
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kicker-inv {
  background: var(--primary);
  color: var(--ink);
}

.mark {
  display: inline;
  padding: 0 0.15em;
  background: var(--secondary);
  color: var(--white);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lede {
  max-width: 34em;
  margin-top: var(--s5);
  font-size: 1.25rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s6);
}

/* Chat example */

.chat {
  margin: 0;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-bar {
  padding: var(--s3) var(--s4);
  background: var(--secondary);
  color: var(--white);
  border-bottom: var(--border);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.chat-body {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
}

.bubble {
  padding: var(--s3) var(--s4);
  border: var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
  line-height: 1.5;
}

.bubble .who {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bubble-you {
  justify-self: end;
  max-width: 88%;
  background: var(--surface);
}

.bubble-ai {
  max-width: 94%;
  background: var(--primary);
}

.chat-note {
  padding: var(--s3) var(--s5) var(--s4);
  border-top: 2px dashed var(--ink);
  font-size: 0.85rem;
}

/* Principles strip */

.strip {
  background: var(--ink);
  color: var(--white);
  border-bottom: var(--border);
}

.strip-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-in p {
  padding: var(--s4) var(--s5);
  font-weight: 800;
  text-align: center;
}

.strip-in p + p {
  border-left: 2px solid var(--white);
}

/* Sections */

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section-ink {
  background: var(--secondary);
  color: var(--white);
  border-block: var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s5);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-a {
  background: var(--primary);
}

.card-c {
  background: var(--primary);
}

.card-n {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s5);
  background: var(--surface);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.step-n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border: var(--border);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
}

.who-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.who-copy {
  display: grid;
  gap: var(--s4);
  font-size: 1.15rem;
}

/* Closing call to action */

.cta {
  padding-block: clamp(56px, 9vw, 96px);
  background: var(--ink);
  color: var(--white);
}

.cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

.cta h2 {
  max-width: 18ch;
}

/* Footer */

.foot {
  background: var(--surface);
  border-top: var(--border);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  padding-block: var(--s6);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
}

.foot a {
  font-weight: 700;
}

.foot p {
  flex-basis: 100%;
  font-size: 0.9rem;
}

/* Tablet and phone */

@media (max-width: 880px) {
  .hero-in,
  .who-in {
    grid-template-columns: 1fr;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .strip-in {
    grid-template-columns: 1fr;
  }

  .strip-in p + p {
    border-left: 0;
    border-top: 2px solid var(--white);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .actions .btn {
    width: 100%;
  }

  .logo img {
    width: 140px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
