/* ==========================================================
   ianlittlejohn.com - design system v2
   Warm, bold, personal. Deep navy-to-green gradients, wave
   dividers, circular gradient-ring imagery, script accents.
   ========================================================== */

:root {
  /* Colour */
  --ink: #0e1f33;
  --ink-soft: #3d4f63;
  --ink-faint: #64778c;
  --bg: #ffffff;
  --bg-tint: #f4f8f7;
  --line: #e3e9f0;
  --green: #107c41;
  --green-bright: #17b45f;
  --green-dark: #0b5c30;
  --green-soft: #e6f4ec;
  --teal: #0f4c5c;
  --navy: #0b1e3d;
  --blue: #2e7cd6;
  --amber: #f6b93b;

  --grad-deep: linear-gradient(135deg, #0b1e3d 0%, #0f4c5c 52%, #10744d 100%);
  --grad-ring: linear-gradient(135deg, #2dd4bf 0%, #17b45f 50%, #2e7cd6 100%);
  --grad-text: linear-gradient(90deg, #4ade80 0%, #2dd4bf 55%, #7cc7ff 100%);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Rhythm */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(14, 31, 51, 0.06), 0 12px 32px rgba(14, 31, 51, 0.07);
  --shadow-lift: 0 4px 10px rgba(14, 31, 51, 0.08), 0 20px 44px rgba(14, 31, 51, 0.12);
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }

.script {
  font-family: var(--font-script);
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cbe7d7;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn svg { flex: none; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--green-bright);
  color: #fff;
  box-shadow: 0 6px 20px rgba(23, 180, 95, 0.45);
}
.btn-primary:hover {
  background: #129950;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23, 180, 95, 0.5);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }

.btn-small { padding: 11px 22px; font-size: 0.95rem; }

.text-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- Header (dark, translucent) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 30, 61, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { color: #fff; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad-ring);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.99rem;
  color: rgba(255, 255, 255, 0.78);
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #4ade80; font-weight: 600; }

.nav .btn { padding: 11px 22px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}

/* ---------- Wave divider ---------- */

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  pointer-events: none;
}
.wave svg { width: 100%; height: 74px; display: block; }

/* ---------- Hero (gradient, photo) ---------- */

.hero {
  background: var(--grad-deep);
  padding: 92px 0 150px;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 180, 95, 0.28) 0%, transparent 62%);
  top: -260px;
  right: -160px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero h1 { color: #fff; margin-bottom: 24px; }

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

.hero .lead { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin-bottom: 22px; }

.hero-script {
  font-size: 1.65rem;
  color: #7ef0b6;
  margin-bottom: 30px;
  transform: rotate(-1.2deg);
  display: inline-block;
}

/* Circular photo with gradient ring */

.photo-ring {
  width: min(380px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: var(--grad-ring);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
}

.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

/* ---------- Trust bar ---------- */

.trust {
  padding: 0;
  transform: translateY(-52px);
  margin-bottom: -52px;
  position: relative;
  z-index: 2;
}

.trust-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.trust-item {
  padding: 30px 28px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; }

.trust-item strong {
  font-family: var(--font-display);
  display: block;
  font-size: 1.65rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.trust-item span { font-size: 0.93rem; color: var(--ink-faint); }

/* ---------- Feature rows (four technologies) ---------- */

.feature-list { display: grid; gap: 74px; }

.feature-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.feature-row:nth-child(even) .feature-media { order: 2; }

.feature-media { display: flex; justify-content: center; }

.feature-circle {
  width: min(280px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 9px;
  background: var(--grad-ring);
  box-shadow: 0 16px 44px rgba(14, 31, 51, 0.16);
}

.feature-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.feature-circle-inner svg { width: 44%; height: 44%; }

.fc-pivot   { color: #107c41; background: #eaf7f0; }
.fc-query   { color: #2e7cd6; background: #ecf3fc; }
.fc-model   { color: #6b4fc0; background: #f2eefb; }
.fc-copilot { color: #c07a10; background: #fdf5e7; }

.feature-body h3 { font-size: 1.55rem; margin-bottom: 10px; }

.feature-body > p { margin-bottom: 18px; }

.feature-script {
  font-size: 1.4rem;
  color: var(--green);
  display: inline-block;
  margin-bottom: 18px;
  transform: rotate(-1deg);
}

/* ---------- Tick lists ---------- */

.course-points {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 20px;
}

.course-points li {
  padding-left: 33px;
  position: relative;
  font-size: 0.99rem;
}

.course-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-bright) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.6" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
  box-shadow: 0 2px 6px rgba(23, 180, 95, 0.35);
}

/* ---------- Split (Why Ian / About) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.signature {
  font-size: 1.9rem;
  color: var(--teal);
  margin-top: 6px;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ---------- Testimonial band (dark gradient) ---------- */

.testi-band {
  background: var(--grad-deep);
  position: relative;
  overflow: hidden;
  padding-bottom: 108px;
}

.testi-band::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 65%);
  bottom: -300px;
  left: -200px;
}

.testi-band .section-head h2 { color: #fff; }

.testi-sub {
  font-size: 1.6rem;
  color: #7ef0b6;
  margin-top: 8px;
  display: inline-block;
  transform: rotate(-1.2deg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}

.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }

.quote-card blockquote {
  font-size: 0.99rem;
  color: var(--ink-soft);
}

.quote-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-top: auto;
}
.quote-card cite span {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-family: var(--font-body);
}

/* ---------- Course blocks (Courses page) ---------- */

.course-list { display: grid; gap: 26px; max-width: 880px; margin: 0 auto; }

.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.course-card.featured {
  border: 2px solid var(--green-bright);
  box-shadow: 0 6px 16px rgba(23, 180, 95, 0.14), 0 24px 48px rgba(23, 180, 95, 0.14);
}

.flag {
  position: absolute;
  top: -14px;
  left: 34px;
  background: var(--green-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(23, 180, 95, 0.4);
}

.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tech-icon svg { width: 28px; height: 28px; }

.ic-pivot   { background: #e6f4ec; color: #107c41; }
.ic-query   { background: #e9f1fb; color: #2e7cd6; }
.ic-model   { background: #f0ecfa; color: #6b4fc0; }
.ic-copilot { background: #fdf3e2; color: #c07a10; }

.course-card .tech-icon { width: 64px; height: 64px; border-radius: 16px; }
.course-card .tech-icon svg { width: 34px; height: 34px; }

.course-body h3 { font-size: 1.42rem; margin-bottom: 8px; }

.course-body > p { margin-bottom: 16px; }

.course-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--ink-faint);
}
.rating strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- Order strip ---------- */

.order-strip {
  max-width: 880px;
  margin: 48px auto 0;
  background: var(--grad-deep);
  border-radius: var(--radius);
  padding: 40px 42px;
  color: #b9c7d6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.order-strip h3 { color: #fff; margin-bottom: 8px; }

.order-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.order-path .step {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
}

.order-path .arrow { color: #6d8199; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 180, 95, 0.32) 0%, transparent 65%);
  top: -280px;
  right: -180px;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 { color: #fff; margin-bottom: 16px; }
.cta-inner p { color: #b9c7d6; margin-bottom: 34px; }

/* ---------- Prose (About) ---------- */

.prose { max-width: 660px; }
.prose p { margin-bottom: 20px; }

.expect {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 24px;
  margin: 28px 0 34px;
}

.expect li {
  padding-left: 33px;
  position: relative;
  font-size: 0.99rem;
  font-weight: 500;
  color: var(--ink);
}

.expect li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-bright) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.6" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
  box-shadow: 0 2px 6px rgba(23, 180, 95, 0.35);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #91a4b8;
  padding: 56px 0 40px;
  font-size: 0.95rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .brand { color: #fff; }

.footer-tagline { margin-top: 10px; max-width: 340px; }

.footer-links {
  list-style: none;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a { color: #c3d0dd; font-weight: 500; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.87rem;
  color: #6d8199;
}

.footer-bottom a { color: #6d8199; }
.footer-bottom a:hover { color: #c3d0dd; }

/* ---------- Page hero (inner pages, gradient) ---------- */

.page-hero {
  background: var(--grad-deep);
  padding: 80px 0 118px;
  position: relative;
  overflow: hidden;
}

.page-hero .section-head { margin-bottom: 0; position: relative; z-index: 1; }

.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.82); }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); }

.page-script {
  font-size: 1.6rem;
  color: #7ef0b6;
  display: inline-block;
  margin-top: 14px;
  transform: rotate(-1.2deg);
}

/* ---------- Portrait (About) ---------- */

.portrait-wrap { display: flex; justify-content: center; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: left; }
  .hero { padding-bottom: 130px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  section { padding: 68px 0; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 30, 61, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav > .btn { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 1px solid var(--line); padding: 20px; }
  .trust-item:first-child { border-top: none; }
  .trust { transform: translateY(-40px); margin-bottom: -40px; }

  .course-card { grid-template-columns: 1fr; padding: 30px 24px; }
  .expect { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 118px; }
  .order-strip { padding: 32px 26px; }
  .wave svg { height: 46px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .nav .btn { width: auto; }
  .btn-row .btn { width: 100%; }
}
