/* ═══ Foundations ═══ */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Heebo', sans-serif; overflow-x: hidden; background: #fff; }
.font-brand { font-family: 'Outfit', sans-serif; }
html { scroll-behavior: smooth; }

/* ═══ Nav ═══ */
.glass-nav { background: rgba(255,255,255,0.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(13,148,136,0.06); transition: all .3s ease; }
.glass-nav.scrolled { background: rgba(255,255,255,0.92); box-shadow: 0 8px 40px rgba(15,23,42,0.06); }

/* ═══ Hero ═══ */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(52,211,153,0.12), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(13,148,136,0.10), transparent 60%),
    linear-gradient(180deg, #F8FBFA 0%, #FFFFFF 70%);
}
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(13,148,136,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,148,136,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-stage {
  perspective: 2000px;
  position: relative;
  min-height: 560px;
}
.hero-card {
  position: relative;
  background: white;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 40px -12px rgba(13,148,136,0.18),
    0 40px 100px -20px rgba(15,23,42,0.25);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -8deg)) rotateZ(var(--rz, 1deg));
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.hero-card-shadow {
  position: absolute;
  bottom: -40px;
  left: 8%;
  right: 8%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(13,148,136,0.25), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* floating chips around hero card */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,0.7);
  box-shadow: 0 8px 24px -6px rgba(13,148,136,0.25), 0 20px 48px -12px rgba(15,23,42,0.12);
  z-index: 10;
  transform: translateZ(60px);
  animation: floatChip 5s ease-in-out infinite;
}
.chip-1 { top: 8%; right: -4%; animation-delay: 0s; }
.chip-2 { top: 42%; left: -6%; animation-delay: 1.2s; }
.chip-3 { bottom: 8%; right: 8%; animation-delay: 2.4s; }
.chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
  flex-shrink: 0;
}
@keyframes floatChip {
  0%, 100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(60px) translateY(-8px); }
}

