/* ═══════════════════════════════════════════════════════════
   Albawani Sign — Liquid Glass Theme
   Brand: #10B981 (Albawani Emerald Green)
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --green: #10B981;
  --green-light: #34D399;
  --green-dark: #059669;
  --green-glow: rgba(16, 185, 129, 0.35);
  --green-bg: rgba(16, 185, 129, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(16, 185, 129, 0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0f1a;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Animated Background ─── */
.bg-scene,
.bg-scene * {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none !important;
}

.bg-scene * {
  position: absolute;
}

.bg-scene::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float1 18s ease-in-out infinite;
}

.bg-scene::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float2 22s ease-in-out infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float3 15s ease-in-out infinite;
}

.bg-orb--1 {
  width: 400px; height: 400px;
  background: rgba(16, 185, 129, 0.15);
  top: 40%; left: 30%;
}

.bg-orb--2 {
  width: 300px; height: 300px;
  background: rgba(52, 211, 153, 0.1);
  top: 20%; left: 60%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.bg-orb--3 {
  width: 250px; height: 250px;
  background: rgba(16, 185, 129, 0.08);
  bottom: 20%; right: 20%;
  animation-delay: -10s;
  animation-duration: 25s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(1.05); }
  66% { transform: translate(50px, -20px) scale(0.9); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

/* ─── Glass Utility ─── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px var(--glass-shadow);
}

.glass--subtle {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ─── Layout ─── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

.logo-text {
  font-size: 22px;
  font-weight: 300;
  color: var(--green-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 10;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--large {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 14px;
}

/* ─── Hero Section ─── */
.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--green-light);
  margin-bottom: 32px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 50%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

/* ─── Hero Document Preview ─── */
.hero-visual {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(16, 185, 129, 0.06) 60deg,
    transparent 120deg,
    rgba(52, 211, 153, 0.04) 200deg,
    transparent 280deg
  );
  animation: shimmer 10s linear infinite;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.doc-preview { position: relative; z-index: 1; }

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.doc-title-group { text-align: left; }
.doc-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.doc-subtitle { font-size: 13px; color: var(--text-muted); }

.doc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.doc-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.doc-body { display: flex; gap: 24px; }
.doc-content { flex: 1; }

.doc-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.doc-line--short { width: 65%; }
.doc-line--medium { width: 85%; }
.doc-line--long { width: 95%; }
.doc-line--gap { margin-bottom: 24px; }

.doc-sidebar { width: 200px; flex-shrink: 0; }

.signer-card {
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.signer-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.signer-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.signer-email { font-size: 12px; color: var(--text-muted); }

.signer-sig {
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed rgba(16, 185, 129, 0.2);
  text-align: center;
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 18px;
  color: var(--green-light);
}

.signer-sig--pending {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Features Section ─── */
.features { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p { color: var(--text-secondary); font-size: 16px; }

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

.feature-card {
  padding: 32px;
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.12);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: var(--green-light);
}

.feature-card h3 {
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative; z-index: 1;
}

/* ─── Stats Bar ─── */
.stats { padding: 60px 0; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px;
}

.stat { text-align: center; position: relative; }

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label { font-size: 13px; color: var(--text-muted); }

/* ─── CTA Section ─── */
.cta { padding: 80px 0 120px; text-align: center; }

.cta-card {
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(16,185,129,0.3), transparent 40%, transparent 60%, rgba(16,185,129,0.2));
  z-index: -1;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Footer ─── */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

.footer-text { font-size: 13px; color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat:not(:last-child)::after { display: none; }
  .doc-body { flex-direction: column; }
  .doc-sidebar { width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .cta-card { padding: 40px 24px; }
}