/* ============================================================
   Cafferata Apps — huisstijl v2 "Liquid Glass"
   Apple-look: licht, ruim, SF-typografie — met Liquid Glass
   panelen (backdrop-blur + saturatie + speculaire randen) op een
   zacht bewegende kleurgloed. Geen externe dependencies.
   ============================================================ */

:root {
  --bg: #f5f5f7;               /* Apple-grijs */
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #d2d2d7;
  --link: #0066cc;
  --blue: #0071e3;             /* Apple-knopblauw */
  --teal: #00c2cb;
  --violet: #7c5cff;
  --green: #34c759;            /* Apple-systeemkleuren */
  --orange: #ff9500;
  --sysblue: #007aff;
  --radius: 24px;
  --maxw: 1120px;

  /* Liquid Glass receptuur */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(26px) saturate(180%);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Zacht drijvende kleurgloed achter het glas */
body::before {
  content: "";
  position: fixed;
  inset: -30vh -25vw;
  background:
    radial-gradient(38% 32% at 22% 26%, rgba(0, 194, 203, 0.22), transparent 70%),
    radial-gradient(34% 30% at 78% 22%, rgba(0, 113, 227, 0.18), transparent 70%),
    radial-gradient(36% 34% at 60% 78%, rgba(124, 92, 255, 0.16), transparent 70%),
    radial-gradient(30% 28% at 14% 80%, rgba(255, 149, 0, 0.12), transparent 70%);
  filter: blur(40px);
  animation: aurora 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3vw, -2vh, 0) scale(1.06); }
  100% { transform: translate3d(-3vw, 2vh, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Liquid Glass basisklasse ---------- */
.glass,
nav,
.card,
.panel,
.world {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), var(--glass-sheen);
}

/* Fallback zonder backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  nav, .card, .panel, .world { background: rgba(255, 255, 255, 0.92); }
}

/* ---------- Navigatie (Apple-stijl, glas) ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.65);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: none;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

/* TheITCrowd-logo in een Liquid Glass-ring */
.brand-glass {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}

/* speculaire glans over het glas */
.brand-glass::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.brand-glass img {
  width: 28px; height: 28px;
  max-width: 28px; max-height: 28px;
  border-radius: 50%;
  display: block;
}

.brand:hover .brand-glass { transform: scale(1.08) rotate(-4deg); }

.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }

.nav-links a {
  color: rgba(29, 29, 31, 0.72);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(0, 0, 0, 0.05); text-decoration: none; }
.nav-links a.active { color: #fff; background: var(--text); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-top: 110px;
  padding-bottom: 80px;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.kicker-blue   { color: var(--blue);   background: rgba(0, 113, 227, 0.08); border-color: rgba(0, 113, 227, 0.18); }
.kicker-amber  { color: #c93400;       background: rgba(255, 149, 0, 0.10); border-color: rgba(255, 149, 0, 0.25); }

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.07;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #0071e3 5%, #00c2cb 45%, #7c5cff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.002em;
  line-height: 1.45;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Knoppen (Apple-pills met glas-sheen) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 980px;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1.2), box-shadow 0.18s, background 0.18s;
  overflow: hidden;
}
.btn:hover { text-decoration: none; transform: scale(1.03); }
.btn:active { transform: scale(0.98); }

/* speculaire sheen over de knop */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.32);
}
.btn-primary:hover { background: #0077ed; box-shadow: 0 10px 26px rgba(0, 113, 227, 0.42); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: var(--glass-sheen);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.8); }

/* ---------- Secties ---------- */
section { padding: 64px 0; }

.section-head { margin-bottom: 36px; text-align: center; }

.section-head h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-head p { color: var(--muted); margin: 10px auto 0; max-width: 640px; font-size: 1.08rem; }

/* ---------- App-kaarten (Liquid Glass) ---------- */
/* Standaard per drie (oneven aantallen / drietallen);
   .grid-2 voor even aantallen: 2 om 2 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Eén tegel: in het midden uitlijnen */
.grid > *:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1.1), box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), var(--glass-sheen);
}

