﻿:root {
  --brand: #2b8ea6;
  --brand-2: #2aa7ff;
  --brand-3: #8fb4c0;
  --wa: #25d366;
  --bg: #0b1b2a;
  --bg-2: #0a1624;
  --panel: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #eaf2f7;
  --muted: rgba(233, 242, 247, 0.75);
  --max: 1240px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(1000px 480px at 8% -10%, rgba(42, 167, 255, 0.12), transparent 58%),
    radial-gradient(900px 430px at 92% 5%, rgba(42, 167, 255, 0.06), transparent 57%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body.theme-dark {
  --bg: #0b1b2a;
  --bg-2: #0a1624;
  --panel: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #eaf2f7;
  --muted: rgba(233, 242, 247, 0.8);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(12px);
  background: rgba(7, 16, 24, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0c151d center / 92% 92% no-repeat url("../img/logo-kairostech-icon-v2.jpg");
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.brand strong { font-size: 0.92rem; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; }

.actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
}

.btn:hover { background: rgba(255, 255, 255, 0.08); }

.btn-primary {
  border: none;
  color: #04131d;
  background: linear-gradient(135deg, rgba(42, 167, 255, 0.92), rgba(76, 125, 186, 0.82));
}

.btn-wa {
  border: none;
  color: #052110;
  background: linear-gradient(135deg, var(--wa), rgba(33, 174, 102, 0.95));
}

.hero {
  padding: 2rem 0 1.2rem;
}

.hero-card {
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    radial-gradient(560px 220px at 18% 0%, rgba(42, 167, 255, 0.1), transparent 62%),
    radial-gradient(460px 200px at 92% 12%, rgba(42, 167, 255, 0.05), transparent 60%),
    var(--panel);
  padding: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-3);
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  letter-spacing: -0.02em;
}

.hero-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.section {
  position: relative;
  isolation: isolate;
  padding: 1.2rem 0 2rem;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(860px 280px at 10% 0, rgba(42, 167, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 23, 36, 0.58), rgba(10, 22, 36, 0.74));
}

.grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0.8rem;
}

.card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--panel);
  padding: 0.95rem;
}

.card h2,
.card h3 { margin: 0; }

.card p,
.card li {
  color: var(--muted);
  font-size: 0.9rem;
}

.card ul,
.card ol {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.kpis {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.kpi {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem;
}

.kpi strong {
  display: block;
  font-size: 0.84rem;
}

.kpi span {
  color: var(--muted);
  font-size: 0.76rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.84rem;
}

.table th,
.table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem;
  text-align: left;
}

.table th { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0 1.8rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.footer-links a {
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
}

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

@media (max-width: 760px) {
  .actions { justify-content: flex-end; }
  .brand small { display: none; }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }

  .nav {
    min-height: 64px;
  }

  .hero {
    padding: 1.3rem 0 0.95rem;
  }

  .hero-card {
    border-radius: 18px;
    padding: 0.9rem;
  }

  h1 {
    font-size: clamp(1.26rem, 6.5vw, 1.56rem);
  }

  .hero-card p,
  .card p,
  .card li {
    font-size: 0.86rem;
  }

  .card {
    border-radius: 16px;
    padding: 0.82rem;
  }

  .table {
    font-size: 0.78rem;
  }

  .table th,
  .table td {
    padding: 0.42rem;
  }
}

.btn-theme-toggle {
  min-width: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.btn-theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.btn-theme-toggle:hover svg {
  transform: scale(1.08) rotate(8deg);
}

.btn-theme-toggle.is-dark svg {
  transform: rotate(12deg);
}

.btn-theme-toggle:focus,
.btn-theme-toggle:focus-visible {
  outline: none;
}

body:not(.theme-dark) {
  --bg: #f6f8fb;
  --bg-2: #eef3f8;
  --panel: #ffffff;
  --stroke: rgba(25, 60, 92, 0.16);
  --text: #17283b;
  --muted: #4e657f;
  --brand-3: #547693;
  color: #17283b;
  background:
    radial-gradient(1000px 480px at 8% -10%, rgba(42, 167, 255, 0.1), transparent 58%),
    linear-gradient(180deg, #f6f8fb, #eef3f8);
}

body:not(.theme-dark) .topbar {
  background: rgba(248, 251, 255, 0.92);
  border-bottom-color: rgba(20, 51, 78, 0.14);
}

body:not(.theme-dark) .hero-card,
body:not(.theme-dark) .card,
body:not(.theme-dark) .kpi,
body:not(.theme-dark) .footer-links a {
  background: #ffffff;
  border-color: rgba(25, 60, 92, 0.16);
  box-shadow: 0 10px 24px rgba(21, 39, 60, 0.08);
}

body:not(.theme-dark) .section::before {
  background:
    radial-gradient(900px 280px at 10% 0, rgba(42, 167, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.76), rgba(241, 246, 252, 0.92));
}

body:not(.theme-dark) .hero-card {
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(42, 167, 255, 0.08), transparent 62%),
    #ffffff;
}

body:not(.theme-dark) .brand strong,
body:not(.theme-dark) .card h2,
body:not(.theme-dark) .card h3,
body:not(.theme-dark) .hero-card h1,
body:not(.theme-dark) .table th {
  color: #17283b;
}

body:not(.theme-dark) .brand small,
body:not(.theme-dark) .hero-card p,
body:not(.theme-dark) .card p,
body:not(.theme-dark) .card li,
body:not(.theme-dark) .kpi span,
body:not(.theme-dark) .footer-wrap p {
  color: #4e657f;
}

body:not(.theme-dark) .eyebrow {
  color: #547693;
}

body:not(.theme-dark) .btn {
  color: #1f3650;
  background: #ffffff;
  border-color: rgba(25, 60, 92, 0.18);
}

body:not(.theme-dark) .btn-theme-toggle {
  background: #f4f8fd;
  border-color: rgba(25, 60, 92, 0.22);
  color: #1f4e79;
}

body:not(.theme-dark) .btn-primary {
  color: #ffffff;
  border: none;
  background: linear-gradient(135deg, rgba(42, 167, 255, 0.92), rgba(76, 125, 186, 0.82));
}

body:not(.theme-dark) .btn-wa {
  color: #ffffff;
  border: none;
  background: linear-gradient(135deg, var(--wa), rgba(33, 174, 102, 0.95));
}

/* Light mode hard-contrast fix for service pages */
body:not(.theme-dark) .hero-card,
body:not(.theme-dark) .card,
body:not(.theme-dark) .kpi {
  color: #2e4a63;
}

body:not(.theme-dark) .hero-card h1,
body:not(.theme-dark) .card h2,
body:not(.theme-dark) .card h3,
body:not(.theme-dark) .card strong,
body:not(.theme-dark) .kpi strong {
  color: #17283b !important;
}

body:not(.theme-dark) .hero-card p,
body:not(.theme-dark) .card p,
body:not(.theme-dark) .card li,
body:not(.theme-dark) .kpi span,
body:not(.theme-dark) .table td {
  color: #3f5d77 !important;
}


