/* ============================================================
   CraftyTech AI — Design System
   Palette derived from the real brand mark: deep ocean teal + navy ink,
   paired with a warm copper signal for CTAs and highlights.
   ============================================================ */

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

:root{
  /* Core palette */
  --ink:            #070c14;
  --ink-2:          #0b121e;
  --surface:        #101a2a;
  --surface-2:      #141f33;
  --border:         rgba(230, 240, 250, 0.09);
  --border-strong:  rgba(230, 240, 250, 0.16);

  --teal:           #1c86ad;
  --teal-bright:    #29a8d4;
  --teal-dim:       #0f4b63;
  --indigo:         #1b2359;

  --copper:         #e8963f;
  --copper-bright:  #f4ab5c;
  --copper-dim:     #7a5326;

  --text:           #eef4fa;
  --text-soft:      #c3d0e2;
  --text-mute:      #8496b0;

  --ok:             #3fbf8f;

  /* Type */
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --body:    'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }

::selection{ background: var(--copper); color: var(--ink); }

/* Background texture: faint schematic grid + radial glow, applied once at body level */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(28, 134, 173, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 10%, rgba(232, 150, 63, 0.08), transparent 55%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35) 60%, transparent 95%);
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ---------- Eyebrow / labels: mono, wide-tracked, bracket-framed ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 18px;
}
.eyebrow::before{ content: "["; color: var(--copper); }
.eyebrow::after{ content: "]"; color: var(--copper); }

/* ---------- Typography ---------- */
h1,h2,h3,h4{ font-family: var(--display); color: #fff; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1{ font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; }
h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; color: var(--text-soft); }
.lead{ font-size: 1.15rem; color: var(--text-soft); max-width: 56ch; }
.muted{ color: var(--text-mute); }
.text-copper{ color: var(--copper-bright); }
.text-teal{ color: var(--teal-bright); }
.mono{ font-family: var(--mono); }

