/* ==========================================================================
   Photon Shaders — stylesheet ("Prism Lab" design)
   Plain CSS. All sizes are simple px values. No formulas, no build step.
   ========================================================================== */


/* ==========================================================================
   EASY EDIT — change these numbers / colors and save
   ========================================================================== */
:root{
  /* ---- Hero H1 size ---- */
  --hero-h1-desktop: 42px;   /* wider than 960px */
  --hero-h1-tablet: 36px;    /* 601px to 960px */
  --hero-h1-mobile: 27px;    /* 600px and below */

  /* ---- Other headings ---- */
  --page-h1-desktop: 46px;   /* H1 on inner pages and guides */
  --page-h1-mobile: 30px;
  --h2-desktop: 40px;        /* section titles */
  --h2-mobile: 28px;
  --h3-size: 20px;

  /* ---- Text ---- */
  --body-size: 16px;
  --lead-size: 18px;

  /* ---- Layout ---- */
  --container: 1140px;
  --gutter: 24px;
  --gutter-mobile: 16px;
  --section-space: 104px;
  --section-space-mobile: 64px;
  --header-height: 72px;

    /* ---- Colors (green + gold theme, no blue) ----
     Change any hex value below; the whole site follows. */
  --primary: #15803D;        /* buttons, links, highlights */
  --primary-hover: #166534;  /* button hover */
  --primary-soft: #DCFCE7;   /* light green backgrounds */
  --primary-shadow: rgba(21,128,61,.45);
  --dark: #1C2B22;           /* dark sections, footer bar */
  --dark-2: #2A3D30;         /* second dark tone for gradients */
  --on-dark: #E3E8DF;        /* normal text on dark sections */
  --on-dark-muted: #B4BFB0;  /* small text on dark sections */
  --accent: #FFC72C;         /* gold */
  --accent-hover: #FFD457;
  --accent-soft: #FFF6D9;
  --accent-text: #8A6400;
  --accent-text-dark: #5C4300;
  --pink: #DB2777;
  --bg: #FAFAF7;             /* page background */
  --surface: #FFFFFF;        /* cards */
  --white: #FFFFFF;
  --soft: #F3F2EC;           /* light gray panels */
  --line: #ECEAE3;           /* thin lines */
  --border: #DAD7CD;         /* card borders */
  --heading: #1A1A17;
  --body: #4D4A42;
  --muted: #6B675E;
  --shadow: rgba(26,26,23,.40);
  --success: #067647;
  --success-soft: #DCFAE6;
  --success-text: #054F31;
  --success-light: #A6F4C5;
  --warning: #B54708;
  --warning-soft: #FEF0C7;
  --danger: #B42318;
  --danger-soft: #FEE4E2;
  --danger-text: #7A271A;
  --highlight-row: #FFFBEA;

  /* old names kept so nothing breaks */
  --secondary: var(--dark);
  --secondary-2: var(--dark-2);

  /* ---- Decorative rainbow line (no blue) ---- */
  --spectrum: linear-gradient(90deg, #15803D, #84CC16, #FFC72C, #FF8A3D, #E5484D, #DB2777, #15803D);

  /* ---- Shapes ---- */
  --radius-small: 8px;
  --radius: 16px;
  --radius-large: 26px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Heading sizes use the variables above */
h1        { font-size: var(--page-h1-desktop); }
.hero h1  { font-size: var(--hero-h1-desktop); }
h2        { font-size: var(--h2-desktop); }
h3        { font-size: var(--h3-size); }
@media (max-width: 960px){
  .hero h1 { font-size: var(--hero-h1-tablet); }
}
@media (max-width: 600px){
  .hero h1 { font-size: var(--hero-h1-mobile); }
  h1       { font-size: var(--page-h1-mobile); }
  h2       { font-size: var(--h2-mobile); }
}
/* ======================= end of EASY EDIT ======================= */


/* ---------- Fonts (self-hosted Poppins, OFL licence) ---------- */
@font-face{font-family:"Poppins";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/poppins-regular.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/poppins-medium.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/poppins-semibold.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/poppins-bold.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-weight:800;font-style:normal;font-display:swap;src:url("../fonts/poppins-extrabold.woff2") format("woff2")}


/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--body-size); line-height: 1.75; color: var(--body); background: var(--bg); }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.18; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.6px; }
h1 { font-weight: 800; letter-spacing: -1.4px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--heading); font-weight: 600; }
code, kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--primary-soft); color: var(--secondary); padding: 2px 7px; border-radius: 6px; word-break: break-word; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-space) 0; }
.white { background: var(--surface); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--secondary); color: var(--white); padding: 10px 16px; border-radius: var(--radius-small); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 16px; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Section titles: number + label + heading */
.sec-title { display: grid; grid-template-columns: 90px 1fr; gap: 20px; margin-bottom: 48px; align-items: start; }
.sec-title .idx { font-size: 15px; font-weight: 700; color: var(--primary); padding-top: 10px; border-top: 3px solid var(--primary); }
.sec-title h2 { margin-bottom: 10px; }
.sec-title p { margin: 0; font-size: var(--lead-size); max-width: 720px; }
.spectrum-text { background: var(--spectrum); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: spectrumMove 8s linear infinite; }
@keyframes spectrumMove { to { background-position: 200% 0; } }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; }
@media (max-width: 700px){ .sec-title { grid-template-columns: 1fr; gap: 8px; } .sec-title .idx { width: 70px; } }


