@import url("fonts.css");

/* --- design tokens (antoncrypto.tech) --- */
:root {
  --hero-bg: #1b1a1a;
  --text-on-dark: #ffffff;
  --text-soft-on-dark: rgba(255, 255, 255, 0.92);
  --cta-primary: #50b0e8;
  --cta-primary-hover: #0b6498;
  --cta-primary-text: #fff7f7;
  --cta-secondary: #3baeea;
  --cta-secondary-hover: #2b8bbe;
  --cta-secondary-text: #ffffff;
  --surface: #ffffff;
  --text-on-light: #1a1a1a;
  --footer-bg: #171717;
  --footer-muted: #7d7d7d;
  --cookie-bg: #ebebeb;
  --cookie-border: #999999;
  --radius-pill: 30px;
  --container: min(1200px, calc(100% - 48px));
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-on-light);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

/* --- layout --- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

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

.btn--primary {
  background: var(--cta-primary);
  color: var(--cta-primary-text);
  padding: 1rem 1.75rem;
  font-size: clamp(0.9rem, 2.5vw, 1.35rem);
  line-height: 1.25;
  max-width: 100%;
}

.btn--primary:hover {
  background: var(--cta-primary-hover);
}

.btn--secondary {
  background: var(--cta-secondary);
  color: var(--cta-secondary-text);
  padding: 1.1rem 2rem;
  font-size: clamp(0.85rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  font-weight: 500;
}

.btn--secondary:hover {
  background: var(--cta-secondary-hover);
}

.btn--wide {
  width: 100%;
  max-width: 42rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--text-on-dark);
  min-height: min(100vh, 760px);
  overflow: hidden;
}

.hero__textures {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__texture--front {
  opacity: 0.6;
  mix-blend-mode: screen;
}

.hero__bloom {
  position: absolute;
  width: min(420px, 55vw);
  height: auto;
  right: 12%;
  top: 18%;
  filter: blur(36px);
  opacity: 0.85;
}

.hero__coin {
  position: absolute;
  left: -2%;
  top: 14%;
  width: min(200px, 28vw);
  filter: blur(2px);
  opacity: 0.95;
}

.hero__deco-logo {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: min(280px, 45vw);
  opacity: 0.35;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(100vh, 760px);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.hero__title {
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.1rem;
  max-width: 44rem;
}

.hero__meta {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero__lead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 1.75rem;
  color: var(--text-soft-on-dark);
  max-width: 34rem;
}

.hero__cta {
  margin-top: 0.5rem;
}

.hero__visual {
  position: relative;
  justify-self: end;
}

.hero__photo {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero__title,
  .hero__lead,
  .hero__meta {
    margin-inline: auto;
  }

  .hero__visual {
    justify-self: center;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero__photo {
    max-width: 280px;
  }

  .hero__bloom {
    right: 5%;
    top: 10%;
  }
}

/* ========== Lead magnet ========== */
.lead {
  position: relative;
  background: var(--surface);
  padding-block: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.lead__bg {
  position: absolute;
  inset: 0;
  background: url("../img/lead-mesh-bg.png") center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.lead__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 380px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.lead__eyebrow {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 100;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.lead__title {
  font-size: clamp(1.1rem, 2.8vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0 0 1.75rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  max-width: 36rem;
}

.lead__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.lead__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 0.85rem 1rem;
}

.lead__icon {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.lead__item-text {
  margin: 0;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lead__card-img {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.15));
}

@media (max-width: 840px) {
  .lead__inner {
    grid-template-columns: 1fr;
  }

  .lead__card-wrap {
    max-width: 320px;
    margin-inline: auto;
  }

  .lead__eyebrow,
  .lead__title,
  .lead__item-text {
    text-align: left;
  }
}

/* ========== Channel value ========== */
.channel {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  color: var(--text-on-dark);
  overflow: hidden;
}

.channel__bg {
  position: absolute;
  inset: 0;
  background: url("../img/channel-mesh-bg.png") center / cover no-repeat;
}

.channel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35));
}

.channel .container {
  position: relative;
  z-index: 1;
}

.channel__title {
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 52rem;
}

.channel__title .hl {
  font-weight: 900;
}

.channel__title .muted {
  font-weight: 400;
}

.channel__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
}

.channel__bullets li {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 52rem;
  padding-left: 0;
}

.channel__cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

/* ========== Cookie ========== */
.cookie {
  position: fixed;
  z-index: 100;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(520px, calc(100% - 2rem));
  background: var(--cookie-bg);
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #333;
}

.cookie[hidden] {
  display: none;
}

.cookie__text {
  flex: 1 1 200px;
  margin: 0;
}

.cookie__ok {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  color: #555;
  background: var(--cookie-bg);
  border: 1px solid var(--cookie-border);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cookie__ok:hover {
  color: #111;
  border-color: #111;
  background: #e8e8e8;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-on-dark);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__legal {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  max-width: 42rem;
}

.site-footer__legal a {
  text-decoration: none;
}

.site-footer__meta {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--footer-muted);
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 640px) {
  .site-footer__grid {
    flex-direction: column;
  }
}

/* ========== Subscribe modal ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: var(--font);
}

.modal.is-open {
  display: flex;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(145deg, rgba(35, 34, 34, 0.97) 0%, rgba(27, 26, 26, 0.98) 100%);
  border: 1px solid rgba(80, 176, 232, 0.35);
  border-radius: 20px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: var(--text-on-dark);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  font-family: var(--font);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: rgba(80, 176, 232, 0.25);
  color: var(--cta-primary-text);
}

.modal__title {
  margin: 0 2rem 0.75rem 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-on-dark);
}

.modal__lead {
  margin: 0 0 1.35rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-soft-on-dark);
}

.subscribe-form__field {
  margin-bottom: 1.1rem;
}

.subscribe-form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.subscribe-form__input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-on-dark);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.subscribe-form__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.subscribe-form__input:hover {
  border-color: rgba(80, 176, 232, 0.45);
}

.subscribe-form__input:focus {
  border-color: var(--cta-primary);
  box-shadow: 0 0 0 3px rgba(80, 176, 232, 0.25);
  background: rgba(0, 0, 0, 0.45);
}

.subscribe-form__error {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffb4b4;
}

.subscribe-form__submit {
  margin-top: 0.25rem;
}

/* ========== Thank you page ========== */
.thank-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  color: var(--text-on-dark);
  overflow: hidden;
}

.thank-page__bg {
  position: absolute;
  inset: 0;
  background: url("../img/channel-mesh-bg.png") center / cover no-repeat;
}

.thank-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 26, 26, 0.82), rgba(10, 10, 10, 0.92));
}

.thank-page__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
}

.thank-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.thank-page__text {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-soft-on-dark);
}

.thank-page__back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cta-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.thank-page__back:hover {
  color: var(--cta-secondary);
}
