: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);
  --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;
  padding-top: 62px;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 70% 70% at 90% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    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%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* ============================================
   Header
============================================ */
header {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  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);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 980px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.nav-pill.active {
  color: #fff;
  background: rgba(255,107,0,0.15);
  border-color: rgba(255,107,0,0.3);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20,20,30,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-dropdown-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-dropdown-item.active {
  color: var(--primary);
}

.nav-dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* ============================================
   Main / Hero
============================================ */
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: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.launch-date {
  font-size: 1rem !important;
  color: var(--primary) !important;
  font-weight: 600;
  margin-bottom: 3rem !important;
}

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

/* ============================================
   Apple Liquid Glass Cards
============================================ */
.role-card {
  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%);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-radius: 32px;
  border: 1px solid;
  border-color: var(--glass-border-light) var(--glass-border-subtle) var(--glass-border-subtle) var(--glass-border-light);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.6),
    inset 0 0 20px var(--glass-inner-glow),
    0 0 0 0.5px rgba(255,255,255,0.1),
    0 4px 16px rgba(0,0,0,0.12),
    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;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.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;
  font-weight: 700;
}

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

/* ============================================
   Buttons
============================================ */
.btn {
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  border-radius: 980px;
  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;
  display: inline-block;
}

.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%, #ff6b00 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%, #2563eb 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);
}

/* ============================================
   Features Section
============================================ */
.features-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.features-section h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

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

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Badge (pulsing)
============================================ */
.badge {
  padding: 0.4rem 1rem;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 768px) {
  .role-card {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
  }
  .role-card::before {
    border-radius: 24px 24px 0 0;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  header {
    padding: 0.8rem 0.75rem;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .logo {
    font-size: 1.2rem;
  }
  .header-nav {
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-pill {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
  }
  .nav-dropdown-menu {
    right: -0.5rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .role-card {
    padding: 2rem 1.2rem;
    border-radius: 20px;
    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);
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}