/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--font); padding: 17px 26px; border-radius: 12px; border: 2px solid transparent; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 14px 28px -14px var(--primary-shadow); }
.btn-primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: beam 3.5s ease-in-out infinite; }
@keyframes beam { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-ghost:hover { background: var(--secondary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--secondary); }
.btn-accent:hover { background: var(--accent-hover); color: var(--secondary); transform: translateY(-3px); }
.dl-status { display: block; min-height: 22px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--success); }
.on-dark .dl-status { color: var(--success-light); }


/* ---------- Header (no buttons) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--spectrum); background-size: 200% 100%; animation: spectrumMove 10s linear infinite; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); }
.brand img { width: 128px; height: 29px; object-fit: contain; }
.brand-text { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--secondary); border-left: 2px solid var(--border); padding-left: 12px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; display: flex; align-items: center; }
.main-nav li + li::before { content: "/"; color: var(--border); margin: 0 4px; }
.main-nav a { padding: 8px 8px; color: var(--heading); font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 6px; }
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--secondary); padding: 8px 2px; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle summary svg { width: 26px; height: 26px; }
.mobile-menu { position: fixed; left: var(--gutter-mobile); right: var(--gutter-mobile); top: calc(var(--header-height) + 10px); background: var(--surface); border-radius: var(--radius); padding: 10px; box-shadow: 0 24px 50px -20px var(--shadow); animation: drop .3s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mobile-menu li { margin: 0; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--heading); text-decoration: none; font-weight: 600; }
.mobile-menu a[aria-current="page"] { background: var(--primary); color: var(--white); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px){ .main-nav { display: none; } .menu-toggle { display: block; } }


/* ---------- Hero: staggered diagonal with prism ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; background: radial-gradient(900px 420px at 100% 0%, var(--primary-soft), transparent 70%), var(--bg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.hero-copy { position: relative; z-index: 2; padding-top: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); color: var(--secondary); }
.chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { line-height: 1.06; margin-bottom: 22px; }
.hero h1 .sweep { position: relative; display: inline-block; color: var(--primary); }
.hero h1 .sweep::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: var(--accent); z-index: -1; border-radius: 4px; transform-origin: left; animation: underline 1.2s .4s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-text { font-size: var(--lead-size); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.hero-visual { position: relative; z-index: 1; margin-top: 70px; }
.frame { position: relative; border-radius: var(--radius-large); overflow: hidden; box-shadow: 0 40px 70px -35px var(--shadow); transform: rotate(2deg); transition: transform .6s var(--ease); }
.frame:hover { transform: rotate(0); }
.frame img { width: 100%; }
.frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: beam 5s ease-in-out infinite; }
.prism { position: absolute; left: -110px; top: -40px; width: 230px; z-index: 3; pointer-events: none; }
.prism .ray { stroke-dasharray: 8 10; animation: rayflow 1.4s linear infinite; }
@keyframes rayflow { to { stroke-dashoffset: -36; } }
.hero-stats { position: relative; width: max-content; margin: -36px 18px 0 auto; background: var(--secondary); color: var(--on-dark); border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 24px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); z-index: 3; }
.hero-stats div { text-align: left; }
.hero-stats b { display: block; color: var(--white); font-size: 22px; line-height: 1.1; }
.hero-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.hero-caption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: right; }
@media (max-width: 960px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 10px 0 0; }
  .prism { left: -40px; top: -60px; width: 160px; }
}
@media (max-width: 560px){
  .hero-stats { width: auto; margin: 14px 0 0; justify-content: space-between; }
  .hero-caption { margin-top: 12px; text-align: left; }
  .prism { display: none; }
}


/* ---------- Features: horizontal scroll-snap carousel ---------- */
.carousel-wrap { position: relative; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 330px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 26px; scrollbar-width: thin; scrollbar-color: var(--primary) var(--primary-soft); }
.carousel:focus-visible { outline-offset: 6px; }
.feat { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius-large); padding: 28px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.feat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--c, var(--primary)); }
.feat:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -26px var(--shadow); }
.feat .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--c, var(--primary)); margin-bottom: 20px; box-shadow: 0 0 0 6px var(--line); }
.feat .ic svg { width: 26px; height: 26px; }
.feat .wl { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.feat h3 { font-size: 19px; margin: 6px 0 8px; }
.feat p { margin: 0; font-size: 15px; }
.car-nav { display: none; gap: 10px; justify-content: flex-end; margin-top: -10px; }
.car-nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--secondary); background: var(--surface); color: var(--secondary); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.car-nav button:hover { background: var(--secondary); color: var(--white); }
.car-nav button svg { width: 20px; height: 20px; }
.js .car-nav { display: flex; }
@media (max-width: 600px){ .carousel { grid-auto-columns: 82%; } }


