/* ============================================
   Rahmatullah Habibi — Portfolio
   ============================================ */

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --bg: #0b0e13;
  --bg-elevated: #12171f;
  --bg-card: #171d27;
  --surface: #222a36;

  --text: #eef2f7;
  --text-muted: #8f9eb2;
  --text-faint: #5e6d82;

  --accent: #3dd6c3;
  --accent-dim: #2aab9b;
  --accent-glow: rgba(61, 214, 195, 0.16);
  --warm: #e8a87c;

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --container: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f3f5f8;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --surface: #e7ecf2;

  --text: #12171f;
  --text-muted: #4d5a6c;
  --text-faint: #7a8799;

  --accent: #198f82;
  --accent-dim: #147368;
  --accent-glow: rgba(25, 143, 130, 0.12);

  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--warm);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.75rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Header ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2.75rem, var(--container));
  margin-inline: auto;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1.15rem !important;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-dim);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--bg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 18% 35%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 45% 40% at 82% 55%, rgba(232, 168, 124, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, var(--bg));
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: float 14s ease-in-out infinite;
}

.hero-glow--1 {
  width: 420px;
  height: 420px;
  top: 15%;
  left: 5%;
  background: var(--accent-glow);
}

.hero-glow--2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: 8%;
  background: rgba(232, 168, 124, 0.1);
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -18px) scale(1.04); }
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2.75rem, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
  padding-inline-end: 0.5rem;
}

.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.8vw, 4.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
}

.hero-stage {
  position: relative;
  min-height: 440px;
  padding: 1.5rem 0.5rem 1.5rem 0;
  overflow: visible;
}

.stage-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.stage-card--dash {
  width: min(100%, 260px);
  left: 0;
  top: 4%;
  padding: 1.2rem 1.25rem 1.15rem;
  z-index: 1;
  animation: device-float 7s ease-in-out infinite;
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}

.dash-metrics em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dash-line {
  margin-top: 0.75rem;
  height: 40px;
  color: var(--accent);
  opacity: 0.85;
}

.dash-line svg {
  width: 100%;
  height: 100%;
}

.stage-card--kpi {
  width: min(100%, 280px);
  left: 0;
  top: 8%;
  padding: 1.2rem 1.25rem 1.3rem;
  z-index: 1;
  animation: device-float 7s ease-in-out infinite;
}

.kpi-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.kpi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.kpi-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.kpi-grid em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kpi-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  padding-top: 0.35rem;
}

.kpi-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent-dim), var(--accent));
  opacity: 0.85;
  animation: chart-grow 1.1s var(--ease) backwards;
}

.kpi-chart span:nth-child(2) { animation-delay: 0.08s; }
.kpi-chart span:nth-child(3) { animation-delay: 0.16s; }
.kpi-chart span:nth-child(4) { animation-delay: 0.24s; }
.kpi-chart span:nth-child(5) { animation-delay: 0.32s; }
.kpi-chart span:nth-child(6) { animation-delay: 0.4s; }
.kpi-chart span:nth-child(7) { animation-delay: 0.48s; }

@keyframes chart-grow {
  from { height: 0; opacity: 0; }
}

.stage-card--phone {
  width: 158px;
  height: 300px;
  left: 48%;
  top: 10%;
  z-index: 2;
  padding: 0.65rem;
  border-radius: 26px;
  background: linear-gradient(160deg, #1a2430, #121820);
  animation: device-float 6.5s ease-in-out infinite reverse;
}

.phone-notch {
  width: 42%;
  height: 10px;
  margin: 0.15rem auto 0.7rem;
  border-radius: 999px;
  background: #0a0d12;
}

.phone-ui {
  height: calc(100% - 24px);
  border-radius: 18px;
  padding: 1rem 0.85rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 214, 195, 0.15), transparent 55%),
    #0f141c;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.phone-app-icon svg {
  width: 22px;
  height: 22px;
}

.phone-blocks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1rem 0 auto;
}

.phone-blocks span {
  display: block;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
}

