/* ==========================================================================
   Configrity Limited — shared stylesheet
   Modern tech / gradient aesthetic. No build step; vanilla CSS.
   ========================================================================== */

:root {
  /* Dark base */
  --bg:            #0b1020;
  --bg-2:          #0f1530;
  --surface:       #141b38;
  --surface-2:     #1a2244;

  /* Light sections */
  --light:         #ffffff;
  --light-2:       #f5f7fb;

  /* Text */
  --text:          #e8ebf5;
  --text-muted:    #9aa4c0;
  --text-dark:     #11162a;
  --text-dark-mut: #4a5270;

  /* Accents */
  --indigo:        #6366f1;
  --violet:        #8b5cf6;
  --cyan:          #22d3ee;
  --grad:          linear-gradient(120deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
  --grad-soft:     linear-gradient(120deg, rgba(99,102,241,.18), rgba(34,211,238,.18));

  --border:        rgba(255,255,255,.10);
  --border-dark:   rgba(17,22,42,.10);

  --radius:        16px;
  --radius-sm:     10px;
  --maxw:          1120px;
  --gap:           clamp(1rem, 3vw, 2rem);

  --shadow:        0 10px 30px -12px rgba(0,0,0,.45);
  --shadow-light:  0 12px 34px -16px rgba(17,22,42,.22);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

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

/* --- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--light { background: var(--light); color: var(--text-dark); }
.section--light-2 { background: var(--light-2); color: var(--text-dark); }
.section--light p, .section--light-2 p { color: var(--text-dark-mut); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 60ch; }
.text-center { text-align: center; }
.text-center .lede { margin-inline: auto; }

/* Gradient text utility */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(99,102,241,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(99,102,241,.7); }
.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover { border-color: var(--cyan); transform: translateY(-2px); }
.section--light .btn--secondary { border-color: var(--border-dark); color: var(--text-dark); }
.section--light .btn--secondary:hover { border-color: var(--violet); }

/* ==========================================================================
   Header / navigation  (CSS-only mobile toggle)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,16,32,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.nav__logo { color: var(--text); display: inline-flex; align-items: center; }
.nav__logo svg { height: 30px; width: auto; }
.nav__toggle, .nav__toggle-label { display: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s ease;
  padding: .25rem 0;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links .btn { color: #fff; padding: .55rem 1.1rem; }
.section--light .nav__links .btn { color: #fff; }

@media (max-width: 720px) {
  .nav__toggle-label {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    margin: -10px;
  }
  .nav__toggle-label span {
    width: 24px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav__links li { padding-inline: clamp(1.1rem, 4vw, 2rem); }
  .nav__links a { display: block; padding: .85rem 0; border-top: 1px solid var(--border); }
  .nav__links li:first-child a { border-top: 0; }
  .nav__links .btn { justify-content: center; margin: .6rem 0; }
  .nav__toggle:checked ~ .nav__links { max-height: 380px; }
  .nav__toggle:checked ~ .nav__toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle:checked ~ .nav__toggle-label span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked ~ .nav__toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 80% -10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(50% 100% at 10% 0%, rgba(139,92,246,.22), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
.hero::after {
  /* subtle grid texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: .4em; }
.hero .lede { color: var(--text-muted); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .35rem .85rem; margin-bottom: 1.6rem;
  background: rgba(255,255,255,.03);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ==========================================================================
   Feature cards / grid
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.5); box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--text-muted); margin: 0; }
.section--light .card, .section--light-2 .card {
  background: var(--light);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-light);
}
.section--light .card p, .section--light-2 .card p { color: var(--text-dark-mut); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.section--light .card__icon { border-color: var(--border-dark); }

/* Numbered steps (approach) */
.step__num {
  font-size: .85rem; font-weight: 700; letter-spacing: .1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .4rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(99,102,241,.7);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta .btn--primary { background: #fff; color: #2b2566; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.cta .btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(0,0,0,.5); }

/* ==========================================================================
   Generic prose page (about / privacy)
   ========================================================================== */
.page-head {
  background:
    radial-gradient(60% 120% at 85% -20%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  padding-block: clamp(3rem, 8vw, 5rem);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--text-muted); max-width: 60ch; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-dark-mut); }
.section--light .prose p, .section--light .prose li { color: var(--text-dark-mut); }

/* Values list */
.value h3 { display: flex; align-items: center; gap: .55rem; }

/* ==========================================================================
   Contact details block
   ========================================================================== */
.detail-card {
  background: var(--light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-light);
}
.detail-card dl { margin: 0; display: grid; gap: 1rem; }
.detail-card dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dark-mut); }
.detail-card dd { margin: .15rem 0 0; color: var(--text-dark); font-weight: 500; }
.detail-card a { color: var(--violet); font-weight: 600; }
.detail-card a:hover { text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: var(--gap);
  margin-bottom: 2rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.footer__brand svg { height: 28px; margin-bottom: .9rem; color: var(--text); }
.footer__brand p { color: var(--text-muted); max-width: 34ch; margin: 0; }
.footer__legal address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer__legal a { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}