/* ---------- Download: file row + spec grid ---------- */
.filebox { background: var(--surface); border-radius: var(--radius-large); border: 1px solid var(--border); overflow: hidden; }
.file-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; padding: 28px 32px; background: linear-gradient(90deg, var(--secondary), var(--secondary-2)); color: var(--on-dark); }
.file-ic { width: 72px; height: 72px; border-radius: 18px; background: var(--accent); color: var(--secondary); display: grid; place-items: center; font-weight: 800; font-size: 14px; position: relative; }
.file-ic::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 2px dashed var(--accent); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.file-row h3 { color: var(--white); font-size: 22px; margin: 0 0 2px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; }
.file-row p { margin: 0; font-size: 14px; }
.file-row .btn { white-space: nowrap; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.spec-grid div { padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid div:nth-child(4n) { border-right: 0; }
.spec-grid dt { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.spec-grid dd { margin: 4px 0 0; color: var(--heading); font-weight: 600; font-size: 15px; line-height: 1.45; }
.file-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 18px 24px; font-size: 14px; }
.file-foot a { font-weight: 600; }
@media (max-width: 900px){
  .file-row { grid-template-columns: 60px 1fr; }
  .file-row .dlwrap { grid-column: 1 / -1; }
  .file-ic { width: 60px; height: 60px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid div:nth-child(4n) { border-right: 1px solid var(--line); }
  .spec-grid div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 520px){ .spec-grid { grid-template-columns: 1fr; } .spec-grid div { border-right: 0 !important; } .file-row { padding: 22px; } }


/* ---------- How to download: vertical beam list ---------- */
.beam-list { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.beam-list::before { content: ""; position: absolute; left: 39px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--primary-soft); }
.beam-list::after { content: ""; position: absolute; left: 39px; top: 10px; width: 4px; height: 0; border-radius: 4px; background: var(--spectrum); background-size: 100% 300%; transition: height 1.8s var(--ease); }
.beam-list.is-visible::after { height: calc(100% - 20px); }
.beam-list li { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 24px; margin: 0 0 26px; }
.beam-list .no { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); font-size: 30px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--secondary); transition: border-color .3s, color .3s; }
.beam-list li:hover .no { border-color: var(--primary); color: var(--primary); -webkit-text-stroke: 0; }
.beam-list h3 { font-size: 19px; margin: 14px 0 6px; }
.beam-list p { margin: 0; font-size: 15px; }
.guard { max-width: 860px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: var(--radius-small); color: var(--accent-text-dark); }
.guard svg { width: 24px; height: 24px; flex: none; color: var(--accent-text); }
.guard p { margin: 0; font-size: 15px; }
@media (max-width: 600px){
  .beam-list::before, .beam-list::after { left: 27px; }
  .beam-list li { grid-template-columns: 58px 1fr; gap: 14px; }
  .beam-list .no { width: 58px; height: 58px; font-size: 22px; }
  .beam-list h3 { margin-top: 6px; }
}


/* ---------- What it does: image + text with labels ---------- */
.purpose { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.purpose-media { position: sticky; top: 110px; }
.purpose-media { position: relative; }
.purpose-media img { border-radius: var(--radius-large); width: 100%; }
.tagpin { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 7px 12px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--secondary); box-shadow: 0 10px 20px -10px rgba(0,0,0,.4); animation: bob 5s ease-in-out infinite; }
.tagpin i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--primary)); box-shadow: 0 0 0 4px var(--line); }
.tagpin.t1 { top: 12%; left: -18px; }
.tagpin.t2 { top: 46%; right: -18px; animation-delay: -1.6s; }
.tagpin.t3 { bottom: 10%; left: 12%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.usecase-chips { display: grid; gap: 12px; margin-top: 22px; }
.usecase-chips div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.usecase-chips .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.usecase-chips .ic svg { width: 22px; height: 22px; }
.usecase-chips h3 { font-size: 17px; margin: 0 0 2px; }
.usecase-chips p { margin: 0; font-size: 15px; }
@media (max-width: 900px){ .purpose { grid-template-columns: 1fr; gap: 36px; } .purpose-media { position: relative; top: 0; } .tagpin.t1 { left: 8px; } .tagpin.t2 { right: 8px; } }


/* ---------- Install: three columns + profile table ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--secondary); border-radius: var(--radius-large); overflow: hidden; background: var(--surface); }
.way { padding: 30px 28px; }
.way + .way { border-left: 2px solid var(--secondary); }
.way .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.way h3 { margin: 0; font-size: 20px; }
.way .badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); }
.way:nth-child(2) .badge { background: var(--accent-soft); color: var(--accent-text); }
.way:nth-child(3) .badge { background: var(--success-soft); color: var(--success); }
.way ol { margin: 0; padding-left: 20px; font-size: 15px; }
.way li::marker { color: var(--primary); font-weight: 700; }
.profiles { margin-top: 34px; }
.profiles h3 { font-size: 20px; }
@media (max-width: 900px){ .ways { grid-template-columns: 1fr; } .way + .way { border-left: 0; border-top: 2px solid var(--secondary); } }


/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--primary-soft); color: var(--secondary); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th { color: var(--heading); font-weight: 600; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: var(--soft); }
table.data .me { background: var(--highlight-row); }
table.data thead .me { background: var(--accent); color: var(--secondary); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.warn { background: var(--warning-soft); color: var(--warning); }
.pill.no { background: var(--danger-soft); color: var(--danger); }
.pill.unk { background: var(--soft); color: var(--muted); }
.gpus { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.gpus li { margin: 0; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--heading); font-size: 15px; }
.gpus li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--white); background: var(--success); }
.gpus li.x span { background: var(--danger); }


/* ---------- Pros / cons: two horizontal strips ---------- */
.strip { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: start; padding: 28px 0; border-top: 1px solid var(--border); }
.strip:last-child { border-bottom: 1px solid var(--border); }
.strip h3 { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.strip h3 span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--white); font-size: 20px; }
.strip.pros h3 span { background: var(--success); }
.strip.cons h3 span { background: var(--danger); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.strip li { margin: 0; padding: 10px 16px; border-radius: 30px; font-size: 15px; background: var(--success-soft); color: var(--success-text); }
.strip.cons li { background: var(--danger-soft); color: var(--danger-text); }
@media (max-width: 700px){ .strip { grid-template-columns: 1fr; gap: 12px; } .strip li { border-radius: 12px; } }


/* ---------- Troubleshooting: accordion ---------- */
.fixlist details { border-bottom: 1px solid var(--border); }
.fixlist summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 30px; gap: 14px; align-items: center; padding: 20px 0; font-weight: 600; color: var(--heading); font-size: 17px; }
.fixlist summary::-webkit-details-marker { display: none; }
.fixlist summary .n { width: 40px; height: 40px; border-radius: 12px; background: var(--secondary); color: var(--accent); display: grid; place-items: center; font-size: 15px; }
.fixlist summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); justify-self: center; transition: transform .3s; }
.fixlist details[open] summary::after { transform: rotate(-135deg); }
.fixlist .body { padding: 0 0 20px 54px; font-size: 15px; }
.fixlist .body p:last-child { margin: 0; }
.best { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.best div { padding: 20px; border-radius: var(--radius); background: var(--primary-soft); font-size: 15px; }
.best b { display: block; color: var(--secondary); margin-bottom: 4px; }
@media (max-width: 760px){ .best { grid-template-columns: 1fr; } .fixlist .body { padding-left: 0; } }


/* ---------- Editorial perspectives ---------- */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.view { padding: 28px; border-radius: var(--radius-large); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.view::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c, var(--primary)); opacity: .1; transition: transform .5s var(--ease); }
.view:hover::after { transform: scale(1.6); }
.view .who { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c, var(--primary)); }
.view h3 { font-size: 19px; margin: 8px 0 8px; }
.view p { margin: 0; font-size: 15px; position: relative; }
@media (max-width: 900px){ .views { grid-template-columns: 1fr; } }