.card-top { display: flex; align-items: center; gap: 16px; }

/* App-iconen als squircle-tegels */
.app-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Echte app-iconen vullen de hele tegel */
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.icon-teal   { background: linear-gradient(135deg, #00c2cb, #007f8f); }
.icon-blue   { background: linear-gradient(135deg, #2f80ed, #1b4fa8); }
.icon-red    { background: linear-gradient(135deg, #ff5e62, #b22343); }
.icon-violet { background: linear-gradient(135deg, #7c5cff, #4a2fb8); }
.icon-amber  { background: linear-gradient(135deg, #ffb648, #d97b16); }
.icon-green  { background: linear-gradient(135deg, #34d399, #0e8f60); }
.icon-pink   { background: linear-gradient(135deg, #f472b6, #b0337a); }
.icon-slate  { background: linear-gradient(135deg, #64748b, #334155); }

.card h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.012em; }

.card .sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.card p.desc { color: #424245; font-size: 0.97rem; flex-grow: 1; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-live    { color: #1d7a3a; background: rgba(52, 199, 89, 0.13);  border-color: rgba(52, 199, 89, 0.35); }
.badge-soon    { color: #b25000; background: rgba(255, 149, 0, 0.13);  border-color: rgba(255, 149, 0, 0.35); }
.badge-dev     { color: #0058b0; background: rgba(0, 122, 255, 0.10);  border-color: rgba(0, 122, 255, 0.30); }
.badge-neutral { color: var(--muted); background: rgba(110, 110, 115, 0.10); border-color: rgba(110, 110, 115, 0.25); }

.card-links { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }

/* Apple-stijl tekstlinks met chevron */
.card-links a {
  font-size: 0.95rem;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-links a::after { content: "›"; font-size: 1.05em; transition: transform 0.15s; }
.card-links a:hover { text-decoration: none; }
.card-links a:hover::after { transform: translateX(3px); }

/* ---------- Twee-werelden blok ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.world {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 42px 36px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1.1), box-shadow 0.25s;
  color: var(--text);
}
.world:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.14), var(--glass-sheen);
  text-decoration: none;
}

/* gekleurde gloed ín het glas */
.world::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-werk::before  { background: radial-gradient(120% 90% at 18% 0%, rgba(0, 113, 227, 0.16), transparent 60%); }
.world-prive::before { background: radial-gradient(120% 90% at 18% 0%, rgba(255, 149, 0, 0.16), transparent 60%); }

.world > * { position: relative; }
.world .emoji { font-size: 2.5rem; }
.world h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; }
.world p { color: var(--muted); font-size: 1rem; }
.world .go { font-weight: 500; color: var(--link); margin-top: 6px; }

/* ---------- Inhoudspagina's ---------- */
.page-hero { padding-top: 84px; padding-bottom: 30px; text-align: center; }
.page-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-hero p.lead { color: var(--muted); font-size: 1.22rem; max-width: 700px; margin: 16px auto 0; line-height: 1.45; }

.panel { border-radius: var(--radius); padding: 32px; }

.panel h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.012em; margin-bottom: 10px; }
.panel p, .panel li { color: #424245; }
.panel ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 7px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.feature-list { list-style: none !important; padding-left: 0 !important; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; }
.feature-list li::before { content: "›"; color: var(--blue); font-weight: 700; }

/* ---------- Footer (Apple-stijl) ---------- */
footer {
  border-top: 1px solid var(--hairline);
  margin-top: 64px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.8rem;
}

.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-inner a { color: var(--muted); }
.foot-inner a:hover { color: var(--text); }

/* ---------- Responsief ---------- */
@media (max-width: 760px) {
  .split, .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; padding-bottom: 52px; }
  .hero p { font-size: 1.12rem; }
  .nav-inner { gap: 14px; }
}

/* Smalle schermen: compacter menu — blijft op één regel */
@media (max-width: 620px) {
  .nav-inner { gap: 10px; padding: 10px 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 11px; font-size: 0.82rem; }
}
