/* ============================================
   DRONGGO.AI — Landing Page Styles
   ============================================ */

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

html, body {
  overflow: hidden;
  height: 100%;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Page Layout
   ============================================ */

.page-wrapper {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background Image */
.bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 55%, transparent 85%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 55%, transparent 85%);
}

/* Radial Overlay */
.radial-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,85,255,0.05) 0%, transparent 70%);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.content-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   Reveal Animations (replaces Framer Motion fadeUp)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Logo Badge
   ============================================ */

.logo-badge {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .logo-badge {
    width: 70px;
    height: 70px;
  }
}

.logo-badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0055FF 0%,
    #3399FF 25%,
    #0055FF 50%,
    #3399FF 75%,
    #0055FF 100%
  );
  z-index: -1;
  animation: logo-spin 6s linear infinite;
  opacity: 0.6;
}

.logo-badge::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,85,255,0.15) 0%, transparent 70%);
  z-index: -2;
  animation: logo-pulse 3s ease-in-out infinite;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .logo-img {
    width: 54px;
    height: 54px;
  }
}

@keyframes logo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ============================================
   Cinematic Breathing Signal
   ============================================ */

.breath-signal {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0055FF;
  opacity: 0;
  animation: breath 4s ease-in-out infinite;
}

@keyframes breath {
  0%   { opacity: 0;   transform: scale(0.6); }
  15%  { opacity: 0.5; transform: scale(1); }
  50%  { opacity: 0.2; transform: scale(0.8); }
  85%  { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0;   transform: scale(0.6); }
}

/* ============================================
   Text Elements
   ============================================ */

.hook-headline {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  text-align: center;
  max-width: 32rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hook-headline {
    font-size: clamp(0.8rem, 1.6vw, 1rem);
    letter-spacing: 0.22em;
    margin-bottom: 2rem;
  }
}

.provocation {
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .provocation {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
  }
}

.value-prop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .value-prop { margin-bottom: 1rem; }
}

.value-prop-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: #0055FF;
}

@media (min-width: 640px) {
  .value-prop-label { font-size: 12px; }
}

.value-prop-sub {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

@media (min-width: 640px) {
  .value-prop-sub { font-size: 10px; }
}

/* Blue Glow Line */
.glow-line {
  width: 3rem;
  height: 2px;
  background: #0055FF;
  filter: blur(8px);
  opacity: 0.45;
}

/* Brand Name */
.brand-name {
  font-size: clamp(1.3rem, 4.5vw, 2.8rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .brand-name { margin-bottom: 1.75rem; }
}

.brand-blue {
  color: #0055FF;
}

/* Launching Soon */
.launching-soon {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .launching-soon {
    font-size: 10px;
    margin-top: 1.5rem;
  }
}

/* ============================================
   Form Elements
   ============================================ */

/* Phase transitions */
.form-phase {
  display: none;
  opacity: 0;
}

.form-phase.active {
  display: block;
  animation: phaseIn 0.5s ease-out forwards;
}

.form-phase.exiting {
  display: block;
  animation: phaseOut 0.3s ease-in forwards;
}

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

@keyframes phaseOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* Done phase spring */
#phase-done.active {
  animation: phaseSpring 0.5s ease-out forwards;
}

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

/* Email Row */
.form-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
}

.email-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.email-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.email-input:focus {
  border-color: rgba(0,85,255,0.6);
  box-shadow: 0 0 0 2px rgba(0,85,255,0.1);
}

.email-input.error {
  border-color: rgba(255,68,68,0.5);
}

.email-input.error:focus {
  border-color: #ff4444;
  box-shadow: 0 0 0 2px rgba(255,68,68,0.12);
}

.error-text {
  color: rgba(255,100,100,0.8);
  font-size: 11px;
  margin-top: 6px;
  padding-left: 4px;
  animation: errorIn 0.2s ease-out forwards;
}

@keyframes errorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Primary Button */
.btn-primary {
  flex-shrink: 0;
  background: #0055FF;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}

@media (min-width: 640px) {
  .btn-primary { font-size: 12px; padding: 0.625rem 1.25rem; }
}

.btn-primary:hover { background: #0044dd; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.arrow-icon {
  width: 14px;
  height: 14px;
}

.check-icon {
  width: 14px;
  height: 14px;
}

/* Spinner (replaces Loader2) */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Profile Phase — Dropdowns
   ============================================ */

.profile-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}

.profile-hint-bold {
  color: rgba(255,255,255,0.5);
}

.dropdowns-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 32rem;
  margin-bottom: 0.875rem;
}

@media (min-width: 640px) {
  .dropdowns-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.dropdown-wrapper {
  position: relative;
  flex: 1;
}

.dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.dropdown-trigger.selected {
  border-color: rgba(0,85,255,0.3);
  color: rgba(255,255,255,0.9);
}

.dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.dropdown-trigger.open .chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.dropdown-backdrop.show { display: block; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  z-index: 40;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: none;
  opacity: 0;
  transform: translateY(-6px);
}

.dropdown-menu.open {
  display: block;
  animation: dropdownIn 0.15s ease-out forwards;
}

.dropdown-menu.closing {
  display: block;
  animation: dropdownOut 0.1s ease-in forwards;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dropdownOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.dropdown-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.dropdown-option:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.dropdown-option.active {
  color: #0055FF;
  background: rgba(0,85,255,0.1);
}

/* Complete Button Row */
.btn-complete-row {
  display: flex;
  justify-content: center;
}

/* ============================================
   Done Phase
   ============================================ */

#phase-done {
  text-align: center;
}

.done-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  animation: doneCheck 0.4s 0.15s ease-out both;
}

@keyframes doneCheck {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.done-check-icon {
  width: 20px;
  height: 20px;
  color: #34d399;
}

.done-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}

@media (min-width: 640px) {
  .done-text { font-size: 1rem; }
}

.done-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 10px;
}

/* Score Badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-hot {
  background: rgba(255,68,68,0.12);
  color: #ff6666;
  border: 1px solid rgba(255,68,68,0.25);
}

.score-warm {
  background: rgba(255,170,0,0.12);
  color: #ffaa00;
  border: 1px solid rgba(255,170,0,0.25);
}

.score-cold {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

.pos-text {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.pos-number {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* Share Button */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 0;
}

.share-btn:hover {
  color: rgba(255,255,255,0.5);
}

.share-icon {
  width: 12px;
  height: 12px;
}

/* ============================================
   Footers
   ============================================ */

.footer-right {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (min-width: 640px) {
  .footer-right { bottom: 1.5rem; right: 1.5rem; }
}

.footer-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.footer-right-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
}

.footer-explore-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .footer-explore-label { font-size: 10px; }
}

.footer-explore-link {
  font-size: 11px;
  font-weight: 500;
  color: #0055FF;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0,85,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

@media (min-width: 640px) {
  .footer-explore-link { font-size: 12px; }
}

.arrow-icon-inline {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}

.footer-left {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

@media (min-width: 640px) {
  .footer-left { bottom: 1.5rem; left: 1.5rem; }
}

.footer-left.visible {
  opacity: 1;
}

.footer-left p {
  font-size: 9px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.05em;
}

/* ============================================
   Toast Notifications (replaces Sonner)
   ============================================ */

#toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-family: inherit;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: toastIn 0.3s ease-out forwards;
}

.toast.removing {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.96); }
}