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

:root {
  --bg-dark: #0b141a;
  --bg-card: #111b21;
  --bg-elevated: #1f2c34;
  --bg-input: #2a3942;
  --border: #233138;
  --border-light: #2a3942;
  --text-primary: #e9edef;
  --text-secondary: #8696a0;
  --text-muted: #667781;
  --accent: #00a884;
  --accent-dim: #005c4b;
  --accent-hover: #06cf9c;
  --error: #ea4335;
  --success: #00a884;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

input {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 20, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.header__logo span {
  color: var(--text-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--text-primary);
}

.header__cta-btn {
  background: rgba(0, 168, 132, 0.15) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(0, 168, 132, 0.3) !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.header__cta-btn:hover {
  background: rgba(0, 168, 132, 0.25) !important;
  border-color: rgba(0, 168, 132, 0.5) !important;
}

.header__form-btn {
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
  border: none !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.header__form-btn:hover {
  background: var(--accent-hover) !important;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--accent-dim) 0%,
    transparent 60%
  );
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid rgba(0, 168, 132, 0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.hero__tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 36px;
  margin-left: auto;
  margin-right: auto;
}

.hero__btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
}

.hero__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

.section__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 72px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature--reverse {
  direction: rtl;
}

.feature--reverse > * {
  direction: ltr;
}

.feature__number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 12px;
}

.feature__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.feature__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature__list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.feature__screenshot {
  display: flex;
  justify-content: center;
}

.feature__img-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/19.5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: block;
  color: var(--text-muted);
  overflow: hidden;
}

.feature__img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.feature__img-placeholder span {
  font-size: 13px;
  font-weight: 500;
}

.feature__img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-card);
  display: block;
  border-radius: var(--radius-lg);
}

/* ===== Early Access ===== */
.early-access {
  padding: 100px 0 120px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 168, 132, 0.05) 100%
  );
}

.early-access__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.early-access__form {
  margin-top: 40px;
}

.early-access__input-wrap {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px;
  transition: border-color 0.2s;
}

.early-access__input-wrap:focus-within {
  border-color: var(--accent);
}

.early-access__input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  min-width: 0;
}

.early-access__input::placeholder {
  color: var(--text-muted);
}

.early-access__submit {
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.early-access__submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

.early-access__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.early-access__message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.early-access__message--success {
  color: var(--success);
}

.early-access__message--error {
  color: var(--error);
}

.early-access__privacy {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Register Page ===== */
.register {
  padding: 120px 0 100px;
  min-height: calc(100vh - 64px - 97px); /* viewport - header - footer */
}

.register__inner {
  max-width: 560px;
  margin: 0 auto;
}

.register__header {
  text-align: center;
  margin-bottom: 48px;
}

.register__title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.register__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.register__description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.register__description p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.register__description p:first-child {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.register__description p:last-child {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 0;
}

.register__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__group {
  margin-bottom: 24px;
}

.form__group--checkbox {
  margin-bottom: 32px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s;
}

.form__input:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
  outline: none;
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__input[type="tel"] {
  font-variant-numeric: tabular-nums;
}

select.form__input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238696a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.form__checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  position: relative;
  flex-shrink: 0;
}

.form__checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form__checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__checkbox:focus {
  outline: 2px solid rgba(0, 168, 132, 0.3);
  outline-offset: 2px;
}

.form__checkbox-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.form__submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.form__submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__submit-loading {
  display: none;
}

.form__message {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

.form__message--success {
  color: var(--success);
}

.form__message--error {
  color: var(--error);
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header__nav a:not(.header__cta-btn):not(.header__form-btn) {
    display: none;
  }

  .header__nav {
    gap: 8px;
  }

  .header__cta-btn,
  .header__form-btn {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }

  .feature--reverse {
    direction: ltr;
  }

  .feature__content {
    order: 1;
  }

  .feature__screenshot {
    order: 2;
  }

  .early-access__input-wrap {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 8px;
  }

  .early-access__input {
    padding: 12px 16px;
  }

  .early-access__submit {
    border-radius: var(--radius-md);
    padding: 14px;
  }

  .register {
    padding: 100px 0 60px;
  }

  .register__form {
    padding: 24px;
  }

  .form__group {
    margin-bottom: 20px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
