/* Custom properties inspired by modern SaaS and StayCloud identity */
:root {
  --primary: #5969FF;
  --primary-hover: #4856E0;
  --secondary: #95BAFF;
  --success: #2ECC71;
  --success-hover: #27AE60;

  --bg-color: #061021;
  --surface: #0a1426;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;

  --border-color: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.15);
  --input-focus: #5969FF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

  --font-family: 'DM Sans', sans-serif;
  --border-radius: 8px;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: var(--font-family);
  font-weight: 300;
  background-color: var(--bg-color);
  background-image: radial-gradient(at 0% 0%, rgba(89, 105, 255, 0.15) 0px, transparent 40%), radial-gradient(at 100% 0%, rgba(149, 186, 255, 0.05) 0px, transparent 40%), radial-gradient(at 50% 100%, rgba(89, 105, 255, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.hidden {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.navbar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 1340px;
  max-width: 95%;
  background-color: rgba(10, 20, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.2rem 2.5rem;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.nav-btn-login {
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn-login:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn-cta {
  background: linear-gradient(135deg, #5969FF 0%, #3B4BFF 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(89, 105, 255, 0.3);
}

.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(89, 105, 255, 0.4);
}

.logo {
  max-height: 28px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow-x: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.hero-image-area {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-text-area {
  z-index: 5;
  position: relative;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 100%;
  opacity: 0;
  transform: none;
  transition: opacity 1.5s ease-in-out;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
  z-index: 1;
}

.hero-carousel img.active {
  opacity: 1;
  z-index: 2;
}

.carousel-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(89, 105, 255, 0.5);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

@keyframes floatHero {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-badge {
  display: inline-block;
  background-color: rgba(89, 105, 255, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: 1px solid rgba(89, 105, 255, 0.2);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.15rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(89, 105, 255, 0.39);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--success);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(46, 204, 113, 0.39);
}

.btn-success:hover:not(:disabled) {
  background-color: var(--success-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  background-color: #F1F5F9;
  color: var(--text-main);
}

/* Base Structural Additions */
.section-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.mb-l {
  margin-bottom: 3rem !important;
}

/* How It Works Split Layout */
.how-it-works {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 2.5rem;
}

.feature-list li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-icon {
  background-color: var(--bg-color);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-list strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  font-weight: 700;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.commission-highlight {
  padding: 4rem 3rem;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #1a2b4b;
  border: 1px solid rgba(89, 105, 255, 0.4);
  box-shadow: 0 0 60px rgba(89, 105, 255, 0.1) inset, var(--shadow-lg);
}

.commission-badge {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.commission-value {
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}

.commission-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.commission-highlight p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Rewards Section Redesign */
.rewards-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
  /* Dark mode maintains transparency here to show the mesh */
}

.rewards-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8rem;
  align-items: center;
}

.rewards-content .section-title {
  margin-bottom: 1rem;
}

.rewards-content .section-desc {
  margin: 0 0 3rem 0;
  color: var(--text-muted);
}

.rewards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rewards-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.reward-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: var(--transition);
}

.rewards-list li:hover .reward-icon-box {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}

.reward-info strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.reward-info p {
  color: var(--text-muted);
  font-size: 1rem;
}

.reward-info p span {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--success);
  margin-top: 0.25rem;
}

/* Right Side - Visual Composition */
.rewards-visual {
  position: relative;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.visual-bg-shape {
  position: absolute;
  width: 320px;
  height: 520px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 40px;
  transform: rotate(4deg) skewX(-5deg);
  box-shadow: var(--shadow-lg);
  opacity: 0.7;
  z-index: 1;
}

.glass-card {
  position: absolute;
  background: rgba(10, 20, 38, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  width: 380px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.card-top {
  top: 5%;
  left: 0;
  z-index: 5;
}

.card-bottom {
  top: 40%;
  right: -10%;
  z-index: 5;
}

.glass-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.glass-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.glass-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.renewal-info {
  position: absolute;
  bottom: 10%;
  left: 20%;
  z-index: 3;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.renewal-info i {
  color: var(--primary);
  font-size: 1.1rem;
}

@media (max-width: 992px) {
  .rewards-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .rewards-visual {
    min-height: 480px;
    margin: 2rem 0;
  }

  .card-top {
    left: 5%;
    top: 5%;
  }

  .card-bottom {
    right: 5%;
    top: 35%;
  }

  .renewal-info {
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    width: max-content;
  }
}

@media (max-width: 600px) {
  .rewards-section {
    padding: 4rem 0;
  }

  .glass-card {
    width: 290px;
    padding: 1.25rem;
  }

  .card-top {
    left: 0;
  }

  .card-bottom {
    right: 0;
  }

  .rewards-note {
    margin-top: 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* Ribbon Divider */
.ribbon-divider {
  background: linear-gradient(90deg, transparent 0%, rgba(89, 105, 255, 0.15) 50%, transparent 100%);
  border-top: 1px solid rgba(89, 105, 255, 0.15);
  border-bottom: 1px solid rgba(89, 105, 255, 0.15);
  padding: 3rem 0;
  margin: 4rem 0;
  text-align: center;
}

.ribbon-text {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Form Section */
.form-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
  position: relative;
}

.form-wrapper {
  background-color: var(--bg-color);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: none;
  border-top: 4px solid var(--primary);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.form-wrapper .section-title {
  margin-bottom: 3.5rem;
}

.progress-bar-container {
  position: relative;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.progress-bar-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 22px;
  right: 22px;
  height: 4px;
  background-color: var(--border-color);
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 4px;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 22px;
  right: 22px;
  height: 4px;
  background-color: var(--primary);
  transform-origin: left;
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
  border-radius: 4px;
}

.progress-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0;
  z-index: 2;
}

.step-indicator {
  width: 44px;
  height: 44px;
  background-color: var(--surface);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
  border: 4px solid var(--surface);
  box-shadow: inset 0 0 0 2px var(--border-color), 0 0 0 2px var(--surface);
  z-index: 2;
  position: relative;
  font-size: 1.1rem;
}

.step-indicator.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--surface);
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px rgba(89, 105, 255, 0.2);
}

.step-indicator.completed {
  background-color: var(--primary);
  color: white;
  border-color: var(--surface);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step h3 {
  margin-bottom: 2rem;
  color: var(--text-main);
  font-size: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.required {
  color: #E11D48;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(89, 105, 255, 0.15);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.form-actions.right {
  justify-content: flex-end;
}

input.error,
select.error,
textarea.error {
  border-color: #E11D48;
}

.error-message {
  color: #E11D48;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
  font-weight: 700;
}

/* Custom Dropdown Styling */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.select-trigger {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select.open .select-trigger {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(89, 105, 255, 0.15);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #0A1426;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.custom-select.open .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.option {
  padding: 0.8rem 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.option:hover {
  background-color: rgba(89, 105, 255, 0.15);
  color: var(--text-main);
}

.option.selected {
  background-color: var(--primary);
  color: white;
}

.select-trigger i {
  transition: transform 0.3s ease;
}

.custom-select.open .select-trigger i {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 3rem 0;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}

.copyright {
  margin-top: 1rem;
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Thank You Screen */
.fullscreen-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.thank-you-content {
  text-align: center;
  padding: 3rem;
  background-color: var(--bg-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.thank-you-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.thank-you-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .navbar {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-image-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-bottom: 2rem;
  }

  .hero-carousel {
    width: 100%;
    height: 380px; /* Fixed height for absolute image transition */
  }
  
  .carousel-dots {
    position: static;
    transform: none;
    margin-top: 2rem;
  }

  .hero-text-area {
    text-align: center;
  }

  .hero-badges {
    justify-content: center !important;
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 15px;
    padding: 0.8rem 1.5rem;
    width: 92%;
  }

  .nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .logo {
    max-height: 22px;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero-badges {
    flex-wrap: wrap; /* Allow wrap only on very small screens if necessary */
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .ribbon-text {
    font-size: 1.5rem;
  }

  .form-wrapper {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 280px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }
}