/*
  styles.css — all presentation for the Collingwood Systems site.
  Ported from the inline styles in the Claude Design source; color tokens and the
  Space Grotesk / IBM Plex Mono pairing are preserved. :hover/:focus rules here
  replace the design runtime's style-hover / style-focus attributes.
*/

:root {
  --paper: #EDE8DF;
  --ink: #16140f;
  --ink-soft: #2a2820;
  --muted: #4a473f;
  --muted-2: #55524a;
  --label: #6A6D72;
  --blue: #1F4FE0;
  --red: #E5402A;
  --gold: #F5B301;
  --gold-deep: #C99700;
  --line: rgba(22, 20, 15, 0.12);
  --card-bg: rgba(255, 255, 255, 0.82);
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); }
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }   /* ensure the hidden attr beats display:flex rules */

body { font-family: var(--sans); color: var(--ink); }

/* Fixed painting backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(237,232,223,0.86), rgba(237,232,223,0.92)), url('assets/kandinsky-2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 14px 26px;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: 9px 18px; font-size: 12.5px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-outline { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Eyebrows / headings ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #403d35;
  margin-bottom: 16px;
}
.eyebrow-accent { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 26px; }

.section { border-top: 1px solid var(--line); }
.section .container { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2,
.demo-pitch h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.section-head p { margin: 0; font-size: 18px; line-height: 1.6; color: #36342d; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(240, 237, 230, 0.72);
  border-bottom: 1px solid rgba(22, 20, 15, 0.1);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 30px; width: auto; display: block; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #1b2a44; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; gap: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.nav-menu a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image:
    linear-gradient(102deg, rgba(238,236,229,0.95) 0%, rgba(238,236,229,0.92) 32%, rgba(238,236,229,0.68) 48%, rgba(238,236,229,0.18) 70%, rgba(238,236,229,0) 100%),
    url('assets/kandinsky-hero.jpg');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
.hero-inner { padding-top: clamp(64px, 11vw, 132px); padding-bottom: clamp(72px, 12vw, 140px); }
.hero-copy { max-width: 660px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(46px, 7.4vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.94; }
.hero-tagline { font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -0.015em; color: var(--ink-soft); margin-bottom: 24px; }
.hero-lede { margin: 0 0 36px; max-width: 520px; font-size: 18px; line-height: 1.6; color: #36342d; }

/* ---------- What we do: cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 22px;
}
.card h3 { margin: 0 0 9px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted-2); }

.glyph { margin-bottom: 16px; }
.glyph-ring { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--blue); }
.glyph-triangle { width: 0; height: 0; border-left: 19px solid transparent; border-right: 19px solid transparent; border-bottom: 33px solid var(--red); }
.glyph-square { width: 32px; height: 32px; background: var(--gold); }
.glyph-diamond { width: 32px; height: 32px; border: 2px solid var(--ink); transform: rotate(45deg); margin: 6px 0 22px 6px; }
.glyph-stack { position: relative; width: 34px; height: 34px; }
.glyph-stack .stack-a { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 2px solid var(--ink); }
.glyph-stack .stack-b { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; background: var(--blue); }
.glyph-lock { position: relative; width: 30px; height: 34px; }
.glyph-lock .lock-shackle { position: absolute; top: 0; left: 7px; width: 16px; height: 15px; border: 3px solid var(--ink); border-bottom: none; border-radius: 9px 9px 0 0; }
.glyph-lock .lock-body { position: absolute; bottom: 0; width: 30px; height: 22px; background: var(--blue); border-radius: 4px; }

/* ---------- How it works ---------- */
.how-eyebrow { margin-bottom: 40px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid rgba(22, 20, 15, 0.16);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  overflow: hidden;
}
.step { padding: 34px 30px; border-right: 1px solid rgba(22, 20, 15, 0.16); }
.step:last-child { border-right: none; }
.step-label { font-family: var(--mono); font-size: 13px; margin-bottom: 16px; }
.step-blue { color: var(--blue); }
.step-red { color: var(--red); }
.step-gold { color: var(--gold-deep); }
.step p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px; }
.person {
  display: flex; gap: 20px; align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 6px; padding: 26px;
}
.avatar {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  background: #ECE7DC; border: 1px solid rgba(22, 20, 15, 0.18);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.avatar-initials { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-soft); }
.avatar-dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #f4efe6; }
.dot-blue { background: var(--blue); }
.dot-red { background: var(--red); }
.person-name { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.person-role { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--label); margin-top: 9px; }

.contact-reserved {
  border: 1px dashed rgba(22, 20, 15, 0.3); border-radius: 6px; padding: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.4);
}
.contact-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.contact-note { font-family: var(--mono); font-size: 13px; color: var(--label); }

/* ---------- Book a demo ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.demo-pitch { max-width: 460px; }
.demo-lede { margin: 0 0 34px; font-size: 18px; line-height: 1.6; color: #44423b; }
.lede-accent { color: var(--blue); font-weight: 600; }
.demo-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.demo-points li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.point-glyph { flex: none; margin-top: 3px; }
.point-circle { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }
.point-triangle { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--red); }
.point-square { width: 15px; height: 15px; background: var(--gold); margin-top: 4px; }

.demo-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(22, 20, 15, 0.14); border-radius: 8px;
  padding: clamp(26px, 3vw, 40px);
}
.demo-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--label); margin-bottom: 7px;
}
.field .optional { text-transform: none; letter-spacing: 0; color: #b0ada4; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid rgba(22, 20, 15, 0.2); border-radius: 4px;
  font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.btn-submit { margin-top: 4px; padding: 14px 26px; border-radius: 4px; }
.form-fineprint { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: #8a877e; }

.demo-confirm { display: flex; flex-direction: column; gap: 20px; padding: 8px 0; }
.check-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.check-mark { width: 18px; height: 10px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); margin-top: -4px; }
.demo-confirm h3 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.demo-confirm p { margin: 0; font-size: 17px; line-height: 1.6; color: #44423b; }
.demo-confirm strong { color: var(--ink); }
.next-steps { border-top: 1px solid var(--line); padding-top: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--label); }
.next-steps span { color: var(--ink-soft); }
#reset-form { align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(22, 20, 15, 0.16); background: rgba(240, 237, 230, 0.6); }
.footer-inner { padding-top: 30px; padding-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 72px; width: auto; display: block; }
.footer-meta { font-family: var(--mono); font-size: 12px; color: var(--label); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-menu { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
