:root {
  --bg: #060b0d;
  --card: #10191c;
  --cyan: #42b7b5;
  --cyan-bright: #59d0cc;
  --cyan-deep: #287a79;
  --text: #f7fafb;
  --muted: #9caeb3;
  --border: #233438;
  --success: #74cfa6;
  --panel: rgba(16, 25, 28, 0.72);
  --panel-border: rgba(66, 183, 181, 0.35);
  --glow: rgba(66, 183, 181, 0.4);
  --font-body: "Inter", sans-serif;
  --font-display: "Montserrat", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../background2.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 3vh, 2rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vh, 3.25rem);
}

/* ——— Brand ——— */
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
  animation: fade-down 0.8s ease both;
}

.brand__logo {
  width: 64px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(66, 183, 181, 0.55));
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text);
  /* Optical center with logo mark (mass sits slightly high in the icon) */
  transform: translateY(2px);
}

.brand__tld {
  color: var(--cyan);
  font-weight: 500;
}

/* ——— Hero ——— */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 2rem) 0 clamp(0.5rem, 2vh, 1.25rem);
  animation: fade-up 0.9s 0.1s ease both;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.2vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.hero__lead {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  max-width: 34em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: rgba(6, 11, 13, 0.4);
  box-shadow:
    0 0 0 1px rgba(66, 183, 181, 0.08),
    0 0 22px rgba(66, 183, 181, 0.16);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 1.8s ease-in-out infinite;
}

.status__label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.hero__thanks {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.notify {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.45rem;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(66, 183, 181, 0.12);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.notify:hover {
  border-color: var(--cyan-bright);
  background: rgba(16, 25, 28, 0.65);
  color: var(--cyan-bright);
  box-shadow: 0 0 24px rgba(66, 183, 181, 0.28);
  transform: translateY(-1px);
}

.notify:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

.notify__icon {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(66, 183, 181, 0.45));
}

/* ——— Features ——— */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1240px, 96%);
  margin-top: auto;
  margin-bottom: 0.75rem;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 40px rgba(66, 183, 181, 0.08),
    inset 0 1px 0 rgba(66, 183, 181, 0.08);
  position: relative;
  animation: fade-up 1s 0.2s ease both;
}

.features::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 22px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 2px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right / 22px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right / 2px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 2px 22px no-repeat;
  filter: drop-shadow(0 0 6px rgba(66, 183, 181, 0.55));
  opacity: 0.9;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1.1rem 1.45rem;
  position: relative;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(66, 183, 181, 0.28),
    transparent
  );
}

.feature__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 0 12px rgba(66, 183, 181, 0.4));
}

.feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

.feature__text {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  max-width: 16em;
}

/* ——— Footer ——— */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-bottom: 0.5rem;
  animation: fade-up 1s 0.3s ease both;
}

.footer__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(66, 183, 181, 0.45));
}

.footer__text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.footer__link {
  color: var(--cyan-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Motion ——— */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--glow);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 16px var(--glow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .hero,
  .features,
  .footer,
  .status__dot {
    animation: none;
  }

  .notify:hover {
    transform: none;
  }
}

/* ——— Responsive ——— */
@media (max-width: 820px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2)::after {
    display: none;
  }

  .feature:nth-child(1)::after,
  .feature:nth-child(3)::after {
    height: 50%;
    top: 25%;
  }
}

@media (max-width: 520px) {
  .hero__lead br {
    display: none;
  }

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

  .feature:not(:last-child)::after {
    display: none;
  }

  .feature:not(:last-child) {
    border-bottom: 1px solid rgba(66, 183, 181, 0.15);
  }

  .notify {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

/* ——— Notify modal ——— */
body.modal-open {
  overflow: hidden;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 11, 13, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-up 0.25s ease both;
}

.modal__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 1.6rem 1.5rem 1.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(16, 25, 28, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(66, 183, 181, 0.1);
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  color: var(--text);
}

.modal__title {
  margin: 0 1.5rem 0.4rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

.modal__lead {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.modal__label {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.modal__optional {
  font-weight: 400;
  color: var(--muted);
}

.modal__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 11, 13, 0.65);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal__textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.45;
}

.modal__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(66, 183, 181, 0.15);
}

.modal__input[aria-invalid="true"] {
  border-color: #c86b6b;
}

.modal__error {
  min-height: 1.1em;
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: #e08a8a;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.modal__btn {
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modal__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.modal__btn--ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.modal__btn--ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}

.modal__btn--primary {
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: var(--bg);
}

.modal__btn--primary:hover:not(:disabled) {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
}

.modal__status {
  min-height: 1.2em;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.modal__status--ok {
  color: var(--success);
}

.modal__status--error {
  color: #e08a8a;
}
