:root {
  --bg: #04090d;
  --bg-soft: #07141a;
  --card: #f4f8f4;
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.74);
  --text-dim: rgba(255, 255, 255, 0.58);
  --dark-text: #182127;
  --dark-muted: #78848b;
  --accent: #47ffd8;
  --accent-2: #01a9be;
  --accent-hover: #00c3d4;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 34%, rgba(0, 169, 190, 0.3) 0, rgba(0, 169, 190, 0) 30%),
    linear-gradient(180deg, #04070b 0%, #040a0e 38%, #07161b 100%);
}

.page-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.brand-mark {
  display: block;
  width: auto;
  height: 36px;
}

.page-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(150, 150, 150, 0.3);
}

.top-shell {
  display: flex;
  width: 100%;
  position: relative;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  background: rgba(3, 18, 29, 0.72);
  backdrop-filter: blur(20px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  padding: 10px;
  gap: 5px;
}

.header-menu-toggle span {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.header-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-item {
  position: relative;
}

.header-link,
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.header-link:hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary {
  background: rgba(255, 255, 255, 0.05);
  color: #86e9ff;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: grid;
  min-width: 720px;
  padding: 16px;
  border: 1px solid rgba(134, 233, 255, 0.12);
  border-radius: 18px;
  background: rgba(3, 18, 29, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-panel-sm {
  min-width: 240px;
  grid-template-columns: 1fr;
}

.nav-group {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-group h3 {
  margin: 0 0 12px;
  color: #86e9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links-grid {
  display: grid;
  gap: 8px;
}

.nav-links-grid-compact {
  grid-template-columns: 1fr;
}

.nav-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.35;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-panel a:hover {
  background: rgba(0, 209, 209, 0.12);
  color: #00d1d1;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
}

.lang-switcher {
  position: relative;
}

.lang-button {
  min-width: 60px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s ease, color 0.25s ease,
    background-color 0.25s ease;
}

.lang-button:hover,
.lang-button[aria-expanded="true"] {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  min-width: 140px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 10, 14, 0.96);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.lang-switcher.open .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: rgba(0, 242, 218, 0.12);
  color: var(--accent);
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(150, 150, 150, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease,
    background-color 0.25s ease;
}

.action-link:hover,
.header-menu-toggle:hover {
  border-color: #00d1d1;
  color: #00d1d1;
}

.action-button,
.submit-button {
  border: 0;
  background: #01a9be;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.action-button:hover,
.submit-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 28px rgba(1, 169, 190, 0.24);
  transform: translateY(-1px);
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.login-action-button, .login-action-button:hover{
  background: linear-gradient(90deg, #28e0b3 0%, #8af7b8 100%);
  color: #333;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 122px 32px 0;
}

.featured-form-section {
  position: relative;
}

.section-heading {
  margin-bottom: 54px;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-title span {
  background: linear-gradient(270deg, #00FFC8 0%, #B2FFE7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.guide-panel {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.guide-media {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
  max-width: 600px;
  margin: 0 auto;
}

.guide-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-copy{
  max-width: 478px;
  margin: 0 auto;
}

.guide-copy h2 {
  margin: 0 0 28px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1.28;
  font-weight: 700;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.guide-item h3 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.guide-item p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.44;
}

.form-column {
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
  align-self: stretch;
}

.form-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbf7 0%, #edf9f5 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
  padding: 24px 20px 28px;
  height: 100%;
  box-sizing: border-box;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--dark-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.field {
  position: relative;
}

.help-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.help-trigger svg {
  display: block;
  width: 16px;
  height: 16px;
}

.help-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  width: min(500px, calc(100vw - 64px));
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--help-popover-shift, 0px) + var(--help-popover-nudge, 0px))) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.help-popover::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(50% + var(--help-popover-arrow-shift, 0px) - var(--help-popover-nudge, 0px) - 9px);
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.84);
  border-right: 1px solid rgba(255, 255, 255, 0.84);
  transform: rotate(45deg);
}

.help-popover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .help-anchor:has(.help-trigger:hover) .help-popover,
  .help-anchor:has(.help-trigger:focus-visible) .help-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(calc(-50% + var(--help-popover-shift, 0px) + var(--help-popover-nudge, 0px))) translateY(0);
  }
}

.help-anchor.is-help-open .help-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(calc(-50% + var(--help-popover-shift, 0px) + var(--help-popover-nudge, 0px))) translateY(0);
}

.label-note {
  color: #98a3a8;
  font-weight: 600;
  font-size: 12px;
}

.field-note {
  margin: -2px 0 10px;
  color: #4a565d;
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfdbdb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--dark-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.field input {
  padding: 10px 14px;
}

.field textarea {
  min-height: 148px;
  padding: 12px 14px;
  resize: none;
  line-height: 1.5;
}

.field textarea#demoVideo{
  min-height: 50px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ba6ab;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2);
  background: rgba(255, 255, 255, 0.84);
}

