/* Base & layout */
html { min-height: 100%; }
body {
  min-height: 100vh;
  font-family: 'Roboto', system-ui, sans-serif;
  overflow-x: hidden;
  background-color: #05060A;
  background-attachment: fixed;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 15%, rgba(88, 28, 135, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 85% 25%, rgba(30, 58, 138, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 65% 50% at 55% 85%, rgba(88, 28, 135, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(128, 26, 255, 0.2) 0%, transparent 65%);
}

p {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
}

.page { min-height: 100vh; position: relative; overflow-x: hidden; }

/* Hero */
.hero { display: flex; align-items: flex-start; justify-content: center; padding-top: 0.75rem; padding-bottom: 4vh; overflow: visible; }
@media (min-width: 768px) { .hero { padding-top: 3rem; padding-bottom: 11vh; } }
.hero-inner { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: top; }
@media (min-width: 768px) { .hero-inner { transform: scale(1.3); } }
.hero-canvas { display: block; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2rem; }
@media (min-width: 768px) { .hero-text { padding-bottom: 3rem; } }
.hero-logo {
  width: 0.82em;
  height: 0.82em;
  margin-right: 7px;
  vertical-align: baseline;
  transform: translateY(0px);
  color: #a78bfa;
}
.hero-title { font-family: 'Oswald', sans-serif; font-size: 1.875rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1; text-align: center; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); margin: 0; }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-title .violet { color: #a78bfa; }
.hero-title .white { color: #fff; }
.hero-subtitle { font-family: 'Oswald', sans-serif; font-size: 1.3125rem; color: rgba(255,255,255,0.8); margin: 0.125rem 0 0; letter-spacing: 0.05em; padding-top: 3px; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.5rem; } }

/* Content section */
.content-section { font-family: 'Roboto', sans-serif; padding: .25rem 1.5rem 4rem; max-width: 96rem; margin: 0 auto; min-height: 28rem; }
@media (min-width: 768px) { .content-section { padding: 4rem 3rem 4rem; } }
@media (min-width: 1024px) { .content-section { padding-left: 4rem; padding-right: 4rem; } }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .content-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
@media (min-width: 1280px) { .content-grid { grid-template-columns: repeat(4, 1fr); gap: 3.5rem; } }
.block-title { font-size: 1.25rem; font-weight: 400; color: #fff; margin: 0 0 1rem; letter-spacing: 0.02em; }
@media (min-width: 768px) { .block-title { font-size: 1.5rem; } }
.block-text { font-size: 1rem; line-height: 1.625; color: rgba(255,255,255,0.8); margin: 0; min-height: 10.5rem; }
@media (min-width: 768px) { .block-text { font-size: 1.125rem; min-height: 11.5rem; } }
.stream-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* CTA */
.cta-bar { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .cta-bar { margin-top: 3.5rem; } }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem; font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 300;
  letter-spacing: 0.06em; color: #E879F9; border: 1px solid currentColor; border-radius: 9999px;
  cursor: pointer; background: transparent; transition: color 0.2s, transform 0.2s;
}
.cta-btn:hover { color: #fff; transform: translateY(-1px); }
.cta-btn:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 3px;
}
.cta-btn__icon { width: 1.25rem; height: 1.25rem; }

/* Footer */
.footer-block { padding: 2rem 1.5rem; border-top: 0; }
@media (min-width: 768px) { .footer-block { padding: 2.5rem 3rem; } }
@media (min-width: 1024px) { .footer-block { padding-left: 4rem; padding-right: 4rem; } }
.footer-inner { max-width: 96rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-copy { color: #E879F9; font-size: 0.875rem; text-align: center; margin: 0; }
@media (min-width: 768px) { .footer-copy { text-align: left; } }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; font-size: 0.875rem; }
@media (min-width: 768px) { .footer-links { gap: 1.5rem; } }
.footer-links a { display: flex; align-items: center; gap: 0.5rem; color: #E879F9; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-links a:focus-visible {
  color: #fff;
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 3px;
  border-radius: 0.375rem;
}
.footer-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse 60% 45% at 50% 35%, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 55% 60%, rgba(232, 121, 249, 0.10) 0%, transparent 62%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px) saturate(1.15);
}
.hidden { display: none !important; }
.modal-overlay.hidden { display: none; }
.modal-box {
  width: 100%; max-width: 28rem;
  padding: 1.5rem 1.5rem 2rem;
  border-radius: 1rem;
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  background-color: #141027;
  background:
    #141027 padding-box,
    linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(232, 121, 249, 0.78)) border-box;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  backdrop-filter: none;
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 34px rgba(139, 92, 246, 0.18),
    0 0 26px rgba(232, 121, 249, 0.12);
  font-family: 'Roboto', sans-serif;
}
.modal-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(1rem + 1px);
  pointer-events: none;
  border: 1px solid rgba(232, 121, 249, 0.32);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.18) inset,
    0 0 28px rgba(232, 121, 249, 0.12);
}
@media (min-width: 768px) { .modal-box { padding: 2rem 2rem 2.25rem; } }
.modal-overlay:not(.hidden) .modal-box {
  animation: modal-pop 180ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay:not(.hidden) .modal-box { animation: none; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem; font-weight: 400;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 1.5rem;
}
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-form .row label {
  display: block;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.375rem;
}
.modal-form .row input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-family: 'Roboto', sans-serif; font-size: 1rem;
  color: #fff;
  background: rgba(16, 14, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.15) inset;
  backdrop-filter: blur(10px) saturate(1.1);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.modal-form .row input::placeholder { color: rgba(255, 255, 255, 0.4); }
.modal-form .row input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.modal-form .row input:-webkit-autofill,
.modal-form .row input:-webkit-autofill:hover,
.modal-form .row input:-webkit-autofill:focus,
.modal-form .row input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  /* Override Chrome autofill without turning the field into a black block */
  -webkit-box-shadow:
    0 0 0 1000px rgba(16, 14, 30, 0.82) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 26px rgba(139, 92, 246, 0.10) inset,
    0 0 18px rgba(232, 121, 249, 0.06) inset;
  box-shadow:
    0 0 0 1000px rgba(16, 14, 30, 0.82) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 26px rgba(139, 92, 246, 0.10) inset,
    0 0 18px rgba(232, 121, 249, 0.06) inset;
  border-color: rgba(255, 255, 255, 0.20);
  transition: background-color 9999s ease-out 0s;
}
.modal-form .row input:autofill {
  border-color: rgba(255, 255, 255, 0.20);
}
.modal-form .row input:focus {
  outline: none;
  background: rgba(18, 16, 36, 0.86);
  border-color: rgba(232, 121, 249, 0.75);
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.18),
    0 0 0 1px rgba(232, 121, 249, 0.10) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
}
.modal-form .row input:invalid:not(:placeholder-shown) {
  border-color: rgba(248, 113, 113, 0.5);
}
.modal-form .row + .row { margin-top: 0; }
.modal-error {
  margin: 0.125rem 0 0;
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1.4;
}
.modal-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.modal-actions .submit {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 300;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  background: linear-gradient(135deg, #8B5CF6, #E879F9);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.22), 0 10px 24px rgba(232, 121, 249, 0.12);
  transition: opacity 0.2s, transform 0.2s, filter 0.2s;
}
.modal-actions .submit:hover { filter: brightness(1.03) saturate(1.05); transform: translateY(-1px); }
.modal-actions .submit:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 3px;
}
.modal-actions .submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.modal-actions .cancel {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 300;
  letter-spacing: 0.06em;
  color: #E879F9;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.modal-actions .cancel:hover { color: #fff; transform: translateY(-1px); }
.modal-actions .cancel:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 3px;
}

/* Modal success state */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 10.5rem;
  text-align: center;
}
.modal-success__text {
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.modal-success__ok {
  min-width: 6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  background: linear-gradient(135deg, #8B5CF6, #E879F9);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.22), 0 10px 24px rgba(232, 121, 249, 0.12);
  transition: opacity 0.2s, transform 0.2s, filter 0.2s;
}
.modal-success__ok:hover { filter: brightness(1.03) saturate(1.05); transform: translateY(-1px); }
.modal-success__ok:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 3px;
}
