/* ==============================================
   TICHAX — DESIGN SYSTEM
   Dark mode • Glassmorphism • Modern SaaS
============================================== */

/* ── VARIABLES ── */
:root {
  --bg-0: #03080f;
  --bg-1: #050d1a;
  --bg-2: #071425;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(79, 70, 229, 0.45);

  /* Buufu green */
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-dim: rgba(34, 197, 94, 0.12);

  --indigo: #4f46e5;
  --indigo-light: #6366f1;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --violet: #8b5cf6;

  --grad-main: linear-gradient(135deg, #4f46e5, #06b6d4);
  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-violet: linear-gradient(135deg, #8b5cf6, #4f46e5);

  --txt-1: #eef2ff;
  --txt-2: #8892b0;
  --txt-3: #4a5568;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.3);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.3s var(--ease);

  --font: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--txt-1);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── UTILITIES ── */
.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--txt-2);
  max-width: 520px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: var(--grad-main);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity var(--t);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(79, 70, 229, 0.55); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: var(--txt-1);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.btn-lg  { padding: 0.95rem 2rem;  font-size: 1rem; }
.btn-xl  { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* Ripple */
.ripple { position: relative; overflow: hidden; }
.ripple-fx {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  width: 4px; height: 4px;
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(220); opacity: 0; } }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem 0;
  transition: background var(--t), backdrop-filter var(--t), padding var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background: rgba(3, 8, 15, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--border), 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--grad-main);
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 0.95rem;
  margin-right: 0.45rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-links a {
  color: var(--txt-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--txt-1); background: var(--surface); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--txt-1);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-0);
  overflow: hidden;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blobDrift 18s ease-in-out infinite;
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(79,70,229,0.65), transparent 70%);
  top: -140px; left: -120px;
  animation-delay: 0s;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(6,182,212,0.55), transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -6s;
}
.blob-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(139,92,246,0.45), transparent 70%);
  top: 55%; left: 52%;
  transform: translate(-50%,-50%);
  animation-delay: -12s;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -28px) scale(1.06); }
  66%       { transform: translate(-18px, 20px) scale(0.94); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s var(--ease) both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulseDot 2.2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s var(--ease) 0.15s both;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--txt-2);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 500px;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.7s var(--ease) 0.45s both;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.6s both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--txt-3);
}
.trust-item i { color: var(--cyan); font-size: 0.85rem; }

/* Mockup */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.1s var(--ease) 0.2s both;
}
.mockup-container {
  position: relative;
  width: 100%;
  max-width: 540px;
}
.mockup-glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(ellipse, rgba(79,70,229,0.38) 0%, transparent 65%);
  animation: blobDrift 12s ease infinite;
}
.mockup-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px var(--border);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--txt-3);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeIn 1.2s var(--ease) 1.8s both;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* base keyframes */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(79,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; flex: 1; min-width: 140px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px; height: 52px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   FEATURES
============================================================ */
.features { padding: 7rem 2rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.7), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card), 0 0 50px rgba(79,70,229,0.12);
}
.feature-card:hover::before { opacity: 1; }

.feature-card.featured {
  border-color: rgba(79,70,229,0.3);
  background: linear-gradient(135deg, rgba(79,70,229,0.09) 0%, rgba(6,182,212,0.05) 100%);
}
.card-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad-main);
  color: #fff;
  padding: 0.22rem 0.7rem;
  border-radius: var(--r-pill);
}

.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
.admin-icon   { background: rgba(79,70,229,0.15);  color: #818cf8; }
.teacher-icon { background: rgba(6,182,212,0.15);  color: var(--cyan); }
.parent-icon  { background: rgba(139,92,246,0.15); color: #c4b5fd; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.feature-card > p {
  color: var(--txt-2);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-list { display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--txt-2);
}
.feature-list li i { color: var(--cyan); font-size: 0.72rem; flex-shrink: 0; }

/* ============================================================
   HOW IT WORKS
============================================================ */
.how-it-works {
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}
.hiw-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hiw-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: grayscale(60%) saturate(0.6);
}
.hiw-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg-0) 0%, transparent 28%, transparent 72%, var(--bg-0) 100%),
    linear-gradient(to bottom, var(--bg-0) 0%, transparent 18%, transparent 82%, var(--bg-0) 100%);
}

