/* KollNet Technologies LLC */

:root {
  --navy: #0b1d4f;
  --navy-2: #13306f;
  --blue: #1677e8;
  --blue-dark: #0f5fc0;
  --cyan: #22b8f0;
  --ink: #1b2440;
  --muted: #5a6582;
  --line: #dde4f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --success-bg: #e8f7ee;
  --success-ink: #165c33;
  --error-bg: #fdecec;
  --error-ink: #9b1c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 29, 79, .06), 0 8px 24px rgba(11, 29, 79, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 10;
}
.skip-link:focus { left: .5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--navy); }
.brand-name span { color: var(--blue); }

.site-nav { display: flex; gap: .25rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .45rem .8rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--blue-dark); background: #eaf2fe; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font: inherit; font-weight: 650;
  padding: .7rem 1.35rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-small { padding: .4rem .85rem; font-size: .9rem; border-radius: 8px; }

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(34, 184, 240, .16), transparent 70%),
    linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(560px, 90vw); height: auto; margin-bottom: 1.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .75rem; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head { padding-bottom: 0; }
.page-head .lead { margin-inline: 0; }
.page-head.section .center .lead { margin-inline: auto; }

.skills { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.skills li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.skills svg { flex: none; width: 32px; height: 32px; color: var(--blue); }
.skills strong { display: block; color: var(--navy); }
.skills span { font-size: .95rem; color: var(--muted); }

.apps { background: var(--bg-soft); border-block: 1px solid var(--line); }
.app-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.app-card {
  display: flex; gap: 1.1rem; padding: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.app-card h3 { margin-bottom: .35rem; }
.app-icon {
  flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--navy));
  color: #fff;
}
.app-icon svg { width: 34px; height: 34px; }
.app-body p { color: var(--muted); font-size: .98rem; }
.platforms { display: flex; gap: .4rem; margin-bottom: .6rem; }
.tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: .15rem .55rem; border-radius: 999px; background: #eaf2fe; color: var(--blue-dark);
}
.app-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-card-placeholder {
  box-shadow: none; background: transparent; border-style: dashed; align-items: center; justify-content: center; text-align: center;
}
.app-card-placeholder p { margin: 0; }

.contact-band .btn { margin-top: .5rem; }

/* Prose (privacy) */
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .7rem; }

/* Form */
.form-section { padding-top: 2rem; }
.support-form { display: grid; gap: 1.1rem; }
.row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; }
.field label { font-weight: 650; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #c9d3e5; border-radius: 10px; padding: .65rem .8rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 232, .2);
}
.field [aria-invalid="true"] { border-color: var(--error-ink); }
.field-error { color: var(--error-ink); font-size: .9rem; margin: .35rem 0 0; }
.hint { color: var(--muted); font-size: .88rem; margin: .35rem 0 0; }
.support-form .btn { justify-self: start; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-success { background: var(--success-bg); color: var(--success-ink); padding: 1.5rem; }
.notice-success h2 { color: var(--success-ink); font-size: 1.35rem; }
.notice-error { background: var(--error-bg); color: var(--error-ink); }

/* Footer */
.site-footer { background: var(--navy); color: #c8d3ef; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }

@media (max-width: 560px) {
  .header-inner { height: 58px; }
  .brand-name { display: none; }
  .app-card { flex-direction: column; }
  .app-grid { grid-template-columns: 1fr; }
}

/* ---------- Admin ---------- */
.notice-info { background: #eaf2fe; color: var(--navy-2); }
.btn-danger { background: #fff; color: var(--error-ink); border-color: #efc4c4; }
.btn-danger:hover { background: var(--error-bg); color: var(--error-ink); border-color: var(--error-ink); }
.btn-block { display: block; width: 100%; text-align: center; }
.inline-form { display: inline; margin: 0; }
.link-button {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
  background: none; border: 0; padding: .45rem .8rem; border-radius: 8px; cursor: pointer;
}
.link-button:hover { background: var(--bg-soft); color: var(--navy); }
.brand-name small { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-left: .25rem; }
.admin-main { padding-top: 2rem; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.admin-title h1 { margin: 0; font-size: 1.8rem; }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.empty { padding: 2rem 0; }
code { font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }

.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a {
  text-decoration: none; color: var(--muted); font-weight: 600; padding: .55rem .9rem;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue); }
.count { font-size: .78rem; background: var(--bg-soft); color: var(--muted); border-radius: 999px; padding: .05rem .5rem; margin-left: .2rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.requests { width: 100%; border-collapse: collapse; font-size: .95rem; }
.requests th, .requests td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.requests th { background: var(--bg-soft); color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.requests tbody tr:last-child td { border-bottom: 0; }
.requests tbody tr:hover { background: #fafcff; }
.requests form { margin: 0; }

.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.status-new { background: #fff3d6; color: #7a5200; }
.status-in_progress { background: #eaf2fe; color: var(--blue-dark); }
.status-closed { background: #e8ecf2; color: var(--muted); }

.request-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.request-detail h2, .request-actions h2 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.request-actions section:first-child h2 { margin-top: 0; }
.request-actions { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.meta dt { font-weight: 650; color: var(--navy); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.message { white-space: normal; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; overflow-wrap: anywhere; }
.stack { display: grid; gap: .75rem; }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.checkbox input { margin-top: .3rem; }
.login-box { max-width: 380px; margin: 2rem auto; }

@media (max-width: 800px) {
  .request-layout { grid-template-columns: 1fr; }
}
.nav-user { align-self: center; font-size: .85rem; color: var(--muted); padding: 0 .6rem; }
.login-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.5rem 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .nav-user { display: none; } }
