/*!
 * Optiqon - custom.css
 * Doel: centrale styling (CSP-friendly: geen inline styles)
 * Kleurbron: /assets/css/app-vars.css.php (single source of truth)
 * Scope: alles onder body.optq zodat andere pagina's niet worden beïnvloed.
 */

/* =========================
   0) Resets / defaults
   ========================= */
body.optq{
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(var(--brand-rgb), .22), transparent 60%),
    radial-gradient(800px 450px at 85% 15%, rgba(var(--sub-rgb), .18), transparent 55%),
    radial-gradient(900px 600px at 60% 85%, rgba(var(--sub-2-rgb), .14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
  margin: 0;
}

body.optq *,
body.optq *::before,
body.optq *::after{
  box-sizing: border-box;
}

body.optq a{
  color: var(--brand-2);
  text-decoration: none;
}
body.optq a:hover{ text-decoration: underline; }

body.optq .text-muted{ color: var(--muted) !important; }

/* Improve focus without inline styles */
body.optq :where(button,[type="button"],[type="submit"],a,input,textarea,select):focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

/* Helpers */
body.optq .w-100{ width:100%; }
body.optq .shadow-2xl{ box-shadow: 0 24px 90px rgba(0,0,0,.45); }

/* =========================
   1) Layout shell (replaces tailwind max-w + px)
   ========================= */
body.optq .optq-shell{
  width: min(1100px, calc(100% - 3rem));
  margin-inline: auto;
}

@media (max-width: 640px){
  body.optq .optq-shell{ width: calc(100% - 2rem); }
}

/* Section spacing */
body.optq .optq-section{
  padding: 4rem 0;
}
@media (max-width: 768px){
  body.optq .optq-section{ padding: 3.25rem 0; }
}

/* section separator (instead of tailwind border-white/5) */
body.optq .section-sep{
  border-top: 1px solid rgba(255,255,255,.08);
}

/* width helpers */
body.optq .optq-maxw-2xl{ max-width: 42rem; }

/* =========================
   2) Typography (replaces tailwind text sizing)
   ========================= */
body.optq .optq-h1{
  margin: 1.2rem 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: rgba(255,255,255,.96);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}
body.optq .optq-h2{
  display: block;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
}
body.optq .optq-lead{
  margin-top: 1.25rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  font-size: 1.1rem;
}
body.optq .optq-lead2{
  margin-top: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}
body.optq .optq-muted{ color: rgba(255,255,255,.70); }
body.optq .optq-strong{ color: rgba(255,255,255,.92); font-weight: 600; }

/* Accent text gradient */
body.optq .accent-gradient{
  background: linear-gradient(90deg, rgba(255,255,255,.90), rgba(var(--sub-rgb), .95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================
   3) Glass / surfaces
   ========================= */
body.optq .glass{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.optq .glass-soft{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.optq .panel-dark{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

/* subtle glow on hover */
body.optq .glow-hover{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
body.optq .glow-hover:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--sub-rgb), .25);
  box-shadow: 0 20px 60px rgba(0,0,0,.30);
  background: rgba(255,255,255,.07);
}

/* lift helper */
body.optq .lift{
  transition: transform .15s ease, box-shadow .15s ease;
}
body.optq .lift:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 55px rgba(0,0,0,.40);
}
@media (prefers-reduced-motion: reduce){
  body.optq .glow-hover,
  body.optq .lift{ transition: none !important; }
}

/* =========================
   4) Buttons
   ========================= */
body.optq .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: .75rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-decoration: none !important;
}

body.optq .btn-lg{
  padding: .85rem 1.25rem;
  font-size: .95rem;
}

body.optq .btn-primary{
  background: linear-gradient(135deg, rgba(var(--sub-rgb), .95), rgba(var(--sub-2-rgb), .92));
  border: 1px solid rgba(var(--sub-2-rgb), .35);
  color: #111;
  box-shadow: 0 10px 28px rgba(var(--brand-rgb), .12);
}
body.optq .btn-primary:hover{ filter: brightness(1.03); }
body.optq .btn-primary:active{ transform: translateY(0); }

body.optq .btn-ghost{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
body.optq .btn-ghost:hover{ background: rgba(255,255,255,.08); }

/* =========================
   5) Dots / pills
   ========================= */
body.optq .dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  vertical-align:middle;
}
body.optq .dot-brand{ background: var(--brand); }
body.optq .dot-brand2{ background: var(--brand-2); }
body.optq .dot-sub{ background: var(--sub); }
body.optq .dot-sub2{ background: var(--sub-2); }
body.optq .dot-ice{ background: rgba(255,255,255,.75); }

body.optq .badge-optq{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}

body.optq .optq-pill{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.75);
}

/* =========================
   6) Header / topbar (old tailwind sticky header look)
   ========================= */
body.optq .optq-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.optq .optq-topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

body.optq .optq-brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.92);
  text-decoration: none !important;
}