.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}
.step-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border-color: var(--border-glow);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.65;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.step-card p { color: var(--txt-2); font-size: 0.93rem; line-height: 1.7; }
.step-arrow {
  position: absolute;
  top: 2rem; right: 2rem;
  color: var(--txt-3);
  font-size: 0.9rem;
}

/* ============================================================
   PORTALS
============================================================ */
.access { padding: 7rem 2rem; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}
.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.portal-card.portal-featured {
  border-color: rgba(79,70,229,0.38);
  background: linear-gradient(145deg, rgba(79,70,229,0.1) 0%, rgba(6,182,212,0.06) 100%);
}
.portal-card.portal-featured:hover {
  border-color: rgba(79,70,229,0.65);
  box-shadow: 0 32px 80px rgba(79,70,229,0.22);
}

.portal-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.admin-accent   { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.teacher-accent { background: var(--grad-main); }
.parent-accent  { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }

.portal-icon {
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.admin-portal-icon   { color: #818cf8; background: rgba(79,70,229,0.12); }
.teacher-portal-icon { color: var(--cyan); background: rgba(6,182,212,0.12); }
.parent-portal-icon  { color: #c4b5fd; background: rgba(139,92,246,0.12); }

.portal-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.portal-card > p {
  color: var(--txt-2);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.portal-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.portal-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--txt-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0.28rem 0.72rem;
  border-radius: var(--r-pill);
}

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--txt-1);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.portal-btn:hover {
  background: var(--grad-main);
  border-color: transparent;
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
}
.portal-btn i { font-size: 0.75rem; }

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(79,70,229,0.18) 0%, transparent 70%);
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.6), rgba(6,182,212,0.6), transparent);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-glow {
  position: absolute;
  width: 400px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(79,70,229,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-inner .section-tag { margin-bottom: 1.5rem; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.05rem;
  color: var(--txt-2);
  margin-bottom: 2.5rem;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand > p {
  color: var(--txt-3);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 1.5rem;
}

.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-2);
  font-size: 0.82rem;
  transition: all var(--t);
}
.footer-socials a:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--txt-2);
  font-size: 0.88rem;
  padding: 0.28rem 0;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--cyan); }
.footer-col a i { font-size: 0.8rem; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p { color: var(--txt-3); font-size: 0.82rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .hero-inner     { grid-template-columns: 1fr; text-align: center; gap: 3.5rem; }
  .hero-actions   { justify-content: center; }
  .hero-trust     { justify-content: center; }
  .hero-desc      { margin-left: auto; margin-right: auto; }
  .hero-visual    { order: -1; }
  .mockup-container { max-width: 380px; }
  .feature-grid, .steps-grid, .portal-grid { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 2.5rem; }
  .stat-divider   { display: none; }
  .stats-inner    { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(3, 8, 15, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.1rem;
  }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .hero-title   { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg       { width: 100%; max-width: 300px; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-trust   { gap: 1rem; }
}

/* ============================================================
   NAV: active link
============================================================ */
.nav-active { color: var(--txt-1) !important; }

/* ============================================================
   BUUFU LOGO ICON — green circle B
============================================================ */
.buufu-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.35);
}
.buufu-logo-sm {
  width: 30px; height: 30px;
  font-size: 0.95rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* ============================================================
   PAGE HERO (about page header)
============================================================ */
.page-hero {
  min-height: 42vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9rem 2rem 5rem;
  text-align: center;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.9rem;
  animation: fadeUp 0.7s var(--ease) 0.15s both;
}
.page-hero-inner .section-tag {
  animation: fadeUp 0.6s var(--ease) both;
}
.page-hero-inner > p {
  font-size: 1.05rem;
  color: var(--txt-2);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--txt-3);
  animation: fadeUp 0.7s var(--ease) 0.45s both;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.55rem; }

/* ============================================================
   ABOUT PAGE LAYOUT — sidebar + content
============================================================ */
.about-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

/* ─── TOC SIDEBAR ─── */
.toc-sidebar {
  position: sticky;
  top: 90px;
}
.toc-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.2rem;
}
.toc-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 1rem;
}
.toc-inner ul { display: flex; flex-direction: column; gap: 0.1rem; }
.toc-link {
  display: block;
  font-size: 0.82rem;
  color: var(--txt-2);
  padding: 0.32rem 0.65rem;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: all var(--t);
  line-height: 1.4;
}
.toc-link:hover { color: var(--txt-1); background: var(--surface-hover); }
.toc-link.toc-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(6, 182, 212, 0.07);
}
.toc-divider {
  height: 1px;
  background: var(--border);
  margin: 0.6rem 0.65rem;
}
.toc-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  padding: 0.2rem 0.65rem 0.4rem;
}

