:root {
  color-scheme: light;
  --cq-color-brand-50: #e7fdf0; --cq-color-brand-100: #c5fbda;
  --cq-color-brand-300: #8eebb7; --cq-color-brand-400: #61d19d;
  --cq-color-brand-500: #57a284; --cq-color-brand-600: #358464;
  --cq-color-brand-700: #3f7a63; --cq-color-brand-800: #284d3e;
  --cq-color-brand-900: #233d31; --cq-color-brand-1100: #0a150f;
  --cq-color-neutral-0: #fff; --cq-color-neutral-50: #f7f8f9;
  --cq-color-neutral-100: #eef0f2; --cq-color-neutral-200: #e5e8eb;
  --cq-color-neutral-300: #d3d8de; --cq-color-neutral-500: #8794a6;
  --cq-color-neutral-600: #6a778b; --cq-color-neutral-800: #3c4656;
  --cq-color-neutral-1000: #222935; --cq-color-neutral-1100: #0d1420;
  --cq-color-page: #eff3f6; --cq-color-surface: #fff;
  --cq-color-text: #111827; --cq-color-text-muted: #5f6b7a;
  --cq-color-border: rgb(17 24 39 / 10%); --cq-color-border-strong: rgb(17 24 39 / 16%);
  --cq-color-primary: #2f6d57; --cq-color-primary-hover: #57a284;
  --cq-color-error: #8a3030; --cq-color-error-surface: #f8dddd;
  --cq-font-sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --cq-space-1: .25rem; --cq-space-2: .5rem; --cq-space-3: .75rem;
  --cq-space-4: 1rem; --cq-space-5: 1.25rem; --cq-space-6: 1.5rem; --cq-space-8: 2rem;
  --cq-radius-sm: .35rem; --cq-radius-md: .45rem; --cq-radius-lg: .75rem;
  --cq-radius-pill: 999px; --cq-shadow-panel: 0 18px 40px rgb(13 20 32 / 12%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--cq-color-text); background: var(--cq-color-page); font-family: var(--cq-font-sans); }
button, a { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgb(97 209 157 / 55%); outline-offset: 3px; }

.site-header { position: relative; z-index: 10; background: var(--cq-color-brand-1100); color: white; }
.nav { width: min(1180px, calc(100% - 40px)); height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 166px; height: 52px; display: block; overflow: hidden; text-decoration: none; }
.brand-banner { width: 166px; height: 52px; display: block; object-fit: cover; object-position: center; }
.nav-actions { display: flex; align-items: center; gap: var(--cq-space-4); }
.company-link { color: #cbd5ce; font-size: .78rem; font-weight: 600; text-decoration: none; }
.company-link:hover { color: white; }

.button { min-height: 2.45rem; border: 1px solid transparent; border-radius: var(--cq-radius-md); padding: 0 .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-size: .78rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--cq-color-brand-1100); background: var(--cq-color-brand-400); }
.button-primary:hover { background: var(--cq-color-brand-300); }
.button-secondary { color: white; border-color: rgb(255 255 255 / 25%); background: rgb(255 255 255 / 7%); }
.button-secondary:hover { border-color: rgb(255 255 255 / 48%); background: rgb(255 255 255 / 12%); }

