/* =========================================================
   CIZLAS — custom CSS3 layer (glassmorphism, gradients,
   animations, dark mode) on top of Tailwind utilities.
   ========================================================= */

:root {
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 20px 45px -20px rgba(30, 41, 59, 0.25);
}

.dark {
  --glass-bg: rgba(17, 21, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- text gradient ---------- */
.text-gradient {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  background-size: 160% 160%;
  box-shadow: 0 10px 30px -10px rgba(99, 60, 237, 0.6);
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gradient:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(99, 60, 237, 0.7);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  color: inherit;
  background: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.btn-outline:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.06);
  transform: translateY(-2px);
}

/* ---------- nav ---------- */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #7c3aed;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-link {
  display: block;
  padding: 0.65rem 0.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
}
.mobile-link:last-of-type {
  border-bottom: none;
}

/* ---------- badge pill ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}
.dark .badge-pill {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.12);
}
.enterprise-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border: none;
}

/* ---------- glass surfaces ---------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-panel-dark {
  background: linear-gradient(145deg, rgba(15, 17, 33, 0.95), rgba(23, 20, 48, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px -20px rgba(37, 99, 235, 0.35);
  color: #e2e8f0;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 30px 60px -20px rgba(37, 99, 235, 0.3);
}
.glass-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.glass-card > p {
  margin-top: 0.5rem;
  font-size: 0.925rem;
  color: rgb(100 116 139);
}
.dark .glass-card > p {
  color: rgb(148 163 184);
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
  color: #6d28d9;
}
.dark .icon-box {
  color: #c4b5fd;
}

.check-list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: rgb(51 65 85);
}
.dark .check-list {
  color: rgb(203 213 225);
}
.check-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check-list li i {
  color: #16a34a;
  flex-shrink: 0;
}

/* ---------- section heading ---------- */
.section-pad {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.section-heading {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.section-heading .kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.75rem;
}
.section-heading h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-heading p {
  margin-top: 0.9rem;
  color: rgb(100 116 139);
}
.dark .section-heading p {
  color: rgb(148 163 184);
}

/* ---------- feature tiles (why us) ---------- */
.feature-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-tile i {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 0.5rem;
  border-radius: 0.65rem;
  flex-shrink: 0;
}
.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow);
}

/* ---------- gradient blobs ---------- */
.gradient-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  animation: floatBlob 12s ease-in-out infinite;
}
.blob-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
}
.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation-delay: -6s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

/* ---------- hero flow diagram ---------- */
.flow-card {
  position: relative;
  padding-bottom: 7rem;
}
.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--glass-border);
}
.flow-node.highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.18));
  border-color: rgba(124, 58, 237, 0.4);
}
.flow-node.success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}
.dark .flow-node.success {
  color: #4ade80;
}
.flow-connector {
  width: 2px;
  height: 28px;
  margin: 4px 0;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  position: relative;
  overflow: hidden;
}
.flow-connector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9), transparent);
  animation: pulseDown 2.2s linear infinite;
}
@keyframes pulseDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.code-float {
  position: absolute;
  bottom: -150px;
  right: -20px;
  width: 240px;
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.typing-cursor {
  animation: blink 1s step-end infinite;
  color: #a78bfa;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  opacity: 0.35;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2.75rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.6);
}
.timeline-content h4 {
  font-weight: 700;
  font-size: 1.05rem;
}
.timeline-content p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: rgb(100 116 139);
}
.dark .timeline-content p {
  color: rgb(148 163 184);
}

/* ---------- pricing ---------- */
.price-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 1.75rem;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}
.price-card:hover {
  transform: translateY(-6px);
}
.price-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
.price-card.highlighted {
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.1));
  box-shadow: 0 30px 70px -20px rgba(124, 58, 237, 0.45);
  transform: scale(1.03);
}
.price-card.highlighted:hover {
  transform: scale(1.03) translateY(-6px);
}
.price {
  margin: 1rem 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.price .amount {
  font-size: 2.25rem;
  font-weight: 800;
}
.price .unit {
  font-size: 0.85rem;
  color: rgb(100 116 139);
}
.dark .price .unit {
  color: rgb(148 163 184);
}

/* ---------- industries ---------- */
.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.industry-chip:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(124, 58, 237, 0.45);
  color: #7c3aed;
}
.industry-chip i {
  color: #7c3aed;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 1.1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  text-align: left;
}
.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.4rem;
  font-size: 0.9rem;
  color: rgb(100 116 139);
}
.dark .faq-answer {
  color: rgb(148 163 184);
}
.faq-item.open .faq-answer {
  padding: 0 1.4rem 1.25rem;
}

/* ---------- forms ---------- */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: rgb(71 85 105);
}
.dark .form-label {
  color: rgb(203 213 225);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dark .form-input {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}
.form-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ---------- footer ---------- */
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: rgb(71 85 105);
}
.dark .footer-heading {
  color: rgb(203 213 225);
}
.footer-links {
  display: grid;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgb(100 116 139);
}
.dark .footer-links {
  color: rgb(148 163 184);
}
.footer-links a:hover {
  color: #7c3aed;
}

/* ---------- pending compliance / DigiLocker-required fields ---------- */
.info-missing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.55rem;
  border: 1px dashed #f59e0b;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-style: italic;
  font-weight: 600;
  font-size: 0.85em;
}
.info-missing::before {
  content: "\26A0";
  font-style: normal;
}
.dark .info-missing {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.6);
}
.compliance-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #b45309;
}
.dark .compliance-note {
  color: #fbbf24;
}

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .check-list.two-col {
    grid-template-columns: 1fr;
  }
  .code-float {
    display: none;
  }
}
