/* ============================================
   Quburann — Design System
   ============================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand colors */
  --ink: #010f34;
  --ink-700: #0a1d4d;
  --ink-500: #2c3a64;
  --ink-300: #5b6788;
  --ink-100: #aab2c8;
  --blue: #106abf;
  --teal: #2fd2c1;
  --white: #ffffff;
  --gradient: linear-gradient(100deg, var(--blue) 0%, var(--teal) 100%);

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-soft-2: #eef1f8;
  --border: #e3e7f1;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: var(--ink);
  --text-muted: #5b6788;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #9fb1d6;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(1, 15, 52, 0.06), 0 1px 1px rgba(1, 15, 52, 0.04);
  --shadow: 0 8px 24px rgba(1, 15, 52, 0.08), 0 2px 6px rgba(1, 15, 52, 0.04);
  --shadow-lg: 0 24px 64px rgba(1, 15, 52, 0.16), 0 4px 12px rgba(1, 15, 52, 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
}

.h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
}

.h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 6vw, 120px) 0;
}

.section-tight {
  padding: clamp(40px, 4vw, 72px) 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.cluster {
  display: flex;
  align-items: center;
}

.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 106, 191, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 106, 191, 0.36);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-500);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop a.active {
  color: var(--ink);
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  flex-direction: column;
  padding: 8px 0 20px;
}

.nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-weight: 600;
  color: var(--ink-500);
}

.nav-mobile a.active {
  color: var(--ink);
}

.nav-mobile .header-actions {
  padding: 8px 24px 4px;
}

body.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

body.nav-open .nav-toggle span {
  background: transparent;
}

@media (min-width: 920px) {
  .nav-desktop {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Hero backdrop ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 75% 20%, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: radial-gradient(circle at 75% 20%, rgba(0, 0, 0, 0.9), transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -240px;
  right: -200px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 210, 193, 0.32), rgba(16, 106, 191, 0.12) 55%, transparent 75%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 106, 191, 0.22), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 106, 191, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  margin-bottom: 22px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  color: var(--ink-500);
}

.badge-live {
  background: rgba(47, 210, 193, 0.14);
  color: #0c8276;
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1dbfa6;
}

.badge-progress {
  background: rgba(16, 106, 191, 0.1);
  color: var(--blue);
}

.badge-progress::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.badge-soon {
  background: var(--bg-soft-2);
  color: var(--ink-300);
}

.badge-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-100);
}

/* ---------- Stats ---------- */
.stat-num {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px);
  color: #fff;
  text-align: center;
}

.cta-band .hero-glow {
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding: 72px 0 32px;
}

.footer-top {
  display: grid;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 28px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.85rem;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* ---------- Utilities ---------- */
.dark-section {
  background: var(--ink);
  color: #fff;
}

.soft-section {
  background: var(--bg-soft);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.measure {
  max-width: 640px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Page hero (non-home pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 96px);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- Contact layout ---------- */
.contact-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16, 106, 191, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---------- Hero visual (floating cards) ---------- */
.hero-visual {
  display: none;
  position: relative;
  height: 420px;
}

@media (min-width: 1000px) {
  .hero-visual {
    display: block;
  }
}

.float-card {
  position: absolute;
  width: 270px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.float-card .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.float-card .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.float-card .bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 9px;
}

.float-card .bar.short {
  width: 55%;
}

.float-card .bar.accent {
  background: var(--gradient);
  opacity: 0.85;
  width: 38%;
}

.float-card.card-a {
  top: 4px;
  left: 30px;
  transform: rotate(-5deg);
  animation: floatY 7s ease-in-out infinite;
}

.float-card.card-b {
  top: 130px;
  left: 210px;
  transform: rotate(3deg);
  z-index: 2;
  animation: floatY 8s ease-in-out infinite 0.4s;
}

.float-card.card-c {
  top: 270px;
  left: 70px;
  transform: rotate(-2deg);
  animation: floatY 9s ease-in-out infinite 0.8s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none !important;
  }
}

/* ---------- Checklist ---------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checklist li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #0c8276;
}

.checklist li span {
  color: var(--ink-500);
  font-size: 1rem;
}

/* ---------- Category strip ---------- */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-300);
  font-size: 0.95rem;
  font-weight: 600;
}

.category-strip .dot-sep {
  color: var(--border);
}

/* ---------- Numbered steps ---------- */
.step-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.4;
  margin-bottom: 12px;
}

/* ---------- 404 ---------- */
.error-mark {
  font-size: clamp(5rem, 4rem + 6vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