/* ═══ Tofes dashboard mockup ═══ */
.tofes-mock {
  background: white;
  color: #0f172a;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  display: flex;
  flex-direction: column;
}
.tofes-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0F1E2D;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.tofes-tab {
  padding: 5px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 10px;
}
.tofes-tab.active { background: #0D9488; color: white; }
.tofes-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 13px;
}
.tofes-logo-dot { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #0D9488, #34D399); }

.tofes-pills {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.tofes-pill {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tofes-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  background: white;
  border-bottom: 1px solid #F1F5F9;
}
.tofes-header-l { text-align: left; }
.tofes-header-r { text-align: right; }
.tofes-dark-btn {
  background: #0F1E2D;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tofes-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: #0F172A;
  margin-bottom: 4px;
}
.tofes-subtitle {
  font-size: 10px;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tofes-link {
  font-size: 10px;
  color: #0D9488;
  font-weight: 700;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Progress donut */
.donut-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
}
.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.donut-pct {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #EF4444;
  line-height: 1;
}
.donut-sub { font-size: 8px; color: #94A3B8; font-weight: 700; margin-top: 2px; }

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
  background: #F8FAFC;
}
.kpi {
  background: white;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  padding: 10px;
  text-align: right;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
  font-size: 8.5px;
  font-weight: 700;
}
.kpi-head svg { width: 10px; height: 10px; color: #0D9488; }
.kpi-name { color: #475569; font-size: 9.5px; font-weight: 600; line-height: 1.3; }
.kpi-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #0F172A;
  text-align: left;
}
.kpi-val .slash { color: #CBD5E1; margin: 0 2px; }
.kpi-bar { height: 3px; border-radius: 2px; background: #F1F5F9; overflow: hidden; }
.kpi-bar > i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #0D9488, #34D399); }

/* Table */
.req-table {
  padding: 14px;
  background: white;
}
.req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.req-title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px; color: #0F172A; display: flex; align-items: center; gap: 6px; }
.req-pill { font-size: 9px; color: #0D9488; background: rgba(13,148,136,0.1); padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.req-btns { display: flex; gap: 6px; }
.req-btn { font-size: 9px; font-weight: 700; padding: 5px 8px; border-radius: 7px; }
.req-btn.primary { background: #10B981; color: white; }
.req-btn.ghost { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }

.req-row {
  display: grid;
  grid-template-columns: 20px 1fr 80px 80px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  font-size: 10px;
  border-bottom: 1px solid #F1F5F9;
  background: white;
}
.req-row.head { background: #F0FDF4; color: #047857; font-weight: 800; font-size: 9px; }
.req-row.group { background: #ECFDF5; color: #047857; font-weight: 900; padding: 6px 10px; font-size: 10px; }
.req-row .req-status { font-size: 9px; padding: 3px 8px; border-radius: 6px; text-align: center; font-weight: 700; }
.req-status.approved { background: #D1FAE5; color: #047857; }
.req-status.pending { background: #FEF3C7; color: #92400E; }

/* ═══ Feature cards ═══ */
.feat-card {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.feat-card:hover { transform: translateY(-4px); }
.feat-inner { padding: 28px 32px 32px; height: 100%; }

.feat-dark {
  background: linear-gradient(145deg, #0A1F1C 0%, #0F2B26 100%);
  border: 1px solid rgba(52,211,153,0.12);
  box-shadow: 0 30px 60px -20px rgba(6,78,59,0.4);
}
.feat-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(52,211,153,0.15), transparent 50%);
  pointer-events: none;
}
.feat-light {
  background: white;
  border: 1px solid #EEF2F6;
  box-shadow: 0 12px 30px -12px rgba(15,23,42,0.08);
}
.feat-light:hover { box-shadow: 0 20px 45px -15px rgba(13,148,136,0.18); }
.feat-gradient {
  background: linear-gradient(145deg, #0D9488 0%, #065F55 100%);
  box-shadow: 0 30px 60px -20px rgba(13,148,136,0.4);
  position: relative;
}
.feat-gradient::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(52,211,153,0.4), transparent 50%);
  pointer-events: none;
}
.feat-icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(52,211,153,0.08));
  color: #0D9488;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(13,148,136,0.15);
}

/* Mockup panel inside feat-dark */
.mockup-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Bulk file stack */
.bulk-stack { display: flex; flex-direction: column; gap: 6px; }
.bulk-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.bulk-file.faint { background: white; color: #94A3B8; font-style: italic; border-style: dashed; }
.bulk-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(13,148,136,0.1);
  color: #0D9488;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Chat bubbles */
.chat-bubble {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 90%;
}
.chat-bubble.from-user { background: rgba(255,255,255,0.1); color: white; margin-right: auto; }
.chat-bubble.from-ai { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }

/* Buildings grid */
.buildings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bld {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.bld-name { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px; color: #0F172A; margin-bottom: 8px; }
.bld-ring { position: relative; width: 56px; height: 56px; margin: 0 auto; }
.bld-ring svg { width: 100%; height: 100%; }
.bld-ring span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 12px; color: #0F172A;
}
.bld-status {
  margin-top: 8px;
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  display: inline-block;
}
.bld-status.ok { background: #D1FAE5; color: #047857; }
.bld-status.wip { background: #FEF3C7; color: #92400E; }
.bld-status.risk { background: #FEE2E2; color: #B91C1C; }

/* ═══ Reporting mockup ═══ */
.reporting-stage {
  position: relative;
  min-height: 500px;
  perspective: 2000px;
}
.rep-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #EEF2F6;
  padding: 20px;
  box-shadow: 0 30px 60px -20px rgba(13,148,136,0.22), 0 12px 30px -8px rgba(15,23,42,0.08);
  position: absolute;
}
.rep-back {
  top: 0;
  right: 8%;
  left: 8%;
  transform: translateZ(0) rotate(2deg);
  z-index: 1;
  opacity: 0.85;
}
.rep-front {
  top: 18%;
  right: -4%;
  left: 14%;
  z-index: 2;
  transform: rotate(-2deg);
}
.rep-type-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
}
.rep-type-btn.active {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px -4px rgba(16,185,129,0.4);
}
.rep-icon-rail {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 10px 30px -8px rgba(15,23,42,0.15);
  border: 1px solid #EEF2F6;
  z-index: 3;
}
.rep-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8;
}
.rep-icon.active { background: rgba(16,185,129,0.1); color: #059669; }

.rep-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.rep-feature-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, #10B981, #0D9488);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
  flex-shrink: 0;
}

/* ═══ Steps ═══ */
.step {
  padding: 28px;
  background: white;
  border-radius: 20px;
  border: 1px solid #EEF2F6;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(13,148,136,0.18);
  border-color: rgba(13,148,136,0.15);
}
.step-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 48px;
  background: linear-gradient(135deg, #0D9488, #34D399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.step-title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 20px; color: #0F172A; margin-bottom: 8px; }
.step-desc { font-size: 14px; line-height: 1.55; color: #64748B; }

/* ═══ Impact cards ═══ */
.impact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px;
  text-align: right;
  backdrop-filter: blur(10px);
  transition: all .3s ease;
}
.impact-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(52,211,153,0.3);
  transform: translateY(-3px);
}
.impact-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(52,211,153,0.9); }
.impact-stat {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  margin-top: 12px;
  background: linear-gradient(135deg, #FFFFFF, #6EE7B7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.impact-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; margin-top: 10px; }
.impact-card.feature-cta {
  background: linear-gradient(145deg, rgba(52,211,153,0.15), rgba(13,148,136,0.12));
  border-color: rgba(52,211,153,0.35);
  display: flex; flex-direction: column; justify-content: center;
}

/* ═══ Founders ═══ */
.founder-card {
  display: flex;
  gap: 22px;
  padding: 24px;
  background: white;
  border-radius: 22px;
  border: 1px solid #EEF2F6;
  box-shadow: 0 12px 30px -12px rgba(13,148,136,0.12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.founder-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(13,148,136,0.2);
  border-color: rgba(13,148,136,0.2);
}
.founder-avatar {
  width: 120px; height: 120px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -8px rgba(13,148,136,0.3);
}
.tag-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(13,148,136,0.08);
  color: #0D9488;
  letter-spacing: 0.02em;
}

/* ═══ Contact ═══ */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 14px;
  transition: all .25s ease;
}
.contact-primary {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 14px 30px -10px rgba(16,185,129,0.6);
}
.contact-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(16,185,129,0.7); }
.contact-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
}
.contact-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }

.contact-card-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  transition: all .25s ease;
}
.contact-card-tile:hover { background: rgba(255,255,255,0.07); border-color: rgba(52,211,153,0.2); }

/* ═══ Reveal ═══ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ Responsive clamps ═══ */
@media (max-width: 1024px) {
  .hero-stage { min-height: 460px; margin-top: 40px; }
  .chip-1 { top: 0; right: -2%; }
  .chip-2 { top: 38%; left: -2%; }
  .chip-3 { bottom: -2%; right: 4%; }
  .buildings-grid { grid-template-columns: repeat(2, 1fr); }
  .rep-front { right: -2%; left: 8%; }
  .founder-avatar { width: 90px; height: 90px; }
}
@media (max-width: 640px) {
  .feat-inner { padding: 22px; }
  .impact-card { padding: 22px; }
  .impact-stat { font-size: 44px; }
  .founder-card { flex-direction: column; align-items: flex-start; }
  .hero-stage { min-height: 0; }
  .chip { padding: 8px 10px; font-size: 10px; }
  .chip-1 { right: -2%; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Mobile-specific tweaks (≤ lg) ═══ */
@media (max-width: 1023px) {
  /* Disable 3D tilt on mobile/tablet — image looks better flat */
  .hero-card {
    transform: none !important;
    border-radius: 18px;
  }
  .hero-card-shadow {
    bottom: -24px;
    height: 36px;
  }

  /* Pull chips inside the viewport so they don't clip the edges */
  .chip-1 { top: -14px; right: 4%; }
  .chip-2 { top: 36%; left: 2%; }
  .chip-3 { bottom: -14px; right: 8%; }
  .chip { transform: none; animation: none; }

  /* Reporting stage — stack cards naturally instead of overlapping */
  .reporting-stage { min-height: 0; padding-bottom: 56px; }
  .rep-card { position: relative; }
  .rep-back {
    top: auto; right: 4%; left: 4%;
    transform: rotate(0deg);
    opacity: 1;
    margin-bottom: 16px;
  }
  .rep-front {
    top: auto; right: 0; left: 0;
    transform: rotate(0deg);
  }
  .rep-icon-rail { bottom: 0; }
}

/* ═══ Mobile menu link styling ═══ */
.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #334155;
  transition: background-color .15s ease, color .15s ease;
}
.mobile-link:hover, .mobile-link:active { background-color: #f1f5f9; color: #0D9488; }

/* Mobile menu open state */
#mobileMenu.open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}
#mobileMenu {
  transform: scaleY(0);
}