body.optq .optq-brand-mark{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
body.optq .optq-brand-letter{
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.optq .optq-brand-name{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

body.optq .optq-nav{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .9rem;
  color: rgba(255,255,255,.72);
}
body.optq .optq-navlink{
  color: rgba(255,255,255,.72);
}
body.optq .optq-navlink:hover{
  color: rgba(255,255,255,.95);
  text-decoration: none;
}

@media (max-width: 768px){
  body.optq .optq-nav{ display:none; }
  body.optq .optq-cta{ padding: .7rem 1rem; font-size: .9rem; }
}

/* =========================
   7) Hero (matches old tailwind spacing)
   ========================= */
body.optq .hero-surface{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 4rem 0 3.5rem;
}
@media (min-width: 768px){
  body.optq .hero-surface{ padding: 6rem 0 5rem; }
}

body.optq .hero-surface::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(var(--brand-rgb), .25), transparent 60%),
    radial-gradient(700px 420px at 75% 25%, rgba(var(--sub-rgb), .12), transparent 60%),
    radial-gradient(700px 520px at 45% 95%, rgba(var(--sub-2-rgb), .10), transparent 60%);
  pointer-events:none;
  z-index:0;
}
body.optq .hero-surface::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,0)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 3px, transparent 8px);
  opacity:.10;
  mix-blend-mode:overlay;
  pointer-events:none;
  z-index:0;
}

/* canvas behind content */
body.optq #fxCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  opacity:.9;
}
body.optq .content-layer{ position:relative; z-index:1; }

/* hero grid */
body.optq .optq-hero{
  padding-top: .5rem;
}
body.optq .optq-hero-grid{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px){
  body.optq .optq-hero-grid{
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
  }
}

/* hero actions */
body.optq .optq-actions{
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
@media (min-width: 640px){
  body.optq .optq-actions{
    flex-direction: row;
    align-items: center;
  }
}

/* hero bullets */
body.optq .optq-bullets{
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.60);
}
body.optq .optq-bullet{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* hero card */
body.optq .optq-card{
  padding: 1.5rem;
}
@media (min-width: 768px){
  body.optq .optq-card{ padding: 1.75rem; }
}

body.optq .optq-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
body.optq .optq-card-title{
  margin:0;
  font-weight:800;
  color: rgba(255,255,255,.92);
}
body.optq .optq-card-kicker{
  font-size:.78rem;
  color: rgba(255,255,255,.55);
}

body.optq .optq-card-grid{
  margin-top: 1.1rem;
  display:grid;
  gap: .75rem;
}

body.optq .optq-tile{
  padding: 1rem;
  border-radius: 16px;
}
body.optq .optq-tile-title{
  margin:0;
  font-weight:800;
  color: rgba(255,255,255,.92);
  font-size: .95rem;
}
body.optq .optq-tile-text{
  margin:.35rem 0 0;
  color: rgba(255,255,255,.70);
  font-size: .92rem;
  line-height: 1.45;
}

body.optq .optq-panel{
  margin-top: 1.1rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.15);
  border-radius: 16px;
  padding: 1rem;
}
body.optq .optq-panel-label{
  margin:0;
  font-size:.75rem;
  color: rgba(255,255,255,.55);
}
body.optq .optq-panel-text{
  margin:.35rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  line-height: 1.4;
}

body.optq .optq-hero-glow{
  position: absolute;
  inset: -80px;
  background: rgba(var(--brand-rgb), .18);
  filter: blur(60px);
  z-index: -1;
  border-radius: 999px;
}

/* =========================
   8) Services / Roadmap / Approach grids
   ========================= */
