:root {
  --primary: #ff6b00;
  --secondary: #2563eb;
  --bg-dark: #0f1419;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  /* Apple Liquid Glass variables */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-blur: 40px;
  --glass-saturate: 180%;
  --glass-border-light: rgba(255, 255, 255, 0.5);
  --glass-border-subtle: rgba(255, 255, 255, 0.15);
  --glass-specular: rgba(255, 255, 255, 0.8);
  --glass-inner-glow: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Apple Liquid Glass: Vibrant multi-color background */
  background:
    /* Warm glow top-left */
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
    /* Cool accent bottom-right */
    radial-gradient(ellipse 70% 70% at 90% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    /* Subtle purple accent */
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    /* Base gradient */
    linear-gradient(160deg, #1a1f2e 0%, #0f1419 50%, #0c1015 100%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    background-position: 0% 0%, 100% 100%, 70% 30%, 0% 0%;
  }
  100% {
    background-position: 5% 5%, 95% 90%, 65% 35%, 0% 0%;
  }
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('vahanbazaar_hero_image.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

header {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Liquid Glass header */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 3rem;
}

.role-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 808px;
}

/* APPLE LIQUID GLASS EFFECT - iPhone Style */
.role-card {
  /* A. The Glass Body: Translucent with subtle tint */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.15) 100%
    );

  /* B. The Optical Blur: Heavy blur with saturation for vibrancy */
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));

  /* C. Pill Shape: Apple's signature rounded corners */
  border-radius: 32px;

  /* D. The Specular Edge: Bright top-left highlight border */
  border: 1px solid;
  border-color:
    var(--glass-border-light)
    var(--glass-border-subtle)
    var(--glass-border-subtle)
    var(--glass-border-light);

  /* E. Layered Depth Shadows */
  box-shadow:
    /* Inner specular highlight - top edge gleam */
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    /* Inner soft glow */
    inset 0 0 20px var(--glass-inner-glow),
    /* Subtle outer glow */
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    /* Soft ambient shadow */
    0 4px 16px rgba(0, 0, 0, 0.12),
    /* Deep shadow for depth */
    0 12px 32px rgba(0, 0, 0, 0.18);

  padding: 3.4rem 2.1rem;
  cursor: pointer;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.3s ease;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Specular highlight overlay */
.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 32px 32px 0 0;
  pointer-events: none;
}

.role-card:hover {
  transform: translateY(-8px) scale(1.02);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.2) 100%
    );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 20px 48px rgba(0, 0, 0, 0.2);
}

.role-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.role-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.role-card p {
  color: var(--text-dim);
  line-height: 1.6;
}

.btn {
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  border-radius: 980px; /* Apple's signature pill shape */
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(180deg, #ff7a1a 0%, var(--primary) 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(255, 107, 0, 0.3),
    0 4px 16px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(255, 107, 0, 0.4),
    0 8px 24px rgba(255, 107, 0, 0.25);
  filter: brightness(1.05);
}

.btn-secondary {
  background: linear-gradient(180deg, #3b82f6 0%, var(--secondary) 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(37, 99, 235, 0.3),
    0 4px 16px rgba(37, 99, 235, 0.2);
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(37, 99, 235, 0.4),
    0 8px 24px rgba(37, 99, 235, 0.25);
  filter: brightness(1.05);
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
}

.signin-btn {
  padding: 0.55rem 1.4rem;
  background: linear-gradient(180deg, #ff7a1a 0%, var(--primary) 100%);
  color: white !important;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(255, 107, 0, 0.25),
    0 4px 12px rgba(255, 107, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.signin-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.signin-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(255, 107, 0, 0.35),
    0 8px 20px rgba(255, 107, 0, 0.2);
}

/* Tablet landscape / Small laptop (769px - 1024px) */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .role-container {
    max-width: 700px;
    gap: 1.5rem;
  }

  .role-card {
    padding: 3rem 1.8rem;
    border-radius: 28px;
  }

  .role-card::before {
    border-radius: 28px 28px 0 0;
  }
}

/* Tablet portrait (481px - 768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  main {
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .role-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 1.5rem;
  }

  .role-card {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    /* Reduce blur for mobile performance */
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
  }

  .role-card::before {
    border-radius: 24px 24px 0 0;
  }

  .role-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .role-card h2 {
    font-size: 1.5rem;
  }

  .role-card p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .signin-btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  header {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  main {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .role-container {
    max-width: 100%;
    gap: 1rem;
  }

  .role-card {
    padding: 2rem 1.2rem;
    border-radius: 20px;
    /* Lighter blur for mobile performance */
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
  }

  .role-card::before {
    border-radius: 20px 20px 0 0;
  }

  .role-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .role-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .role-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .role-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .btn {
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .signin-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}