/* ============================================================
   TIFZO - Marketing Website Design System
   A product by LaZie Tech Private Limited
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --brand-dark: #0F4C33;
  --brand: #1B5E3F;
  --brand-light: #287452;
  --accent: #8DBF3E;
  --accent-hover: #7aab30;
  --white: #ffffff;
  --off-white: #f8faf8;

  /* Neutrals */
  --gray-50: #f5f7f5;
  --gray-100: #eaeeea;
  --gray-200: #d5dbd5;
  --gray-300: #b0bab0;
  --gray-400: #8a978a;
  --gray-500: #677267;
  --gray-600: #4a564a;
  --gray-700: #333d33;
  --gray-800: #1e261e;
  --gray-900: #111611;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 76, 51, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 76, 51, 0.07);
  --shadow-md: 0 4px 16px rgba(15, 76, 51, 0.09);
  --shadow-lg: 0 8px 30px rgba(15, 76, 51, 0.12);
  --shadow-xl: 0 16px 50px rgba(15, 76, 51, 0.16);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-is-exiting {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Preloader / Loading Screen ---------- */
.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--brand-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
}

.page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-brand-wrap {
  position: relative;
  width: 260px;
  aspect-ratio: 906 / 347;
  margin: 0 auto;
}

.preloader-logo-text {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preloader-leaf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 88% 22%;
  will-change: transform;
  animation: leafRevolve 2.4s linear infinite;
}

.preloader-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: preloaderTextFade 1.5s ease-in-out infinite alternate;
}

@keyframes preloaderTextFade {
  0% { opacity: 0.5; }
  100% { opacity: 0.95; }
}

/* Silky-smooth fluid 360 orbital loop */
@keyframes leafRevolve {
  0% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
  }
  8% {
    transform: translate(-12px, -30px) scale(1.28) rotate(-18deg);
  }
  20% {
    transform: translate(-105px, -42px) scale(1.22) rotate(-75deg);
  }
  32% {
    transform: translate(-180px, -2px) scale(1.18) rotate(-135deg);
  }
  45% {
    transform: translate(-155px, 46px) scale(1.15) rotate(-190deg);
  }
  58% {
    transform: translate(-95px, 58px) scale(1.16) rotate(-240deg);
  }
  70% {
    transform: translate(18px, 22px) scale(1.22) rotate(-295deg);
  }
  82% {
    transform: translate(-4px, -18px) scale(1.14) rotate(-340deg);
  }
  92%, 100% {
    transform: translate(0px, 0px) scale(1) rotate(-360deg);
  }
}

/* ---------- Back to Top Button ---------- */
.back-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--brand-dark);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(15, 76, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--brand);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 76, 51, 0.35);
}

.back-to-top-btn svg {
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: var(--accent);
  color: var(--white);
}

.badge-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.badge-glass {
  background: transparent;
  backdrop-filter: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-xs);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-white {
  background: var(--white);
  color: var(--brand-dark);
}