/* ---------- FAQ with filter ---------- */
.faq-tools { display: none; align-items: center; gap: 12px; margin-bottom: 20px; max-width: 520px; }
.faq-tools label { font-weight: 600; color: var(--heading); white-space: nowrap; }
.faq-tools input { flex: 1; font: 500 15px var(--font); padding: 12px 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--heading); }
.faq-tools input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }
.js .faq-tools { display: flex; }
.faq details, .faq-cols details { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--border); }
.faq-cols { columns: 2; column-gap: 20px; }
.faq-cols details { break-inside: avoid; }
.faq summary, .faq-cols summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative; font-weight: 600; color: var(--heading); }
.faq summary::-webkit-details-marker, .faq-cols summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq-cols summary::after { content: "+"; position: absolute; right: 18px; top: 15px; font-size: 22px; color: var(--primary); transition: transform .3s; }
.faq details[open] summary::after, .faq-cols details[open] summary::after { transform: rotate(45deg); }
.faq details[open], .faq-cols details[open] { border-color: var(--primary); box-shadow: 0 10px 24px -18px var(--primary-shadow); }
.faq .answer, .faq-cols .answer { padding: 0 20px 18px; font-size: 15px; }
.faq .answer p:last-child, .faq-cols .answer p:last-child { margin: 0; }
.no-results { display: none; color: var(--muted); }
@media (max-width: 860px){ .faq-cols { columns: 1; } }


