:root {
  --bg-dark: #07080c;
  --bg-card: #0e1017;
  --bg-glass: rgba(10, 12, 18, 0.72);
  --bg-light: #f6f6f9;
  --text-white: #ffffff;
  --text-muted: #a1a6b8;
  --text-footer: #7a8190;
  --text-dark: #181a20;
  --text-dark-sub: #4a505e;
  --green-primary: #e5b94c;
  --green-hover: #f3cc64;
  --green-accent: #f3cc64;
  --green-alt: #d4a234;
  --green-dark-bg: #241b06;
  --green-dark-text: #161002;
  --border-glass: rgba(229, 185, 76, 0.28);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-green {
  color: var(--green-accent);
}

.text-green-alt {
  color: var(--green-alt);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary-sm {
  background-color: var(--green-primary);
  color: var(--green-dark-text);
  font-size: 14px;
  padding: 8px 16px;
}

.btn-primary-sm:hover {
  background-color: var(--green-hover);
}

.btn-secondary-sm {
  background-color: var(--green-dark-bg);
  color: var(--green-accent);
  font-size: 14px;
  padding: 8px 16px;
}

.btn-secondary-sm:hover {
  background-color: #3a2b08;
}

.btn-primary-md {
  background-color: var(--green-primary);
  color: var(--green-dark-text);
  font-size: 16px;
  padding: 13px 32px;
  min-width: 264px;
}

.btn-primary-md:hover {
  background-color: var(--green-hover);
  box-shadow: 0 8px 28px rgba(229, 185, 76, 0.28);
}

.full-width {
  width: 100%;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 12, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 26px;
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-white);
}

.brand-accent {
  color: var(--green-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 680px;
  padding: 130px 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: -10px;
  left: 10%;
  width: 90%;
  height: 88%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glow {
  position: absolute;
  top: -780px;
  left: 50%;
  transform: translateX(-50%);
  width: 1260px;
  height: 1100px;
  background: radial-gradient(50% 50%, rgba(229, 185, 76, 0.25) 12%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.hero-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 440px;
}

.hero-text-col {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 650px;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.hero-visual {
  position: relative;
  width: 520px;
  height: 480px;
  flex-shrink: 0;
}

.hero-phone {
  position: relative;
  z-index: 2;
  width: 400px;
  margin: 0 auto;
  object-fit: contain;
  animation: fadeUp 0.9s ease-out both;
}

.float-icon {
  position: absolute;
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
}

.float-icon-1 {
  width: 170px;
  top: 20px;
  left: 0;
  animation: floatSlow 5s ease-in-out infinite;
}

.float-icon-2 {
  width: 110px;
  top: 320px;
  right: 10px;
  animation: floatSlow 6s ease-in-out infinite reverse;
}

.float-icon-3 {
  width: 155px;
  bottom: 90px;
  left: 10px;
  animation: floatSlow 5.5s ease-in-out infinite 0.5s;
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

/* Shared Dark Sections */
.section-dark {
  position: relative;
  background-color: var(--bg-dark);
  padding: 0 80px 100px;
  overflow: hidden;
}

.section-separator {
  width: 75%;
  max-width: 1000px;
  height: 1px;
  margin: 0 auto 80px;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-white);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Bento Grid (Features) */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-height: 520px;
}

.bento-right-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

.bento-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(rgba(229, 185, 76, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease;
}

.bento-card-tall {
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 32px 24px;
}

.bento-card-short {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
}

.bento-card-bg {
  position: absolute;
  inset: 1px;
  background-color: var(--bg-card);
  border-radius: 15px;
  z-index: 0;
}

.bento-card-glow {
  position: absolute;
  bottom: -160px;
  left: -180px;
  right: -180px;
  height: 130%;
  background: radial-gradient(50% 50%, rgba(229, 185, 76, 0.22) 12%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.bento-card:hover .bento-card-glow {
  transform: scale(1.15);
}

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

.bento-card-tall .bento-card-content {
  max-width: 380px;
}

.bento-card-short .bento-card-content {
  flex: 1;
  max-width: 230px;
}

.bento-card-content h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-white);
  margin-bottom: 10px;
}

.bento-card-content p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bento-card-media {
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.bento-card:hover .bento-card-media {
  transform: scale(1.04);
}

.media-signal {
  width: 100%;
  max-width: 320px;
  margin: auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-signal img {
  width: 100%;
  height: auto;
}

.media-sentiment,
.media-news {
  width: 255px;
  flex-shrink: 0;
}

/* Bottom Progressive Blur */
.bottom-blur-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  z-index: 15;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
}

/* Auth Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0e1017;
  border: 1px solid rgba(229, 185, 76, 0.25);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form[hidden] {
  display: none;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #d1d3de;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="password"],
.modal-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 12, 0.85);
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.modal-form input:focus,
.modal-form select:focus {
  border-color: var(--green-primary);
}

.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.country-picker {
  position: relative;
  flex-shrink: 0;
}

.country-trigger {
  height: 100%;
  min-width: 104px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 12, 0.85);
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease;
}

.country-trigger:hover,
.country-trigger:focus-visible,
.country-trigger[aria-expanded="true"] {
  border-color: var(--green-primary);
  outline: none;
}

.flag-img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.dial-code {
  color: var(--text-white);
  font-size: 14px;
  line-height: 1;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.country-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 270px;
  background: #0e1017;
  border: 1px solid rgba(229, 185, 76, 0.25);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  padding: 8px;
  z-index: 30;
}

.country-dropdown[hidden] {
  display: none;
}

.country-search {
  width: 100%;
  padding: 8px 10px !important;
  margin-bottom: 6px;
  font-size: 13px !important;
  border-radius: 8px !important;
}

.country-list {
  list-style: none;
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-option {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e4e5eb;
  font-size: 13px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.country-option:hover,
.country-option.active {
  background: rgba(229, 185, 76, 0.16);
  color: var(--text-white);
}

.country-option .opt-code {
  color: var(--green-accent);
  font-weight: 600;
  min-width: 44px;
}

.country-option .opt-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-input-group > input[type="tel"] {
  flex: 1;
  min-width: 0;
}

.terms-checkbox {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 4px 0 6px;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid var(--green-alt);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.terms-checkbox input[type="checkbox"]:checked + .checkbox-box {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
}

.terms-checkbox input[type="checkbox"]:checked + .checkbox-box::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #161002;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.terms-checkbox input[type="checkbox"]:focus-visible + .checkbox-box {
  box-shadow: 0 0 0 3px rgba(229, 185, 76, 0.3);
}

.terms-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #d1d3de;
}

.terms-link {
  color: var(--green-accent);
  font-weight: 500;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

.modal-feedback {
  margin-top: 14px;
  margin-bottom: 0 !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(229, 185, 76, 0.14);
  border: 1px solid rgba(229, 185, 76, 0.4);
  color: var(--green-accent) !important;
  font-size: 13px !important;
}

.modal-error {
  margin-top: 14px;
  margin-bottom: 0 !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(204, 29, 31, 0.16);
  border: 1px solid rgba(204, 29, 31, 0.45);
  color: #ff9c9e !important;
  font-size: 13px !important;
}

/* Country Step 1 */
.country-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.country-step[hidden] {
  display: none;
}

.country-step-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 12, 0.85);
  color: var(--text-white);
  font-size: 14px;
  outline: none;
}

.country-step-search:focus {
  border-color: var(--green-primary);
}

.country-step-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.country-step-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 12, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-white);
  font-size: 13px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.country-step-item:hover {
  border-color: var(--green-primary);
  background: rgba(229, 185, 76, 0.12);
}

.country-step-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.country-step-meta {
  font-size: 12px;
  color: var(--green-accent);
  font-weight: 600;
  flex-shrink: 0;
}

.btn-change-country {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(229, 185, 76, 0.35);
  background: rgba(229, 185, 76, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-size: 13px;
  text-align: left;
}

.btn-change-country .change-link {
  margin-left: auto;
  color: var(--green-accent);
  font-weight: 600;
}

/* Responsive Tablet */
@media (max-width: 1199px) {
  .hero {
    padding: 110px 36px 64px;
  }

  .hero-top {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-text-col {
    align-items: center;
  }

  .hero-title {
    font-size: 56px;
  }

  .section-dark {
    padding: 0 36px 80px;
  }

  .section-title {
    font-size: 36px;
  }

  .bento-grid {
    height: auto;
  }

  .bento-card-tall,
  .bento-card-short {
    min-height: 260px;
  }

  .bento-card-tall {
    min-height: 460px;
  }
}

/* Responsive Mobile */
@media (max-width: 809px) {
  .navbar {
    padding: 0 16px;
  }

  .navbar-inner {
    height: 68px;
  }

  .hero {
    padding: 96px 16px 56px;
    min-height: auto;
  }

  .hero-content {
    gap: 48px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-visual {
    width: 100%;
    max-width: 340px;
    height: 320px;
  }

  .hero-phone {
    width: 260px;
  }

  .float-icon-1 {
    width: 100px;
    top: 8px;
    left: 0;
  }

  .float-icon-2 {
    width: 68px;
    top: 190px;
    right: 6px;
  }

  .float-icon-3 {
    width: 90px;
    bottom: 50px;
    left: 6px;
  }

  .section-dark {
    padding: 0 16px 56px;
  }

  .section-separator {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 28px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento-card-tall,
  .bento-card-short {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    min-height: auto;
    gap: 20px;
  }

  .bento-card-tall .bento-card-content,
  .bento-card-short .bento-card-content {
    max-width: 100%;
  }

  .media-signal {
    width: 240px;
    margin: 0 auto;
    padding-top: 0;
  }

  .media-sentiment,
  .media-news {
    width: 250px;
    align-self: center;
  }
}