.btn-white:hover {
  background: var(--gray-50);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn-disabled,
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-disabled:hover,
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Coming Soon ribbon on buttons */
.btn-coming-soon-wrap {
  position: relative;
  display: inline-block;
  cursor: not-allowed;
}

.btn-coming-soon-wrap .coming-soon-tag {
  position: absolute;
  top: -10px;
  right: -12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
}

.btn-coming-soon-wrap.grayscale .coming-soon-tag {
  background: var(--gray-400);
}

.btn-coming-soon-wrap.grayscale .btn {
  filter: grayscale(0.6);
  opacity: 0.6;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.35s ease;
}

.navbar.scrolled,
.navbar.mobile-open {
  background: var(--brand-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.navbar-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-logo .logo-dot {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-cta {
  flex-shrink: 0;
}

.btn-nav-download {
  background: var(--white);
  color: var(--brand-dark);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-download:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.03);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  padding: 12px 24px;
  color: rgba(255,255,255,0.8);
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  color: var(--white);
}

.mobile-menu .btn-nav-download {
  margin-top: 16px;
  font-size: 1rem;
  padding: 14px 32px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 120px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-sm {
  min-height: auto;
  padding: 140px 0 80px;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero h1,
.hero h2,
.hero p {
  color: var(--white);
}

.hero p {
  color: rgba(255,255,255,0.8);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero texture pattern */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(var(--white) 1px, transparent 1px),
    radial-gradient(var(--white) 1px, transparent 1px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  pointer-events: none;
}

/* Hero bottom curve */
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Floating hero decorations */
.hero-float {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  z-index: 1;
}

.hero-float svg {
  width: 100%;
  height: 100%;
}

.hero-float-1 {
  top: 15%;
  left: 8%;
  width: 48px;
  height: 48px;
  animation: heroFloat1 6s ease-in-out infinite;
}

.hero-float-2 {
  top: 25%;
  right: 10%;
  width: 36px;
  height: 36px;
  animation: heroFloat2 8s ease-in-out infinite;
}

.hero-float-3 {
  bottom: 25%;
  left: 15%;
  width: 32px;
  height: 32px;
  animation: heroFloat3 7s ease-in-out infinite;
}

.hero-float-4 {
  bottom: 20%;
  right: 15%;
  width: 40px;
  height: 40px;
  animation: heroFloat1 9s ease-in-out infinite reverse;
}

.hero-float-5 {
  top: 40%;
  left: 50%;
  width: 28px;
  height: 28px;
  animation: heroFloat2 5s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-24px) rotate(-10deg); opacity: 0.25; }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -12px) rotate(8deg); }
  66% { transform: translate(-6px, -20px) rotate(-5deg); }
}

/* ---------- Waitlist Form ---------- */
.waitlist-form-wrap {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--duration) var(--ease);
}

.waitlist-form-wrap:focus-within {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.waitlist-form-wrap input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--gray-900);
  padding: 10px 4px;
  font-size: 0.875rem;
  -webkit-appearance: none;
  border-radius: 0;
}

.waitlist-form-wrap input[type="email"]::placeholder {
  color: var(--gray-400);
}

.waitlist-form-wrap .btn {
  flex: 0 0 auto;
  width: auto;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Mobile Autofill fix - ensure text is crisp dark on light background */
.waitlist-form-wrap input:-webkit-autofill,
.waitlist-form-wrap input:-webkit-autofill:hover, 
.waitlist-form-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: var(--gray-900) !important;
  caret-color: var(--gray-900);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: var(--brand-dark);
  border-color: transparent;
  color: var(--white);
}

.card-dark h3,
.card-dark h4 {
  color: var(--white);
}

.card-dark p,
.card-dark li {
  color: rgba(255,255,255,0.8);
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.card-accent:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--duration) var(--ease);
}

.card-icon-green {
  background: rgba(27, 94, 63, 0.08);
  color: var(--brand);
}

.card:hover .card-icon-green {
  background: var(--brand);
  color: var(--white);
}

.card-icon-white {
  background: rgba(255,255,255,0.15);
  color: var(--accent);
}

.card-icon-accent-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* Benefit list inside cards */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
}

.benefit-list .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 1px;
}

/* ---------- Interactive Role Cards (Built for Everyone) ---------- */
.role-widget-card {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.role-widget-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.role-widget-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(141, 191, 62, 0.5);
}

.role-widget-card.is-active {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(15, 76, 51, 0.12);
  transform: translateY(-4px);
}

.card-dark.role-widget-card.is-active {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 35px rgba(141, 191, 62, 0.22);
}