/* ─── CONTENT SECTIONS ─── */
.content-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; margin-bottom: 0; }

.content-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.25;
}
.content-section > p {
  color: var(--txt-2);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 680px;
}

/* ─── COMPANY CARD ─── */
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.8rem;
  overflow: hidden;
  position: relative;
}
.company-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--green), var(--cyan));
}
.company-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.company-logo-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.company-tagline {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
}
.company-card > p {
  color: var(--txt-2);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 680px;
}
.company-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.value-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.3rem;
  text-align: center;
  transition: border-color var(--t), transform var(--t);
}
.value-item:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-4px); }
.value-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--green-dim);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin: 0 auto 0.8rem;
}
.value-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.value-item p  { font-size: 0.8rem; color: var(--txt-3); line-height: 1.5; }

/* ─── HIGHLIGHTS ─── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--txt-2);
  transition: all var(--t);
}
.highlight-item:hover { color: var(--txt-1); border-color: var(--border-glow); background: var(--surface-hover); }
.highlight-item i { color: var(--cyan); width: 18px; text-align: center; flex-shrink: 0; }

/* ─── CONTACT CARDS ─── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t);
  color: var(--txt-1);
}
.contact-card:hover {
  background: var(--surface-hover);
  transform: translateX(6px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.email-icon     { background: rgba(79,70,229,0.15);  color: #818cf8; }
.whatsapp-icon  { background: var(--green-dim);       color: var(--green); }
.call-icon      { background: rgba(6,182,212,0.12);   color: var(--cyan); }
.contact-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-card span { font-size: 0.92rem; color: var(--txt-2); }

/* ============================================================
   PRIVACY POLICY Section
============================================================ */
.policy-section { opacity: 1 !important; transform: none !important; }

.policy-section .section-tag { margin-bottom: 0.75rem; }

.policy-header { margin-bottom: 2.5rem; }
.policy-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--txt-3);
  margin: 1rem 0 1.5rem;
}
.policy-meta i { color: var(--cyan); margin-right: 0.4rem; }

.policy-compliance-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1.3rem;
  background: rgba(79, 70, 229, 0.07);
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--txt-2);
  margin-top: 1rem;
}
.policy-compliance-note i { color: var(--indigo-light); flex-shrink: 0; margin-top: 0.15rem; }
.policy-compliance-note strong { color: var(--txt-1); }

.policy-block {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 1.5rem;
  position: relative;
  transition: border-color var(--t);
}
.policy-block:hover { border-color: rgba(79,70,229,0.25); }
.policy-block:target {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(6,182,212,0.35), 0 8px 40px rgba(0,0,0,0.4);
}

.policy-block-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.policy-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--txt-1);
}
.policy-block h4 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--txt-1);
  margin: 1.3rem 0 0.6rem;
}
.policy-block p {
  font-size: 0.93rem;
  color: var(--txt-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.policy-block strong { color: var(--txt-1); }

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1rem;
}
.policy-list li {
  font-size: 0.92rem;
  color: var(--txt-2);
  line-height: 1.75;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(6, 182, 212, 0.25);
}
.policy-list li strong { color: var(--txt-1); }

.policy-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.3rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--txt-2);
  margin-top: 1.2rem;
}
.policy-highlight i { color: var(--green); margin-top: 0.1rem; flex-shrink: 0; }
.policy-highlight strong { color: var(--txt-1); }

.policy-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.policy-link:hover { color: var(--cyan-light); }

.policy-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: 1.2rem;
}
.pcb-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--txt-2);
}
.pcb-row i { color: var(--cyan); width: 16px; text-align: center; flex-shrink: 0; }
.pcb-row strong { color: var(--txt-1); }

/* ============================================================
   ABOUT PAGE RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .about-main { grid-template-columns: 1fr; gap: 2rem; }
  .toc-sidebar { position: static; }
  .toc-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.15rem; }
  .toc-label, .toc-divider, .toc-section-label { display: none; }
  .company-values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .company-card { padding: 1.8rem; }
  .policy-block { padding: 1.5rem; }
  .company-logo-wrap { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .policy-meta { flex-direction: column; gap: 0.5rem; }
}