.phone-blocks span.short {
  width: 70%;
}

.phone-blocks span.accent {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  opacity: 0.75;
  height: 36px;
}

.quran-mark {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.quran-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.quran-sub {
  font-size: 0.62rem;
  color: var(--text-faint);
  margin: 0.25rem 0 0.35rem;
}

.quran-verse {
  width: 100%;
  padding: 0.85rem 0.7rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  margin-bottom: auto;
}

.quran-ar {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.quran-en {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.quran-nav {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.quran-nav i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.45;
}

.quran-nav i.active {
  background: var(--accent);
  opacity: 1;
  width: 16px;
  border-radius: 999px;
}

.stage-card--chip,
.stage-card--erp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  left: 2%;
  bottom: 4%;
  z-index: 3;
  padding: 0.9rem 1.1rem;
  width: min(100%, 240px);
  animation: device-float 8s ease-in-out infinite;
}

.erp-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}

.erp-icon svg {
  width: 18px;
  height: 18px;
}

.stage-card--chip strong,
.stage-card--erp strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.stage-card--chip span,
.stage-card--erp span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stage-card--secure {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  right: 0;
  bottom: 14%;
  top: auto;
  z-index: 4;
  padding: 0.85rem 1.05rem;
  width: auto;
  max-width: none;
  animation: device-float 5.5s ease-in-out infinite;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border-strong));
}

.stage-card--secure .secure-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.stage-card--secure .secure-icon svg,
.stage-card--secure svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.stage-card--secure strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.stage-card--secure span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

@keyframes device-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Infographic strip ---- */

.infographic {
  padding: 0 0 1rem;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.info-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
}

.info-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.info-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.7rem;
  color: var(--accent);
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.info-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---- Sections ---- */