.role-card-select-btn {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.card-dark .role-card-select-btn {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.role-card-chevron {
  width: 20px;
  height: 20px;
  color: var(--brand);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-dark .role-card-chevron {
  color: var(--accent);
}

.role-widget-card.is-active .role-card-chevron {
  transform: rotate(180deg);
}

/* Full Width Expansion Container (Below Grid) */
.role-expansion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.35s ease;
}

.role-expansion-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 32px;
}

.role-expansion-inner {
  overflow: hidden;
}

.role-expansion-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.role-expansion-box.box-dark {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  color: var(--white);
  border-color: transparent;
}

.role-detail-view {
  display: none;
}

.role-detail-view.is-visible {
  display: block;
  animation: fadeInPanel 0.3s ease forwards;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.role-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.box-dark .role-panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.role-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-panel-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 76, 51, 0.08);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.box-dark .role-panel-icon-circle {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.role-panel-title-wrap h3 {
  font-size: 1.375rem;
  margin: 0 0 2px 0;
}

.box-dark .role-panel-title-wrap h3 {
  color: var(--white);
}

.role-panel-title-wrap p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0;
}

.box-dark .role-panel-title-wrap p {
  color: rgba(255, 255, 255, 0.8);
}

.role-panel-close {
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.role-panel-close:hover {
  background: var(--brand);
  color: var(--white);
}

.box-dark .role-panel-close {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.box-dark .role-panel-close:hover {
  background: var(--accent);
  color: var(--brand-dark);
}

/* Feature Innovation Cards */
.expanded-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-dark .expanded-section-title {
  color: var(--accent);
}

.feature-highlight-card {
  background: rgba(15, 76, 51, 0.04);
  border: 1px solid rgba(27, 94, 63, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: left;
  transition: background 0.2s ease;
}

.box-dark .feature-highlight-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-highlight-card h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.box-dark .feature-highlight-card h5 {
  color: var(--white);
}

.feature-highlight-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

.box-dark .feature-highlight-card p {
  color: rgba(255, 255, 255, 0.8);
}

.feature-tag-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  white-space: nowrap;
}

.box-dark .feature-tag-badge {
  background: var(--accent);
  color: var(--brand-dark);
}

/* App Download Box inside Expanded Panel */
.panel-download-box {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.box-dark .panel-download-box {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.18);
}

.panel-download-box h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.box-dark .panel-download-box h4 {
  color: var(--white);
}

.panel-download-box p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  max-width: 280px;
}

.box-dark .panel-download-box p {
  color: rgba(255, 255, 255, 0.7);
}

.app-store-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.box-dark .app-store-btn {
  background: var(--white);
  color: var(--brand-dark);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.app-store-btn .badge-mini {
  font-size: 0.625rem;
  background: var(--accent);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 700;
}

/* ---------- Icon blocks (Why Tifzo, How It Works inline) ---------- */
.icon-block {
  display: flex;
  gap: 16px;
}

.icon-block-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}

.icon-block h4 {
  margin-bottom: 4px;
  color: var(--gray-900);
}

.icon-block p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* ---------- How It Works steps ---------- */
.step-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  position: relative;
  padding: 40px 32px 32px;
}

.testimonial-quote-icon {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 32px;
  height: 32px;
  color: var(--gray-200);
}

.card-dark .testimonial-quote-icon {
  color: rgba(255,255,255,0.15);
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  margin-top: 12px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  background: rgba(27, 94, 63, 0.12);
  color: var(--brand-dark);
}

.card-dark .testimonial-avatar {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-900);
}

.card-dark .testimonial-name {
  color: var(--white);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.card-dark .testimonial-role {
  color: rgba(255,255,255,0.6);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.faq-item:hover {
  border-color: var(--gray-200);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(141, 191, 62, 0.08);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--gray-900);
  transition: color var(--duration) var(--ease);
}

.faq-btn:hover {
  color: var(--brand);
}

.faq-btn .faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ---------- Forms (Contact page) ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.form-input,
.form-textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.9375rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-300);
}

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

.form-error {
  font-size: 0.8125rem;
  color: #d32f2f;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #d32f2f;
}

.form-group.error .form-error {
  display: block;
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  width: 90%;
  transition: top 0.5s var(--ease-bounce);
}

.toast.show {
  top: 92px;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.toast-message {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
}

.toast-close {
  flex-shrink: 0;
  padding: 4px;
  color: var(--gray-400);
  transition: color var(--duration) var(--ease);
  margin-left: auto;
}

.toast-close:hover {
  color: var(--gray-700);
}

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  overflow: hidden;
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  color: rgba(255,255,255,0.8);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.footer-brand .logo-dot {
  color: var(--accent);
}

.footer-desc {
  color: var(--gray-500);
  margin: 16px 0;
  max-width: 360px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-900);
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--gray-500);
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--gray-100);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--duration) var(--ease);
}

.footer-social-link:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-cookie-link {
  font-size: 0.8125rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-cookie-link:hover {
  color: var(--brand);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--brand-dark);
  color: var(--white);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  min-width: 280px;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  padding: 20px;
}

.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
}

.cookie-modal-overlay.visible .cookie-modal {
  transform: translateY(0) scale(1);
}

