/* ==========================================================================
   LabQuix — Environmental Lab Technology
   Modern static site stylesheet
   ========================================================================== */

:root {
  --navy-900: #071a2b;
  --navy-800: #0b2540;
  --navy-700: #113355;
  --teal-500: #0fb5ba;
  --teal-400: #22cfd4;
  --teal-100: #d9f6f7;
  --cyan-300: #67e0e4;
  --ink: #12263a;
  --slate: #4a5f74;
  --mist: #f4f8fb;
  --white: #ffffff;
  --amber: #ffb454;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font-sans);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 6px 24px rgba(7, 26, 43, 0.08);
  --shadow-card-hover: 0 14px 40px rgba(7, 26, 43, 0.14);

  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--teal-400);
  color: var(--navy-900);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy-800);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--teal-500); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy-700); }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(15, 181, 186, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 181, 186, 0.45);
  color: var(--navy-900);
}

.btn-outline {
  border-color: var(--teal-400);
  color: var(--teal-400);
  background: transparent;
}
.btn-outline:hover { background: rgba(34, 207, 212, 0.12); color: var(--teal-400); }

.btn-dark {
  background: var(--navy-800);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 26, 43, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--white); }
.brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-300));
  display: grid;
  place-items: center;
  color: var(--navy-900);
  flex-shrink: 0;
}
.brand span.q { color: var(--teal-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-400); }

.nav-links .btn { padding: 0.55rem 1.3rem; font-size: 0.92rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.4rem;
  border: solid rgba(255,255,255,0.6);
  border-width: 0 2px 2px 0;
  padding: 2.5px;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
  font-weight: 500;
}
.dropdown a:hover { background: var(--teal-100); color: var(--navy-800) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  margin: 5.5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    padding: 0.75rem 1.5rem 1.5rem;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.55rem 0; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    padding: 0.25rem 0 0 1rem;
  }
  .dropdown a { color: rgba(255,255,255,0.75) !important; padding: 0.45rem 0.75rem; }
  .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--teal-400) !important; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(34, 207, 212, 0.22), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(15, 181, 186, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C240,100 480,10 720,40 C960,70 1200,20 1440,55 L1440,90 L0,90 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0 8rem;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 207, 212, 0.14);
  border: 1px solid rgba(34, 207, 212, 0.35);
  color: var(--cyan-300);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-visual .panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
}
.hero-visual .panel h4 { color: var(--white); margin-bottom: 1rem; }
.hero-visual .row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.hero-visual .row:last-child { margin-bottom: 0; }
.hero-visual .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #45d97e; box-shadow: 0 0 10px rgba(69,217,126,0.7); }
.dot-teal { background: var(--teal-400); box-shadow: 0 0 10px rgba(34,207,212,0.7); }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px rgba(255,180,84,0.7); }
.hero-visual .tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 207, 212, 0.16);
  color: var(--cyan-300);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 4rem 0 7rem; }
  .hero-visual { max-width: 480px; }
}

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(34, 207, 212, 0.2), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
}
.page-hero .hero-badge { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 5rem 0; }
.section.tint { background: var(--mist); }
.section.dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: rgba(255,255,255,0.8);
}
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--white); }
.section.dark p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 0.75rem;
}
.section-head p { font-size: 1.12rem; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(18, 38, 58, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-100), rgba(34, 207, 212, 0.35));
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--teal-500);
}
.card .icon svg { width: 26px; height: 26px; }

.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.2rem; color: var(--slate); }
.card ul li { margin-bottom: 0.45rem; }
.card ul li:last-child { margin-bottom: 0; }

.section.dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
.section.dark .card .icon { background: rgba(34, 207, 212, 0.15); color: var(--teal-400); }
.section.dark .card ul { color: rgba(255,255,255,0.72); }

/* Split (text + visual) sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse > .split-media { order: 0; }
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--teal-400);
  box-shadow: var(--shadow-card);
}
.split-media svg { width: 45%; height: auto; opacity: 0.9; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--teal-400);
  display: block;
  line-height: 1.1;
}
.stat .label { color: rgba(255,255,255,0.7); font-size: 0.98rem; }

/* Checklist */
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.8rem;
  color: var(--slate);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fb5ba' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.section.dark .checklist li { color: rgba(255,255,255,0.78); }

/* Feature detail list (interior pages) */
.feature-item { margin-bottom: 2rem; }
.feature-item:last-child { margin-bottom: 0; }
.feature-item h4 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-800);
}
.feature-item h4::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--teal-400);
  flex-shrink: 0;
}

/* Team */
.team-card { text-align: center; }
.team-card .avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-300));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-900);
}
.team-card .role { color: var(--teal-500); font-weight: 600; font-size: 0.95rem; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; }
.post-card .meta {
  font-size: 0.85rem;
  color: var(--teal-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.post-card .more { margin-top: auto; font-weight: 600; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(34, 207, 212, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 40rem; margin: 0 auto 2rem; }
@media (max-width: 640px) { .cta-band { padding: 2.5rem 1.5rem; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-info .item .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-500);
  display: grid;
  place-items: center;
}
.contact-info .item .icon svg { width: 22px; height: 22px; }
.contact-info h4 { margin-bottom: 0.15rem; }
.contact-info p { margin: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 38, 58, 0.07);
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--navy-800);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(18, 38, 58, 0.15);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--mist);
  margin-bottom: 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(34, 207, 212, 0.2);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: var(--teal-400); }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .tagline { font-size: 0.95rem; max-width: 20rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.9rem;
}
.social-links { display: flex; gap: 0.8rem; }
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-links a:hover { background: rgba(34, 207, 212, 0.15); border-color: var(--teal-400); }
.social-links svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   Tutorial thumbnails
   -------------------------------------------------------------------------- */

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 980px) {
  .tutorial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tutorial-grid { grid-template-columns: 1fr; }
}

.tutorial-thumb {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(18, 38, 58, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tutorial-thumb:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  color: inherit;
}

.tutorial-thumb-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
}

.tutorial-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}
.tutorial-thumb:hover .tutorial-thumb-img {
  transform: scale(1.04);
}

.tutorial-thumb-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--teal-400);
  position: relative;
}
.tutorial-thumb-visual.portal {
  background:
    radial-gradient(circle at 70% 30%, rgba(34, 207, 212, 0.35), transparent 55%),
    linear-gradient(145deg, var(--navy-900), var(--navy-700));
}
.tutorial-thumb-visual svg {
  width: 28%;
  height: auto;
  opacity: 0.9;
}

.tutorial-thumb-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tutorial-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 0.55rem;
}
.tutorial-thumb-body h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}
.tutorial-thumb-body p {
  font-size: 0.98rem;
  margin-bottom: 1rem;
  flex: 1;
}
.tutorial-cta {
  font-weight: 600;
  color: var(--teal-500);
  font-size: 0.95rem;
}
.tutorial-thumb:hover .tutorial-cta { color: var(--navy-700); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
