/* ==========================================================================
   DProjectMaster - Welcome & Migration Page Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Deep Dark Mode with Vibrant Aurora Accents */
  --bg-dark: #090b10;
  --bg-card: rgba(18, 22, 34, 0.72);
  --bg-card-hover: rgba(24, 30, 48, 0.85);
  --bg-card-inner: rgba(255, 255, 255, 0.03);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.35);
  --border-active: rgba(168, 85, 247, 0.5);

  --primary-accent: #6366f1;
  /* Indigo */
  --primary-light: #818cf8;
  --secondary-accent: #a855f7;
  /* Purple */
  --secondary-light: #c084fc;
  --cyan-accent: #06b6d4;
  /* Cyan */
  --emerald-accent: #10b981;
  /* Emerald / Active */

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-highlight: #e0e7ff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-button: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-button-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --gradient-card-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 80%);
  --gradient-glow-orb-1: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0) 70%);
  --gradient-glow-orb-2: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
  --gradient-glow-orb-3: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0) 70%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 32px -4px rgba(99, 102, 241, 0.4);
  --shadow-btn-glow: 0 4px 20px rgba(99, 102, 241, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Ambient Animated Glow Background
   -------------------------------------------------------------------------- */
.glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: -10%;
  left: 20%;
  background: var(--gradient-glow-orb-1);
}

.orb-2 {
  width: 450px;
  height: 450px;
  top: 35%;
  right: -5%;
  background: var(--gradient-glow-orb-2);
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: 10%;
  background: var(--gradient-glow-orb-3);
  animation-duration: 26s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.08);
  }

  100% {
    transform: translate(-30px, 40px) scale(0.92);
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 85%);
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
  user-select: none;
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.brand-logo:hover .logo-wrapper {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
  border-color: var(--border-active);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-text strong {
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  box-shadow: 0 0 8px var(--emerald-accent);
  animation: pulseDot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-pill-container {
  margin-bottom: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-highlight);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.status-pill:hover {
  border-color: var(--border-highlight);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.hero-section {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.125rem;
  color: var(--text-main);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Migration Spotlight Card
   -------------------------------------------------------------------------- */
.migration-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  margin-bottom: 3rem;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.migration-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: var(--gradient-card-glow);
  pointer-events: none;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-light);
  margin-bottom: 1.25rem;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.card-title span {
  color: var(--cyan-accent);
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.4);
  text-underline-offset: 4px;
}

.card-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.card-description strong {
  color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   CTA Buttons & Controls
   -------------------------------------------------------------------------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  box-shadow: var(--shadow-btn-glow);
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

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

.btn-primary .btn-arrow {
  transition: transform var(--transition-normal);
}

.btn-primary:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.meta-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Information List (Stacked Flex Column)
   -------------------------------------------------------------------------- */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  max-width: 820px;
  margin-bottom: 3rem;
  text-align: left;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.65rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-bottom: 0;
}

.info-body {
  flex: 1;
  text-align: left;
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.info-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-text a {
  color: var(--cyan-accent);
  text-decoration: none;
  font-weight: 500;
}

.info-text a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Newsletter / Stay Updated Card
   -------------------------------------------------------------------------- */
.newsletter-card {
  width: 100%;
  max-width: 820px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 2rem;
}

.newsletter-content {
  flex: 1;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.newsletter-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.newsletter-form {
  flex: 1;
  max-width: 380px;
  width: 100%;
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  transition: border-color var(--transition-normal);
}

.input-wrapper:focus-within {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-main);
  outline: none;
}

.email-input::placeholder {
  color: var(--text-subtle);
}

.btn-notify {
  background: var(--primary-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-notify:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

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

.form-feedback {
  font-size: 0.825rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
  transition: all var(--transition-fast);
}

.form-feedback.success {
  color: #34d399;
}

.form-feedback.error {
  color: #f87171;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-light);
}

.dot-separator {
  color: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .newsletter-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .page-wrapper {
    padding: 1.25rem 1rem 2rem;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .migration-card {
    padding: 2rem 1.25rem 1.5rem;
  }

  .info-card {
    padding: 1.15rem 1.25rem;
    gap: 1rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .card-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .input-wrapper {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.6rem;
  }

  .email-input {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .btn-notify {
    width: 100%;
    padding: 0.75rem;
  }
}