/* ---------- Final CTA: dark band with spectrum rays ---------- */
.final { position: relative; overflow: hidden; background: var(--secondary); color: var(--on-dark); }
.rays { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.rays span { position: absolute; left: 50%; top: 110%; width: 3px; height: 1100px; transform-origin: top center; background: linear-gradient(180deg, var(--c), transparent 70%); animation: sway 8s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: var(--a1); } to { rotate: var(--a2); } }
.final .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.final h2 { color: var(--white); }
.final p { margin-bottom: 26px; }
.final .meta { font-size: 14px; color: var(--on-dark-muted); margin: 12px 0 0; }
.final-img { border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,.15); transform: rotate(-3deg); }
@media (max-width: 860px){ .final .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; } .final-img { transform: none; } }


/* ---------- Inner pages ---------- */
.page-head { padding: 56px 0 40px; background: var(--surface); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--spectrum); }
.page-head::before { content: ""; position: absolute; right: 6%; top: -40px; width: 220px; height: 220px; border: 2px dashed var(--primary-soft); border-radius: 50%; animation: spin 40s linear infinite; }
.page-head p { max-width: 700px; font-size: var(--lead-size); margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "→"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--body); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.content { max-width: 780px; padding: 50px 0 var(--section-space); }
.content h2 { font-size: 28px; margin-top: 38px; }
.content h3 { font-size: 20px; margin-top: 24px; }
.content .table-wrap { margin: 22px 0; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.boxes div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.boxes h2 { font-size: 17px; margin: 0 0 6px; }
.boxes p { margin: 0; font-size: 15px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cols3 h2 { font-size: 20px; margin-top: 0; }
@media (max-width: 760px){ .boxes, .cols3 { grid-template-columns: 1fr; } }

/* Guides archive: horizontal list rows with thumbnails */
.glist { padding: 46px 0 var(--section-space); display: grid; gap: 18px; }
.grow { display: grid; grid-template-columns: 220px 1fr 60px; gap: 26px; align-items: center; padding: 14px; background: var(--surface); border-radius: var(--radius-large); border: 1px solid var(--border); text-decoration: none; color: var(--body); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.grow:hover { transform: translateX(8px); border-color: var(--primary); box-shadow: 0 20px 34px -24px var(--primary-shadow); color: var(--body); }
.grow img { width: 220px; height: 130px; object-fit: cover; border-radius: 16px; }
.grow h2 { font-size: 20px; margin: 2px 0 6px; color: var(--heading); }
.grow p { margin: 0; font-size: 15px; }
.grow .go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: background .3s, color .3s; }
.grow:hover .go { background: var(--primary); color: var(--white); }
.grow .go svg { width: 20px; height: 20px; }
@media (max-width: 760px){ .grow { grid-template-columns: 1fr; } .grow img { width: 100%; height: 170px; } .grow .go { display: none; } }

/* Article */
.article-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 56px; padding: 50px 0 var(--section-space); align-items: start; }
.article-wrap .content { padding: 0; max-width: none; min-width: 0; }
.toc { position: sticky; top: 96px; }
.toc h2 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--primary-soft); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -3px; border-left: 3px solid transparent; font-size: 14px; color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--primary); border-left-color: var(--primary); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 14px; }
.keys { background: var(--surface); border: 2px solid var(--secondary); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 26px; }
.keys h2 { font-size: 18px; margin: 0 0 8px; }
.keys ul { margin: 0; }
.figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.figure img { width: 100%; }
.figure figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; }
.end-cta { margin-top: 36px; padding: 28px; border-radius: var(--radius-large); background: var(--secondary); color: var(--on-dark); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.end-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--spectrum); }
.end-cta h2 { color: var(--white); font-size: 22px; margin: 0 0 4px; }
.end-cta p { margin: 0; font-size: 15px; }
.related { margin-top: 32px; }
.related h2 { font-size: 20px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 500; color: var(--heading); }
.related a:hover { color: var(--primary); }
@media (max-width: 960px){ .article-wrap { grid-template-columns: 1fr; } .toc { position: static; } }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound .code { font-size: 130px; font-weight: 800; line-height: 1; letter-spacing: -4px; margin-bottom: 10px; }
.notfound p { max-width: 520px; margin: 0 auto 24px; }
.notfound .btn { margin: 6px; }