.cookie-modal h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.cookie-modal > p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.cookie-category {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cookie-category h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.cookie-category p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  top: 3px;
  left: 3px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration) var(--ease);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

/* ---------- Phone Mockup (Download page) ---------- */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.phone-frame {
  background: var(--white);
  border-radius: 36px;
  padding: 16px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px var(--gray-100);
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--white);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: var(--gray-50);
  border-radius: 24px;
  aspect-ratio: 9/19;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.phone-screen .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.phone-screen .logo-dot { color: var(--accent); }

.phone-screen p {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
}

.phone-screen-bars {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 8px;
}

.phone-screen-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--gray-200);
}

.phone-screen-bar:nth-child(2) { width: 70%; }
.phone-screen-bar:nth-child(3) { width: 50%; }

.phone-screen-btn {
  margin-top: 20px;
  background: var(--brand);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Team Cards (About page) ---------- */
.team-card {
  text-align: center;
  padding: 40px 24px;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
}

.team-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Job Cards (Career page) ---------- */
.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.job-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--gray-200);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--gray-300);
}

.empty-state h3 {
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--gray-600);
  line-height: 1.8;
}

.legal-content ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.legal-content li {
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-placeholder-notice {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.875rem;
  color: #F57F17;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ---------- 404 Page ---------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.page-404 h1 {
  font-size: clamp(6rem, 12vw, 10rem);
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.page-404 h2 {
  font-size: 1.5rem;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- Cursor Trail Canvas ---------- */
#cursor-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
}

/* ---------- Misc ---------- */
.bg-light { background: var(--gray-50); }
.bg-white { background: var(--white); }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

.inline-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline;
}

/* Decorative dot pattern */
.dot-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .role-detail-view .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 54px 0;
  }

  .hero {
    padding: 120px 0 70px;
    min-height: auto;
  }

  .hero-sm {
    padding: 110px 0 50px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-links,
  .navbar-cta {
    display: none;
  }

  /* Preloader mobile scaling */
  .preloader-brand-wrap {
    width: min(240px, 78vw);
  }

  .preloader-tagline {
    font-size: 0.84375rem;
    padding: 0 16px;
    text-align: center;
  }

  /* Hero Mobile Buttons */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Role Expansion Panel Mobile */
  .role-expansion-box {
    padding: 24px 18px;
    border-radius: var(--radius-xl);
  }

  .role-panel-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .role-panel-title-wrap h3 {
    font-size: 1.1875rem;
  }

  .feature-highlight-card {
    padding: 16px;
  }

  .feature-highlight-card h5 {
    font-size: 0.875rem;
  }

  .panel-download-box {
    padding: 24px 16px;
  }

  .app-store-btns {
    flex-direction: column;
    width: 100%;
  }

  .app-store-btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* Cookie Banner & Modal Mobile */
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal {
    padding: 24px 18px;
    max-height: 90vh;
  }

  .cookie-category-header {
    flex-direction: row;
    align-items: center;
  }

  /* Waitlist Form Mobile - Compact pill button & full email field visibility */
  .waitlist-form-wrap {
    flex-direction: row !important;
    align-items: center !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 3px 3px 3px 14px !important;
    gap: 6px !important;
    background: #ffffff !important;
    border-radius: 9999px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  }

  .waitlist-form-wrap input[type="email"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 38px !important;
    font-size: 0.8125rem !important;
    padding: 0 4px !important;
    text-align: left !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .waitlist-form-wrap input[type="email"]::placeholder {
    font-size: 0.8125rem !important;
    color: var(--gray-400) !important;
  }

  .waitlist-form-wrap .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    display: inline-flex !important;
    box-shadow: 0 4px 12px rgba(15, 76, 51, 0.2) !important;
  }

  /* Back to Top Mobile */
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Toast Mobile */
  .toast {
    width: 92%;
    padding: 14px 18px;
  }

  .toast.show {
    top: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 1.875rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .role-widget-card {
    padding: 24px 18px;
  }

  .phone-mockup {
    width: 220px;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .job-card .btn {
    width: 100%;
  }

  .team-card {
    padding: 28px 16px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-float {
    display: none;
  }

  #cursor-trail-canvas {
    display: none;
  }
}