body.optq .optq-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
body.optq .optq-link-sub{
  font-weight: 800;
  color: rgba(var(--sub-rgb), .95);
}
body.optq .optq-link-sub:hover{ color: rgba(255,255,255,.92); text-decoration:none; }

body.optq .optq-grid-3{
  margin-top: 2.5rem;
  display:grid;
  gap: 1rem;
}
@media (min-width: 768px){
  body.optq .optq-grid-3{ grid-template-columns: repeat(3, 1fr); }
}

body.optq .optq-grid-4{
  margin-top: 2.5rem;
  display:grid;
  gap: 1rem;
}
@media (min-width: 768px){
  body.optq .optq-grid-4{ grid-template-columns: repeat(4, 1fr); }
}

body.optq .optq-service{
  padding: 1.5rem;
  border-radius: 22px;
}
body.optq .optq-service-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
}
body.optq .optq-service-title{
  margin:0;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}
body.optq .optq-service-note{
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  max-width: 16rem;
}
body.optq .optq-service-text{
  margin-top: .9rem;
  color: rgba(255,255,255,.70);
  line-height: 1.55;
  font-size: .95rem;
}
body.optq .optq-service-list{
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.70);
  font-size: .9rem;
  line-height: 1.8;
}
body.optq .optq-actions-wrap{
  margin-top: 1.1rem;
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/* roadmap steps */
body.optq .optq-step{
  padding: 1.5rem;
  border-radius: 22px;
}
body.optq .optq-step-kicker{
  margin:0;
  font-size:.75rem;
  color: rgba(255,255,255,.55);
}
body.optq .optq-step-title{
  margin:.5rem 0 0;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}
body.optq .optq-step-text{
  margin:.5rem 0 0;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
  font-size: .95rem;
}

body.optq .optq-cta-row{
  margin-top: 2rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.15);
  border-radius: 22px;
  padding: 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
body.optq .optq-cta-title{
  margin:0;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}
body.optq .optq-cta-text{
  margin:.35rem 0 0;
  color: rgba(255,255,255,.70);
}

/* approach layout */
body.optq .optq-approach-grid{
  display:grid;
  gap: 2.5rem;
  align-items:start;
}
@media (min-width: 768px){
  body.optq .optq-approach-grid{
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
body.optq .optq-stack{
  margin-top: 1.25rem;
  display:grid;
  gap: .75rem;
}

/* =========================
   9) Forms (landing)
   ========================= */
body.optq .optq-contact{
  padding: 2rem;
  border-radius: 26px;
}
@media (min-width: 768px){
  body.optq .optq-contact{ padding: 2.5rem; }
}

body.optq .optq-contact-grid{
  display:grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px){
  body.optq .optq-contact-grid{
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

body.optq .optq-form{
  padding: 1.5rem;
  border-radius: 22px;
}

body.optq .optq-form-grid{
  display:grid;
  gap: 1rem;
}

body.optq .optq-label{
  display:block;
  font-size:.8rem;
  color: rgba(255,255,255,.70);
  margin-bottom: .4rem;
  font-weight: 700;
}

body.optq .form-control{
  width: 100%;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  padding: .85rem 1rem;
  font-size: .95rem;
}
body.optq .form-control::placeholder{ color: rgba(255,255,255,.42); }
body.optq .form-control:focus{
  border-color: rgba(var(--brand-2-rgb), .45);
  box-shadow: var(--ring);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
}

body.optq .optq-help{
  margin:0;
  font-size:.75rem;
  color: rgba(255,255,255,.45);
}

/* =========================
   10) Footer
   ========================= */
body.optq .optq-footer{
  margin-top: 2.5rem;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,.45);
}
body.optq .optq-footer-links{
  display:flex;
  gap: 1rem;
  flex-wrap: wrap;
}
body.optq .optq-footer a{ color: rgba(255,255,255,.55); }
body.optq .optq-footer a:hover{ color: rgba(255,255,255,.75); text-decoration:none; }

/* =========================
   11) Modal helpers (works with your landing.js)
   ========================= */
body.optq .optq-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.14);
  padding: 0;
}
body.optq .optq-dot.is-active{
  background: rgba(var(--sub-rgb), .95);
  border-color: rgba(var(--sub-rgb), .65);
}

/* lock scroll for custom modals */
html.optq-no-scroll, body.optq-no-scroll{ overflow: hidden !important; }
