/* ═══════════════════════════════════════════════════════════════
   UniProy — general.css
   Design system: tokens, reset, base, utilities
   Breakpoints: 480 · 640 · 768 · 992 · 1200
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --font-heading: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 30px;

  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-md:   0 16px 48px rgba(15, 23, 42, 0.11);
  --shadow-lg:   0 28px 80px rgba(15, 23, 42, 0.15);

  --transition-fast: 0.16s ease;
  --transition-base: 0.26s ease;
}

html[data-theme="light"] {
  --bg:           #f4f6fb;
  --bg-2:         #ffffff;
  --bg-soft:      #edf1f7;
  --text:         #0f172a;
  --text-soft:    #334155;
  --text-muted:   #64748b;
  --border:       rgba(15, 23, 42, 0.09);
  --border-strong:rgba(15, 23, 42, 0.15);
  --card:         rgba(255, 255, 255, 0.80);
  --card-solid:   #ffffff;
  --glass:        rgba(255, 255, 255, 0.62);

  --brand:        #00594e;
  --brand-2:      #0a7a6b;
  --gold:         #b5a160;
  --blue:         #2563eb;
  --green:        #0f766e;
  --violet:       #7c3aed;
  --dark-chip:    #0f172a;

  --hero-grad-1:  rgba(0, 89, 78, 0.15);
  --hero-grad-2:  rgba(181, 161, 96, 0.13);
  --hero-grad-3:  rgba(37, 99, 235, 0.11);
}

html[data-theme="dark"] {
  --bg:           #07111c;
  --bg-2:         #0b1624;
  --bg-soft:      #0d1a2b;
  --text:         #e5eef8;
  --text-soft:    #c6d4e3;
  --text-muted:   #94a3b8;
  --border:       rgba(148, 163, 184, 0.15);
  --border-strong:rgba(148, 163, 184, 0.22);
  --card:         rgba(11, 22, 36, 0.76);
  --card-solid:   #0d1a2b;
  --glass:        rgba(11, 22, 36, 0.58);

  --brand:        #35b5a1;
  --brand-2:      #4fddc6;
  --gold:         #d6be73;
  --blue:         #60a5fa;
  --green:        #34d399;
  --violet:       #a78bfa;
  --dark-chip:    #e5eef8;

  --hero-grad-1:  rgba(53, 181, 161, 0.17);
  --hero-grad-2:  rgba(214, 190, 115, 0.13);
  --hero-grad-3:  rgba(96, 165, 250, 0.13);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { outline: none; }

main, section, header, footer {
  position: relative;
  z-index: 1;
}

/* ── Background decoration ─────────────────────────────────────── */
.bg-shell {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% 8%,   var(--hero-grad-1), transparent 60%),
    radial-gradient(900px 600px at 96% 10%,  var(--hero-grad-2), transparent 58%),
    radial-gradient(600px 420px at 50% 100%, var(--hero-grad-3), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(100,116,139,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100,116,139,0.10) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 25%, rgba(0,0,0,1), rgba(0,0,0,.22) 65%, transparent 82%);
}

.blob {
  position: fixed;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  z-index: -6;
  opacity: 0.22;
}
.blob-a {
  width: 540px; height: 540px;
  top: -160px; left: -160px;
  background: radial-gradient(circle at 30% 30%, var(--brand), transparent 68%);
}
.blob-b {
  width: 500px; height: 500px;
  top: 8%; right: -160px;
  background: radial-gradient(circle at 35% 35%, var(--gold), transparent 68%);
}
.blob-c {
  width: 460px; height: 460px;
  bottom: -160px; left: 42%;
  background: radial-gradient(circle at 35% 35%, var(--blue), transparent 68%);
}

/* ── Spacing ───────────────────────────────────────────────────── */
.section-space {
  padding: clamp(52px, 8vw, 88px) 0;
}

.section-soft {
  background: linear-gradient(180deg, transparent 0%, rgba(127,127,127,0.04) 50%, transparent 100%);
}

/* ── Section typography ────────────────────────────────────────── */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: clamp(.76rem, 1.8vw, .84rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--brand);
  margin-bottom: 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 10px;
}

.section-text {
  font-size: clamp(.92rem, 2vw, 1rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 72ch;
  margin: 0;
}

.text-muted { color: var(--text-muted) !important; }

/* ── Brand link ────────────────────────────────────────────────── */
.link-brand {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.link-brand:hover { color: var(--brand-2); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-brand,
.btn-outline-pro,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  padding: .82rem 1.25rem;
  min-height: 44px;
  white-space: nowrap;
  transition:
    transform    var(--transition-fast),
    box-shadow   var(--transition-fast),
    background   var(--transition-fast),
    color        var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 89, 78, 0.20);
}
.btn-brand:hover, .btn-brand:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 89, 78, 0.26);
}

.btn-outline-pro {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline-pro:hover, .btn-outline-pro:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(0, 89, 78, 0.05);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  transform: translateY(-1px);
  background: rgba(127,127,127,0.06);
  border-color: var(--border-strong);
}

/* ── Pills & Chips ─────────────────────────────────────────────── */
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.pill {
  padding: .66rem .94rem;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 600;
}

.chip {
  padding: .4rem .68rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 700;
}

a.chip { text-decoration: none; color: inherit; }

/* ── Mini label ────────────────────────────────────────────────── */
.mini-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 800;
}

/* ── Reveal animation ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll-to-top ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  right: clamp(12px, 3vw, 18px);
  bottom: clamp(12px, 3vw, 18px);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 991.98px) {
  .section-space { padding: clamp(44px, 7vw, 72px) 0; }
}

@media (max-width: 767.98px) {
  .section-space { padding: clamp(36px, 6vw, 56px) 0; }
  .section-title { line-height: 1.12; }
  .blob { filter: blur(54px); opacity: 0.18; }
  .blob-a, .blob-b, .blob-c { width: 300px; height: 300px; }
}

@media (max-width: 479.98px) {
  .section-space { padding: 36px 0; }
  .btn-brand, .btn-outline-pro, .btn-ghost {
    font-size: .84rem;
    padding: .72rem 1rem;
    min-height: 42px;
  }
}
