/* ============================================================
   Campcheck Interactive — landing page
   THEME: "Daylight" — warm off-white canvas, 3 refined accents
   Swap the block under "PALETTE" to reskin the whole site.
   ============================================================ */

:root {
  /* ---------- PALETTE (swap these) ---------- */
  --bg:         #f5f6f7;   /* page canvas          */
  --accent:     #334155;   /* primary (slate)      */
  --accent2:    #f97316;   /* secondary (tangerine)*/
  --accent3:    #0ea5e9;   /* tertiary (sky)       */
  --accent-ink: #ffffff;   /* text on accent fills */

  /* ---------- derived neutrals ---------- */
  --surface:  #ffffff;
  --surface2: #eceef1;
  --text:     #1b2027;
  --muted:    #62626f;
  --line:     rgba(23,23,28,.10);
  --line-2:   rgba(23,23,28,.20);

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent2) 100%);
  --radius: 18px;
  --shadow:    0 18px 44px -20px rgba(23,23,28,.22);
  --shadow-sm: 0 8px 24px -14px rgba(23,23,28,.20);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,1,.36,1);

  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__name { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.025em; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 600;
  font-size: .96rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); background: rgba(23,23,28,.03); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: var(--accent-ink);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.brand__mark--sm { width: 24px; height: 24px; font-size: .9rem; border-radius: 7px; box-shadow: none; }
.brand__name { font-size: 1.1rem; }
.brand__thin { font-weight: 500; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(52px, 7vw, 92px) 0 clamp(56px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; font-weight: 700; margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Product mockup ---------- */
.hero__showcase { position: relative; }
.mock {
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.4deg);
  transition: transform .4s var(--ease);
}
.hero__showcase:hover .mock { transform: rotate(0deg) translateY(-4px); }
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 20%, transparent); }
.mock__dot:nth-child(1) { background: var(--accent2); }
.mock__dot:nth-child(2) { background: color-mix(in srgb, var(--accent2) 55%, var(--accent3)); }
.mock__dot:nth-child(3) { background: var(--accent3); }
.mock__url {
  margin-left: 10px; font-size: .74rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; font-family: ui-monospace, monospace;
}
.mock__screen { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #fff, var(--surface2)); }
.mock__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }


/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(74px, 11vw, 122px) 0; }
.section--tint { background: var(--surface2); border-block: 1px solid var(--line); }
.section__head { max-width: 660px; margin-bottom: 56px; }
.section__head h2, .about h2, .contact__title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.06; }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.card--violet::before { background: var(--accent); }
.card--coral::before  { background: var(--accent2); }
.card--teal::before   { background: var(--accent3); }
.card--ghost { background: transparent; border-style: dashed; box-shadow: none; }

.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 22px; flex: 1; }

/* Status badge */
.badge {
  align-self: flex-start;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.badge--live { color: color-mix(in srgb, var(--accent) 78%, #000);  background: color-mix(in srgb, var(--accent) 12%, transparent);  border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.badge--wip  { color: color-mix(in srgb, var(--accent2) 72%, #000); background: color-mix(in srgb, var(--accent2) 12%, transparent); border-color: color-mix(in srgb, var(--accent2) 28%, transparent); }
.badge--next { color: color-mix(in srgb, var(--accent3) 74%, #000); background: color-mix(in srgb, var(--accent3) 12%, transparent); border-color: color-mix(in srgb, var(--accent3) 28%, transparent); }

/* Card link */
.card__link { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s var(--ease), color .2s; }
.card__link:hover { color: var(--accent); gap: 11px; }
.card__link--muted { color: var(--muted); font-weight: 500; cursor: default; }
.card__link--muted:hover { color: var(--muted); gap: 6px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.about__text p { color: var(--muted); font-size: 1.06rem; margin-top: 18px; }
.about__stats { display: grid; gap: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.stat:nth-child(2) { border-left-color: var(--accent2); }
.stat:nth-child(3) { border-left-color: var(--accent3); }
.stat__num { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat__label { color: var(--muted); font-size: .94rem; }

/* ---------- Contact ---------- */
.section--dark { text-align: center; background: var(--surface2); border-block: 1px solid var(--line); }
.contact { max-width: 680px; margin-inline: auto; }
.contact__title { margin-bottom: 18px; }
.contact__lead { color: var(--muted); font-size: 1.12rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: color-mix(in srgb, var(--bg) 62%, transparent); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--bg); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
    visibility: hidden;
  }
  .nav__links.open { transform: translateY(0); visibility: visible; }
  .nav__links a:not(.btn) { padding: 10px 0; width: 100%; }
  .nav__links .btn { margin-top: 8px; }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards, .cards--3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__showcase { max-width: 420px; }
  .mock { transform: rotate(0deg); }
}

@media (min-width: 821px) and (max-width: 980px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