/* ---------- Footer: light, with big outline wordmark ---------- */
.site-footer { background: var(--surface); position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.footer-word { font-size: 170px; font-weight: 800; line-height: .8; letter-spacing: -6px; color: transparent; -webkit-text-stroke: 2px var(--line); text-align: center; margin: 40px 0 -10px; user-select: none; }
.footer-main { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding: 34px 0 40px; }
.footer-main .brand-text { border: 0; padding: 0; margin-top: 6px; display: block; }
.footer-main p { font-size: 15px; margin: 14px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer h2 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--heading); text-decoration: none; font-size: 15px; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.site-footer a:hover { background-size: 100% 3px; color: var(--heading); }
.disclose { display: flex; gap: 12px; align-items: center; margin: 0 0 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--primary-soft); color: var(--secondary); font-size: 14px; font-weight: 500; }
.disclose svg { width: 22px; height: 22px; flex: none; color: var(--primary); }
.copyright { background: var(--secondary); color: var(--on-dark); text-align: center; padding: 18px 0; font-size: 14px; }
.copyright p { margin: 0; }
.copyright a { color: var(--accent); font-weight: 600; background: none; }
.copyright a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 900px){ .footer-main { grid-template-columns: 1fr; gap: 30px; } .footer-word { font-size: 110px; } }
@media (max-width: 560px){ .footer-links { grid-template-columns: 1fr 1fr; } .footer-word { font-size: 64px; letter-spacing: -2px; } }


/* ---------- Mobile spacing ---------- */
@media (max-width: 760px){
  .container { padding: 0 var(--gutter-mobile); }
  .section { padding: var(--section-space-mobile) 0; }
  .hero { padding: 40px 0 60px; }
  .sec-title { margin-bottom: 32px; }
  .notfound .code { font-size: 90px; }
}


/* ---------- Scroll animations: blur-in (only when JavaScript runs) ---------- */
.reveal .focus-in { opacity: 0; filter: blur(10px); transform: translateY(24px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.reveal .focus-in.is-visible { opacity: 1; filter: none; transform: none; }
.reveal .lineup > * { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal .lineup.is-visible > * { opacity: 1; transform: none; }
.reveal .lineup.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal .lineup.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal .lineup.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal .lineup.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal .lineup.is-visible > *:nth-child(6) { transition-delay: .4s; }
.reveal .lineup.is-visible > *:nth-child(n+7) { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal .focus-in, .reveal .lineup > * { opacity: 1; filter: none; transform: none; }
  .beam-list::after { display: none; }
}
