:root {
  --bg-deep: #06070b;
  --bg-surface: #0c0f18;
  --bg-card: rgba(16, 21, 35, 0.65);
  --bg-card-hover: rgba(22, 29, 48, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 242, 254, 0.35);
  --border-violet: rgba(168, 85, 247, 0.35);
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --primary-violet: #8a2be2;
  --accent-purple: #c084fc;
  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(0, 242, 254, 0.25);
  --shadow-glow-purple: 0 0 40px -5px rgba(138, 43, 226, 0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.iffware-theme {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Layers */
.canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
  top: -150px;
  left: 10%;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-violet) 0%, transparent 70%);
  bottom: -100px;
  right: 5%;
  animation: floatOrb 26s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
  top: 45%;
  left: 55%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(138, 43, 226, 0.3));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--status-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 48px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.12), rgba(138, 43, 226, 0.12));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 24px;
  box-shadow: 0 0 25px -5px rgba(0, 242, 254, 0.25);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-tag {
  background: var(--primary-cyan);
  color: #06070b;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Countdown Clock */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.countdown-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  min-width: 110px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  opacity: 0.6;
}

.countdown-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  display: block;
  margin-bottom: 6px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-sep {
  font-size: 2rem;
  color: var(--text-dim);
  font-weight: 300;
  opacity: 0.5;
  animation: blinkSep 1.5s infinite;
}

@keyframes blinkSep {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.2; }
}

/* VIP Waitlist / Early Access Box */
.waitlist-card {
  width: 100%;
  max-width: 660px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.waitlist-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), transparent 60%, rgba(138, 43, 226, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.waitlist-header {
  margin-bottom: 20px;
  text-align: center;
}

.waitlist-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.waitlist-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Role Selector */
.role-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.role-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.role-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.role-pill.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(138, 43, 226, 0.2));
  border-color: var(--primary-cyan);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Input Form */
.subscribe-form {
  display: flex;
  gap: 10px;
  position: relative;
}

@media (max-width: 600px) {
  .subscribe-form {
    flex-direction: column;
  }
}

.input-wrap {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.subscribe-input {
  width: 100%;
  background: rgba(8, 10, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.25s ease;
}

.subscribe-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  background: rgba(10, 13, 22, 0.95);
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 40%, #7f00ff 100%);
  color: #06070b;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Live Counter Footer */
.waitlist-footer-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  margin-left: -8px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.live-count-highlight {
  color: var(--primary-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Success Ticket Card */
.ticket-container {
  display: none;
  animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.vip-ticket {
  background: linear-gradient(135deg, rgba(20, 26, 46, 0.95), rgba(12, 15, 26, 0.95));
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  text-align: left;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.ticket-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-cyan);
  font-size: 1.1rem;
}

.ticket-id {
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

.ticket-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.ticket-data-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.ticket-data-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.ticket-actions {
  display: flex;
  gap: 10px;
}

/* Feature Sneak Peek Grid */
.features-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.section-subtitle {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-top: 14px;
}

/* Visual Teaser Banner */
.visual-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  max-height: 380px;
}

.visual-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.9);
  transition: transform 0.8s ease;
}

.visual-banner:hover img {
  transform: scale(1.03);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.2) 0%, rgba(7, 8, 13, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.visual-content {
  max-width: 550px;
}

.visual-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.visual-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Roadmap Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 7, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.roadmap-progress {
  margin: 20px 0 28px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  width: 88%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-violet));
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px var(--primary-cyan);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-marker.done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--status-green);
  border: 1px solid var(--status-green);
}

.timeline-marker.current {
  background: rgba(0, 242, 254, 0.2);
  color: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
  animation: pulseDot 1.8s infinite;
}

.timeline-marker.upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.timeline-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.timeline-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(12, 16, 28, 0.95);
  border: 1px solid var(--primary-cyan);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  z-index: 200;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.social-link:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}