.section {
  padding: 6.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-header {
  max-width: 520px;
  margin-bottom: 3.25rem;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Products ---- */

.section--apps {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.product-card--featured {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.product-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-visual--quran {
  background:
    radial-gradient(circle at 50% 30%, rgba(61, 214, 195, 0.18), transparent 55%),
    linear-gradient(165deg, #162028 0%, #10161e 100%);
}

.qv-book {
  width: 72px;
  height: 72px;
  color: var(--accent);
  filter: drop-shadow(0 8px 20px rgba(61, 214, 195, 0.25));
}

.qv-book svg {
  width: 100%;
  height: 100%;
}

.qv-ornament {
  font-size: 2.4rem;
  color: var(--accent);
}

.qv-lines {
  position: absolute;
  inset: auto 12% 18%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qv-lines span {
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.qv-lines span:nth-child(1) { width: 80%; margin-inline: auto; }
.qv-lines span:nth-child(2) { width: 60%; margin-inline: auto; }
.qv-lines span:nth-child(3) { width: 70%; margin-inline: auto; }

.product-visual--erp {
  background: linear-gradient(160deg, #1a2230, #121820);
}

.erp-mini {
  width: 70%;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.erp-bar {
  height: 8px;
  width: 55%;
  border-radius: 4px;
  background: var(--surface);
  margin-bottom: 0.75rem;
}

.erp-cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 48px;
}

.erp-cols i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent-dim), var(--accent));
  opacity: 0.85;
}

.product-visual--soon {
  background: var(--surface);
  color: var(--text-faint);
}

.product-visual--soon svg {
  width: 48px;
  height: 48px;
}

.product-body {
  padding: 1.5rem 1.5rem 1.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.product-meta h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.product-type {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.product-body > p:not(.product-type) {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.product-points {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--soon {
  background: color-mix(in srgb, var(--warm) 18%, transparent);
  color: var(--warm);
}

.badge--build {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.badge--live {
  background: color-mix(in srgb, #6bcb77 18%, transparent);
  color: #6bcb77;
}

[data-theme="light"] .badge--live {
  color: #2f8f4e;
}

.badge--beta {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.85rem 1.75rem 1.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- About ---- */

.section--about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.profile-frame {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
}

.profile-placeholder {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 600;
  color: var(--text-faint);
  position: relative;
  z-index: 1;
}

.profile-accent {
  position: absolute;
  inset: -10px -10px 10px 10px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  z-index: 0;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.35rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.05rem;
  max-width: 48ch;
  font-size: 1.02rem;
}

.about-actions {
  margin-top: 1.85rem;
}

/* ---- Skills ---- */

.section--skills {
  border-top: 1px solid var(--border);
}

.skills-visual {
  margin-bottom: 3rem;
}

.skill-ring-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.skill-ring {
  --pct: 80;
  position: relative;
  width: 100%;
  max-width: 140px;
  margin-inline: auto;
  aspect-ratio: 1;
}

.skill-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--surface);
  stroke-width: 7;
}

.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: calc(264 - (264 * var(--pct) / 100));
  transition: stroke-dashoffset 1.2s var(--ease);
}

.skill-ring:not(.is-visible) .ring-fg {
  stroke-dashoffset: 264;
}

.skill-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
}

.skill-ring-label strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.skill-ring-label span {
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--text-muted);
  max-width: 8ch;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 820px;
  margin-inline: auto;
}

.skill-chips span {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---- Contact ---- */

.section--contact {
  padding-bottom: 4.5rem;
}

.section--trust {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.trust-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trust-card h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

.trust-muted {
  font-size: 0.88rem !important;
}

.trust-card a code {
  font-size: 0.85rem;
  word-break: break-all;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.contact-copy {
  position: relative;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.contact-copy p {
  color: var(--text-muted);
  max-width: 38ch;
  font-size: 1.02rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  color: var(--accent);
}

.contact-link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.75;
}

.contact-link-icon svg {
  width: 100%;
  height: 100%;
}

.contact-link-label {
  flex: 1;
}

.contact-link-arrow {
  font-size: 1.1rem;
  opacity: 0.45;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.contact-link:hover .contact-link-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ---- Footer ---- */

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

[data-theme="light"] .theme-icon--moon,
[data-theme="dark"] .theme-icon--sun,
:root:not([data-theme]) .theme-icon--sun {
  display: none;
}

[data-theme="light"] .theme-icon--sun {
  display: inline;
}

/* ---- Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Legal pages ---- */

.legal-page {
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
}

.legal-wrap {
  max-width: 720px;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

.legal-wrap h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-wrap ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-wrap a {
  font-weight: 500;
}

.legal-callout {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
}

.legal-callout strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.legal-callout p {
  margin-bottom: 0.45rem;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-url code {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  word-break: break-all;
}

.legal-who {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.legal-who p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-who ul {
  margin-bottom: 0;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.legal-toc a {
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-card);
}

.legal-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.data-safety-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.dst-row {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.dst-row strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.dst-row span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.policy-cards {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.policy-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-card--featured {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}

.policy-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.policy-card h2 {
  margin: 0;
  font-size: 1.45rem;
}

.policy-card p {
  margin: 0;
}

.policy-card .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

@media (max-width: 700px) {
  .policy-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .services-grid,
  .product-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-ring-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }

  .info-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
    padding-inline-end: 0;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-pills {
    justify-content: center;
  }

  .hero-stage {
    min-height: 380px;
    max-width: 420px;
    margin-inline: auto;
    order: -1;
  }

  .about-layout,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-panel {
    padding: 2rem;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
  }

  .nav-cta {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
  }

  .section {
    padding: 4.5rem 0;
  }

  .services-grid,
  .product-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .skill-ring-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .info-item::after {
    display: none;
  }

  .stage-card--phone {
    left: 42%;
    top: 12%;
    width: 140px;
    height: 268px;
  }

  .stage-card--secure {
    right: 0;
    bottom: 8%;
    top: auto;
  }

  .stage-card--kpi,
  .stage-card--dash {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .skill-ring-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .skill-ring .ring-fg {
    stroke-dashoffset: calc(264 - (264 * var(--pct) / 100));
  }
}