.field input.input-error,
.field textarea.input-error {
  border-color: var(--danger);
  background: var(--danger-bg);
  box-shadow: 0 0 0 1px var(--danger);
}

.error-text {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.3;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.submit-button {
  margin-top: 6px;
  width: 100%;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 16px;
  line-height: 1.25;
}

.submit-button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.submit-button:active {
  transform: scale(0.985);
}

.submit-feedback {
  display: none;
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.submit-feedback.is-visible {
  display: block;
}

.disclaimer-text {
  margin: 0;
  color: #39454d;
  font-size: 12px;
  line-height: 1.55;
}

.disclaimer-text a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.success-card.hidden {
  display: none;
}

.success-icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  color: var(--accent-2);
}

.success-icon svg {
  width: 80px;
  height: 80px;
}

.success-card h2 {
  margin: 0 0 16px;
  color: var(--dark-text);
  font-size: 30px;
}

.success-card p {
  margin: 0 0 32px;
  max-width: 420px;
  color: #4b5563;
  line-height: 1.75;
}

.footer-area {
  display: flex;
  justify-content: center;
  margin-top: 92px;
  padding: 0 32px;
  background-color: #000;
}

.footer {
  width: 100%;
  max-width: 1280px;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.footer h4 {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 12px;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00d1d1;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #00d1d1;
}

.socials a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#contactForm.hidden {
  display: none;
}

@media (min-width: 768px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .main-content {
    padding: 132px 96px 0;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 78px;
  }
}

@media (max-width: 1099px) {
  .header-menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-nav {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-menu {
    display: none;
    scrollbar-width: none;
  }

  .header-menu::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav.open .header-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(134, 233, 255, 0.12);
    border-radius: 18px;
    background: rgba(3, 18, 29, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    justify-content: flex-start;
  }

  .header-nav.open .header-actions {
    margin-left: 0;
  }

  .header-nav.open .header-item {
    width: 100%;
  }

  .header-nav.open .header-link,
  .header-nav.open .nav-dropdown > summary {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
  }

  .header-nav.open .nav-panel,
  .header-nav.open .nav-panel-sm {
    position: static;
    min-width: 0;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .header-nav.open .nav-links-grid-compact {
    grid-template-columns: 1fr;
  }

  .guide-panel{
    gap: 40px;
  }

  .guide-list{
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .top-shell,
  .footer-area {
    padding-right: 32px;
    padding-left: 32px;
  }

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

  .section-heading {
    margin-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .top-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .footer-area {
    padding-right: 24px;
    padding-left: 24px;
  }

  .header-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    gap: 4px;
  }

  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .header-nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid rgba(134, 233, 255, 0.12);
    border-radius: 18px;
    background: rgba(3, 18, 29, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }

  .header-menu,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-menu {
    width: 100%;
  }

  .header-actions {
    display: none;
    padding: 0 14px;
  }

  .header-nav.open .header-actions {
    display: flex;
    margin-left: 0;
  }

  .header-nav.open .header-menu {
    width: 100%;
    position: static;
    border: 0;
    padding: 0;
  }

  .header-link,
  .nav-dropdown > summary,
  .action-link,
  .action-button {
    justify-content: space-between;
    min-height: 44px;
  }

  .header-link,
  .nav-dropdown > summary {
    width: 100%;
  }

  .action-link,
  .action-button {
    width: fit-content;
    min-height: 36px;
  }

  .nav-panel,
  .nav-panel-sm {
    position: static;
    min-width: 0;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .nav-links-grid-compact {
    grid-template-columns: 1fr;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-text {
    font-size: 12px;
  }

  .top-shell {
    padding: 6px 12px;
  }

  .brand-mark {
    height: 28px;
  }

  .header-menu-toggle span {
    width: 16px;
  }

  .main-content {
    padding: 104px 16px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

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

  .content-grid {
    gap: 32px;
  }

  .guide-copy h2 {
    font-size: 18px;
  }

  .guide-item h3 {
    font-size: 16px;
  }

  .guide-item p {
    font-size: 14px;
  }

  .form-card {
    padding: 22px 16px 24px;
    border-radius: 22px;
  }

  .field input,
  .field textarea {
    font-size: 16px;
  }

  .help-popover {
    top: calc(100% + 18px);
    left: 50%;
    width: min(300px, calc(100vw - 56px));
    padding: 5px;
    border-radius: 14px;
    --help-popover-nudge: 18px;
    transform: translateX(calc(-50% + var(--help-popover-shift, 0px) + var(--help-popover-nudge, 0px)));
    margin-left: 15px;
  }

  .help-popover::before {
    top: -12px;
    left: calc(50% - var(--help-popover-nudge, 0px) - 9px);
    border-top: 1px solid rgba(255, 255, 255, 0.84);
    border-right: 1px solid rgba(255, 255, 255, 0.84);
    margin-left: -15px;
  }

  .help-popover img {
    border-radius: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-area {
    margin-top: 68px;
  }

  .lang-switcher{
    margin-left: auto;
  }

  .header-menu-toggle{
    margin-left: 0;
  }
}