.hero { position: relative; overflow: hidden; background: var(--cq-color-brand-1100); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgb(142 235 183 / 10%) 1px, transparent 1px), linear-gradient(90deg, rgb(142 235 183 / 10%) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent 5%, #000 68%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -150px; border: 1px solid rgb(142 235 183 / 20%); border-radius: 48% 52% 64% 36%; box-shadow: 0 0 0 90px rgb(87 162 132 / 5%), 0 0 0 180px rgb(87 162 132 / 3%); transform: rotate(20deg); }
.hero-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); min-height: 405px; margin: auto; padding: 77px 0 74px; }
.eyebrow { margin: 0 0 17px; display: flex; align-items: center; gap: .65rem; color: var(--cq-color-brand-300); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1 { max-width: 700px; margin: 0; font-size: clamp(2.35rem, 5.4vw, 4.75rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy { max-width: 610px; margin: 24px 0 0; color: #c5d1cb; font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.65; }
.hero-meta { margin-top: 31px; display: flex; align-items: center; gap: 18px; color: #9fb0a7; font-size: .72rem; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.meta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cq-color-brand-400); box-shadow: 0 0 0 4px rgb(97 209 157 / 12%); }
.hero-logo { position: absolute; z-index: -1; right: 45px; top: 45px; width: 285px; height: 285px; object-fit: contain; opacity: .28; filter: saturate(.85); }

main { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 60px 0 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 25px; }
.section-kicker { margin: 0 0 8px; color: var(--cq-color-primary); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h2 { margin: 0; color: var(--cq-color-neutral-1100); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.section-copy { max-width: 450px; margin: 0; color: var(--cq-color-text-muted); font-size: .82rem; line-height: 1.55; }

.state { min-height: 230px; border: 1px solid var(--cq-color-border); border-radius: var(--cq-radius-lg); background: var(--cq-color-surface); display: grid; place-items: center; padding: 36px; text-align: center; }
.state[hidden], .app-grid[hidden] { display: none; }
.state-inner { max-width: 500px; }
.state-icon { width: 48px; height: 48px; margin: 0 auto 17px; border-radius: 50%; display: grid; place-items: center; color: var(--cq-color-primary); background: var(--cq-color-brand-50); }
.state h3 { margin: 0 0 8px; font-size: 1.05rem; }
.state p { margin: 0 auto 20px; color: var(--cq-color-text-muted); font-size: .8rem; line-height: 1.55; }
.state.error { color: var(--cq-color-error); background: var(--cq-color-error-surface); border-color: rgb(138 48 48 / 16%); }
.state.error p { color: #713b3b; }
.spinner { width: 30px; height: 30px; margin: 0 auto 17px; border: 3px solid var(--cq-color-brand-100); border-top-color: var(--cq-color-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cq-space-4); }
.app-card { min-height: 225px; border: 1px solid var(--cq-color-border); border-radius: var(--cq-radius-lg); padding: 24px; position: relative; display: flex; flex-direction: column; overflow: hidden; color: inherit; background: var(--cq-color-surface); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.app-card::after { content: ""; position: absolute; right: -36px; bottom: -46px; width: 120px; height: 120px; border: 1px solid var(--cq-color-brand-100); border-radius: 50%; }
.app-card:hover { transform: translateY(-3px); border-color: rgb(47 109 87 / 30%); box-shadow: var(--cq-shadow-panel); }
.app-card--unavailable { cursor: default; }
.app-card--unavailable:hover { transform: none; border-color: var(--cq-color-border); box-shadow: none; }
.card-top { display: flex; align-items: start; gap: 10px; }
.app-icon { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--cq-color-border); border-radius: var(--cq-radius-md); padding: 8px; background: var(--cq-color-neutral-50); }
.app-icon-fallback { font-size: 1rem; font-weight: 800; color: var(--cq-color-primary); }
.tag { max-width: 105px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border-radius: var(--cq-radius-pill); color: var(--cq-color-primary); background: var(--cq-color-brand-50); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.preview-button { flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid var(--cq-color-border); border-radius: var(--cq-radius-pill); padding: 6px; display: grid; place-items: center; color: var(--cq-color-primary); background: var(--cq-color-surface); cursor: pointer; }
.app-icon + .preview-button { margin-left: auto; }
.preview-button:hover { border-color: var(--cq-color-primary); background: var(--cq-color-brand-50); }
.preview-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app-card h3 { margin: 23px 0 7px; font-size: 1.05rem; letter-spacing: -.02em; }
.app-card p { margin: 0 0 20px; color: var(--cq-color-text-muted); font-size: .76rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.launch { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; color: var(--cq-color-primary); font-size: .72rem; font-weight: 800; text-decoration: none; }
.launch span { display: inline-block; transition: transform 150ms ease; }
.app-card:hover .launch span { transform: translateX(4px); }

.preview-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--cq-radius-lg); padding: 0; overflow: hidden; color: var(--cq-color-text); background: var(--cq-color-surface); box-shadow: 0 24px 70px rgb(13 20 32 / 35%); }
.preview-dialog::backdrop { background: rgb(10 21 15 / 76%); backdrop-filter: blur(4px); }
.preview-header { min-height: 58px; border-bottom: 1px solid var(--cq-color-border); padding: 10px 12px 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-header h2 { font-size: 1rem; }
.preview-close { width: 38px; height: 38px; border: 0; border-radius: var(--cq-radius-pill); display: grid; place-items: center; color: var(--cq-color-text-muted); background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.preview-close:hover { color: var(--cq-color-text); background: var(--cq-color-neutral-100); }
.preview-image-wrap { max-height: calc(100vh - 106px); padding: 18px; overflow: auto; display: grid; place-items: center; background: var(--cq-color-neutral-50); }
.preview-image-wrap img { display: block; max-width: 100%; max-height: calc(100vh - 142px); object-fit: contain; border-radius: var(--cq-radius-sm); }

footer { border-top: 1px solid var(--cq-color-border); color: var(--cq-color-text-muted); background: var(--cq-color-surface); }
.footer-inner { width: min(1180px, calc(100% - 40px)); min-height: 90px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .7rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cq-color-primary); }

@media (max-width: 800px) {
  .company-link { display: none; }
  .hero-logo { right: -50px; opacity: .18; }
  .hero-inner { min-height: 370px; padding: 60px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .nav { width: min(100% - 28px, 1180px); }
  .brand { width: 128px; }
  .brand-banner { width: 128px; }
  .nav .button { padding: 0 .7rem; }
  .hero-inner, main, .footer-inner { width: min(100% - 28px, 1180px); }
  .hero-meta { align-items: start; flex-direction: column; gap: 10px; }
  main { padding-top: 42px; }
  .app-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 22px 0; align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