.section-head{ max-width: 640px; margin: 0 0 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
  white-space: nowrap;
}
.btn.primary{
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  color: #1a0f00;
  box-shadow: 0 14px 32px -12px rgba(232, 150, 63, 0.55);
}
.btn.primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(232, 150, 63, 0.7); }
.btn.outline{
  background: rgba(255,255,255,0.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn.outline:hover{ border-color: var(--teal-bright); color: var(--teal-bright); transform: translateY(-2px); }
.btn.ghost{ background: transparent; color: var(--text-soft); border-color: transparent; padding: 14px 8px; }
.btn.ghost:hover{ color: var(--teal-bright); }
.btn.sm{ padding: 10px 18px; font-size: 0.85rem; }
.btn:disabled{ opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 12, 20, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img{ height: 38px; width: 38px; border-radius: 9px; object-fit: cover; }
.brand-word{ font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; }
.brand-word span{ color: var(--copper-bright); }

.main-nav{ display: flex; align-items: center; gap: 4px; }
.main-nav a{
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover{ color: #fff; background: rgba(255,255,255,0.05); }
.main-nav a.is-active{ color: var(--teal-bright); }
.main-nav a.cta{
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  color: #1a0f00;
  margin-left: 6px;
}
.main-nav a.cta:hover{ background: linear-gradient(135deg, #ffb968, var(--copper-bright)); color: #1a0f00; }

.nav-toggle{ display: none; }

@media (max-width: 900px){
  .nav-toggle{
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
    color: #fff; cursor: pointer;
  }
  .main-nav{
    position: fixed; inset: 72px 16px auto 16px;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); padding: 10px;
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .main-nav.is-open{ transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .main-nav a{ text-align: center; }
  .main-nav a.cta{ margin-left: 0; margin-top: 4px; }
}

/* ---------- Hero ---------- */
.hero{ padding: 88px 0 64px; position: relative; }
.hero__grid{ display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1{ margin-bottom: 22px; }
.hero .lead{ margin-bottom: 32px; }
.hero__actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.terminal{
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
}
.terminal__bar{
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.terminal__dot{ width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.terminal__dot:nth-child(1){ background: #f2665a; }
.terminal__dot:nth-child(2){ background: #f2b544; }
.terminal__dot:nth-child(3){ background: #3fbf8f; }
.terminal__title{ margin-left: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-mute); }
.terminal__body{ padding: 22px 22px 24px; font-family: var(--mono); font-size: 0.88rem; color: var(--text-soft); }
.terminal__line{ display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.terminal__line:last-child{ border-bottom: none; }
.terminal__line b{ color: #fff; font-weight: 600; }
.terminal__ok{ color: var(--ok); }
.terminal__ok::before{ content: "● "; }

/* ---------- Bracket card: the site's signature frame ---------- */
.bcard{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.bcard::before, .bcard::after{
  content: "";
  position: absolute; width: 20px; height: 20px;
  border: 2px solid var(--teal-bright);
  opacity: 0; transition: opacity 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
.bcard::before{ top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.bcard::after{ bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
.bcard:hover{ transform: translateY(-4px); border-color: transparent; background: var(--surface-2); }
.bcard:hover::before, .bcard:hover::after{ opacity: 1; width: 28px; height: 28px; }
.bcard h3{ margin-bottom: 10px; }
.bcard .idx{ font-family: var(--mono); font-size: 0.78rem; color: var(--copper-bright); display: block; margin-bottom: 14px; }

/* ---------- Grids ---------- */
.grid{ display: grid; gap: 22px; }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){
  .grid.cols-3, .grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
  .hero__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section.block{ padding: 76px 0; position: relative; }
.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  margin: 0;
}
.trace{
  display: flex; align-items: center; gap: 10px; margin: 0 0 40px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.trace::after{ content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); }

/* ---------- Stats strip ---------- */
.stats-strip{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stats-strip .stat{ background: var(--surface); padding: 26px 20px; text-align: center; }
.stats-strip .stat b{ display: block; font-family: var(--display); font-size: 2rem; color: #fff; }
.stats-strip .stat span{ font-family: var(--mono); font-size: 0.75rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 780px){ .stats-strip{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Leadership ---------- */
.leader{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.leader__avatar{
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--teal), var(--indigo)); color: #fff;
  margin-bottom: 16px;
}
.leader__name{ font-family: var(--display); color: #fff; font-weight: 600; }
.leader__role{ font-family: var(--mono); font-size: 0.76rem; color: var(--copper-bright); text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 14px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(135deg, var(--indigo), var(--teal-dim));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 90% 0%, rgba(232,150,63,0.25), transparent 70%);
}
.cta-banner > *{ position: relative; z-index: 1; }
.cta-banner h2{ max-width: 460px; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer__top{ display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p{ max-width: 34ch; }
.footer__col h4{ font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 16px; font-weight: 600; }
.footer__col a{ display: block; text-decoration: none; color: var(--text-soft); padding: 6px 0; font-size: 0.94rem; }
.footer__col a:hover{ color: var(--teal-bright); }
.footer__bottom{ display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); }
.social-list{ display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-link{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); color: var(--text-soft);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.social-link:hover{ transform: translateY(-2px); background: var(--teal); color: #fff; }
.social-link svg{ width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px){ .footer__top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer__top{ grid-template-columns: 1fr; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner{ padding: 64px 0 20px; }
.page-banner .eyebrow{ margin-bottom: 14px; }

/* ---------- Forms ---------- */
.field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label{ font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea, .field select{
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--body); font-size: 0.96rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none; border-color: var(--teal-bright); background: rgba(255,255,255,0.05);
}
.field textarea{ min-height: 130px; resize: vertical; }
.form-note{ font-size: 0.82rem; color: var(--text-mute); margin-top: -6px; }

/* ---------- Table-ish rows (job listings, courses) ---------- */
.row-card{
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; flex-wrap: wrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.row-card:hover{ border-color: var(--border-strong); background: var(--surface-2); }
.row-card__title{ font-family: var(--display); color: #fff; font-weight: 600; font-size: 1.1rem; }
.row-card__meta{ font-family: var(--mono); font-size: 0.8rem; color: var(--text-mute); margin-top: 4px; }
.pill{
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em;
  background: rgba(63, 191, 143, 0.12); color: var(--ok); border: 1px solid rgba(63,191,143,0.3);
}
.pill.warn{ background: rgba(232,150,63,0.12); color: var(--copper-bright); border-color: rgba(232,150,63,0.3); }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: none; }

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

/* ---------- Legal / long-form content pages ---------- */
.prose{ max-width: 760px; margin: 0 auto; }
.prose h2{ font-size: 1.5rem; margin: 2.2em 0 0.7em; }
.prose h2:first-child{ margin-top: 0; }
.prose ul{ color: var(--text-soft); padding-left: 1.3em; }
.prose li{ margin-bottom: 0.5em; }
.prose hr{ border: none; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose a{ color: var(--teal-bright); }

/* ---------- Notice box (used for portal / security notes) ---------- */
.notice{
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(232, 150, 63, 0.08); border: 1px solid rgba(232, 150, 63, 0.28);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px;
}
.notice svg{ flex: none; width: 20px; height: 20px; color: var(--copper-bright); margin-top: 2px; }
.notice p{ margin: 0; color: var(--text-soft); font-size: 0.92rem; }

/* utility */
.mt-0{ margin-top: 0; } .mb-0{ margin-bottom: 0; }
.center{ text-align: center; }
.flex{ display: flex; }
.gap-2{ gap: 8px; } .gap-3{ gap: 16px; }
