:root {
  --bg: #F7F8FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1FB;
  --ink: #1E293B;
  --ink-soft: #475569;
  --slate: #64748B;
  --primary: #4338CA;
  --primary-light: #6D5CE0;
  --accent: #7C3AED;
  --gold: #F59E0B;
  --border: #E5E7EB;
  --max: 1140px;

  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.04), 0 1px 3px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 41, 59, 0.06), 0 2px 4px rgba(30, 41, 59, 0.04);
  --shadow-lg: 0 12px 32px rgba(67, 56, 202, 0.10), 0 4px 12px rgba(30, 41, 59, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(67, 56, 202, 0.15);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(67, 56, 202, 0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(67, 56, 202, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.03) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234338ca' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 56, 202, 0.25), rgba(124, 58, 237, 0.25), transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  /* height: 64px; */
  height: 86px;
  width: auto;
  display: block;
}

.logo .mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(67, 56, 202, 0.05);
  border-color: rgba(67, 56, 202, 0.1);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(67, 56, 202, 0.08);
  border-color: rgba(67, 56, 202, 0.15);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.05);
}

.nav-links .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links .dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 280px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  z-index: 100;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 0;
  border: 1px solid rgba(229, 231, 235, 0.5);
  margin-top: 8px;
}

.nav-links .dropdown-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-links .dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInDownDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDownDropdown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-links .dropdown-content a {
  color: var(--ink);
  padding: 12px 24px;
  display: block;
  font-weight: 500;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  transition: all 0.2s;
}

.nav-links .dropdown-content a:hover {
  background-color: rgba(67, 56, 202, 0.05);
  color: var(--primary);
  border: none;
  box-shadow: none;
  padding-left: 28px;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 11px 26px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== Eyebrow / pill labels ===== */
.ref-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  background: var(--surface-2);
  padding: 6px 16px;
  border-radius: 999px;
}

.ref-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.ref-label .line { display: none; }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.10), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #4338CA);
  color: #fff;
  box-shadow: 0 0 28px rgba(124,58,237,0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(124,58,237,0.65);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(67, 56, 202, 0.02);
  transform: translateY(-2px);
}

/* Stats card - signature element */
.ledger {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ledger:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(67, 56, 202, 0.2);
  transform: translateY(-4px);
}

.ledger-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ledger-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ledger-entry:last-child { border-bottom: none; padding-bottom: 0; }
.ledger-entry:first-child { padding-top: 0; }

.ledger-entry .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.ledger-entry .num span {
  font-size: 1.1rem;
}

.ledger-entry .lbl {
  font-size: 0.85rem;
  color: var(--slate);
  text-align: right;
  max-width: 170px;
}

/* ===== Section ===== */
section {
  padding: 70px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--slate);
  font-size: 1.02rem;
}

/* ===== Grid cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(30, 41, 59, 0.03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: #ffffff;
  border-color: rgba(67, 56, 202, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(67, 56, 202, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card .cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: inline-block;
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 999px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--slate);
  font-size: 0.95rem;
}

.card-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.card-list li {
  list-style: none;
  padding: 4px 0 4px 22px;
  position: relative;
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Tools strip ===== */
.tools-strip {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 32px;
  margin: 0 auto;
  max-width: var(--max);
  padding: 56px 32px;
}

.tools-strip .container { padding: 0; }

.tools-strip .section-head h2,
.tools-strip .section-head p {
  color: #fff;
}
.tools-strip .section-head p { color: rgba(255,255,255,0.75); }
.tools-strip .ref-label {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.tools-strip .ref-label::before {
  background: #fff;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-chip {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.tool-chip:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Process timeline ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tl-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(67, 56, 202, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(67, 56, 202, 0.08);
}

.tl-item .step {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.tl-item p {
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 28px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 480px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-band .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 18px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 4px 16px rgba(124, 58, 237, 0.15);
}

textarea { resize: vertical; min-height: 120px; }

/* ===== Contact layout ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.contact-info:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(67,56,202,0.10), 0 4px 12px rgba(30,41,59,0.05);
}

.contact-info .info-item {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info .info-item:last-child { margin-bottom: 0; }

.contact-info .info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(67, 56, 202, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info .info-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.contact-info .info-content {
  flex: 1;
}

.contact-info .ref-label-small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-info .info-content div:not(.ref-label-small) {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-form-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(67, 56, 202, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(67, 56, 202, 0.08);
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(247, 248, 251, 0.7);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid .logo { color: #fff; margin-bottom: 14px; }
.footer-grid .logo .mark { background: linear-gradient(135deg, var(--primary-light), var(--accent)); }
.footer-grid .logo img { filter: brightness(0) invert(1); }

.footer-grid p { font-size: 0.9rem; max-width: 280px; }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.footer-grid a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-services-list {
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(247, 248, 251, 0.45);
}

/* ===== Animations ===== */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatUp {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { transform: translateY(-700px) rotate(360deg); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(124,58,237,0.3); }
  50%       { border-color: rgba(67,56,202,0.7); }
}

/* ===== Page header (non-home) ===== */
.page-hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: #0D0D1F;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7C3AED, transparent);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: floatUp 18s infinite linear;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #4338CA, transparent);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: floatUp 22s infinite linear;
  animation-delay: -6s;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: #fff;
  animation: fadeInUp 0.9s ease 0.1s both;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 650px;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 auto;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.page-hero .ref-label, .page-hero .pill-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  animation: fadeInLeft 0.8s ease both;
}

.page-hero .ref-label .line {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #06B6D4;
  position: relative;
}

.page-hero .ref-label .line::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #06B6D4;
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 32px;
    gap: 4px;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .logo img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Alert Messages ===== */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: alertFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes alertFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

/* ===== Bento Grid & Cards (Global) ===== */
.bento-head {
  text-align: center;
  margin-bottom: 56px;
}

.bento-head .pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.bento-head .pill-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.bento-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.bento-head p {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle 400px at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(124, 58, 237, 0.12), transparent 40%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(67,56,202,0.10), 0 4px 12px rgba(30,41,59,0.05);
  border-color: rgba(67,56,202,0.2);
}

.bento-card:hover::after { opacity: 1; }

.bento-wide   { grid-column: span 7; }
.bento-side   { grid-column: span 5; }
.bento-third  { grid-column: span 4; }
.bento-half   { grid-column: span 6; }

.bento-card .bento-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(67,56,202,0.1), rgba(124,58,237,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.65;
}

.bento-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 13px;
}

.bento-stat-display {
  margin-top: 16px;
}

.bento-stat-num {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento-stat-label {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 6px;
}

.bento-dark {
  background: linear-gradient(145deg, #1a1040, #0f0c2e);
  border-color: rgba(124,58,237,0.3);
  animation: borderGlow 4s ease-in-out infinite;
}

.bento-dark h3, .bento-dark p { color: rgba(255,255,255,0.9); }
.bento-dark p { color: rgba(255,255,255,0.55); }
.bento-dark .bento-icon {
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.35);
}

.bento-dark .bento-stat-num {
  background: linear-gradient(90deg, #818CF8, #C084FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento-dark .bento-stat-label { color: rgba(255,255,255,0.45); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
