@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;700;900&display=swap');

:root {
  --bg: #152040;
  --paper: #213262;
  --ink: #ffffff;
  --muted: #AFBDE5;
  --line: #5F7ACB;
  --accent: #E31C21;
  --accent-2: #5F7ACB;
  --accent-yellow: #FFDC21;
  --danger: #E31C21;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

/* Subtle background texture */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(95, 122, 203, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(95, 122, 203, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(95, 122, 203, 0.02) 40px,
      rgba(95, 122, 203, 0.02) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(95, 122, 203, 0.02) 40px,
      rgba(95, 122, 203, 0.02) 41px
    );
}

/* Brand header */
.brand-header {
  background: linear-gradient(180deg, #1a2850, #213262);
  border-bottom: 2px solid #5F7ACB;
  text-align: center;
  padding: 20px 16px 16px;
  position: relative;
  z-index: 10;
}

.brand-logo {
  display: block;
  margin: 0 auto 10px;
  max-height: 60px;
  width: auto;
}

.brand-name {
  margin: 0 0 2px;
  font-family: 'Bitter', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.brand-tagline {
  margin: 0;
  font-family: 'Bitter', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--accent-yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero background image section */
.hero-bg {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  background:
    url('https://static.wixstatic.com/media/a6cb0c_021221e1c03747d08bd0b30d6ef39a99~mv2.jpeg')
    center center / cover no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 32, 64, 0.88) 0%,
    rgba(21, 32, 64, 0.78) 50%,
    rgba(21, 32, 64, 0.92) 100%
  );
  z-index: 1;
}

.hero-bg-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

/* Wave separator between hero and content */
.wave-separator {
  margin-top: -2px;
  line-height: 0;
  background: linear-gradient(180deg, rgba(21, 32, 64, 0.92), var(--bg));
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* Shell */
.shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 64px;
}

/* Hero text */
.hero {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.eyebrow-pill {
  display: inline-block;
  background: rgba(255, 220, 33, 0.15);
  color: var(--accent-yellow);
  padding: 5px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Bitter', serif;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255, 220, 33, 0.3);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.05;
  font-family: 'Bitter', serif;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  max-width: 14ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* How it works section */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(95, 122, 203, 0.2);
}

.how-step {
  text-align: center;
  padding: 20px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 50, 98, 0.5), rgba(33, 50, 98, 0.2));
  border: 1px solid rgba(95, 122, 203, 0.15);
  transition: border-color 0.2s, transform 0.2s;
}

.how-step:hover {
  border-color: rgba(95, 122, 203, 0.35);
  transform: translateY(-2px);
}

.how-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 220, 33, 0.08);
  border: 1px solid rgba(255, 220, 33, 0.2);
}

.how-title {
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-yellow);
  margin: 0 0 6px;
}

.how-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Card with accent border and gradient */
.card {
  background: linear-gradient(180deg, rgba(33, 50, 98, 0.95), rgba(33, 50, 98, 0.8));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-yellow);
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(95, 122, 203, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  margin-bottom: 20px;
  position: relative;
}

/* Heading icon */
.heading-icon {
  flex-shrink: 0;
}

/* Field icons */
.field-icon {
  vertical-align: -2px;
  margin-right: 3px;
}

/* Button icons */
.btn-icon {
  vertical-align: -3px;
  margin-right: 6px;
}

.stack {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
  font-family: 'Bitter', serif;
  color: var(--muted);
}

textarea,
select,
input,
.secret {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: rgba(21, 32, 64, 0.8);
  color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus,
select:focus,
input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(255, 220, 33, 0.2), 0 0 16px rgba(255, 220, 33, 0.08);
}

textarea {
  resize: vertical;
  min-height: 180px;
}

select option {
  background: #213262;
  color: #ffffff;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font: inherit;
  font-family: 'Bitter', serif;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #e83030, #c41818);
  color: white;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(227, 28, 33, 0.35);
}

.button:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227, 28, 33, 0.45);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.secondary {
  background: linear-gradient(180deg, #6b88d6, #5070c0);
  box-shadow: 0 4px 14px rgba(95, 122, 203, 0.3);
}

.button.secondary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(95, 122, 203, 0.4);
}

.status,
.note {
  color: var(--muted);
}

.status.error {
  color: #ff6b6b;
}

.hidden {
  display: none;
}

.result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.secret {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0d1628;
  color: var(--accent-yellow);
  min-height: 140px;
  border: 1px solid var(--line);
}

.note-inline {
  font-weight: 400;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 16px 28px;
  border-top: 1px solid rgba(95, 122, 203, 0.25);
  background: linear-gradient(180deg, transparent, rgba(33, 50, 98, 0.3));
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-logo {
  display: block;
  margin: 0 auto 12px;
  max-height: 40px;
  width: auto;
  opacity: 0.7;
}

.footer-info {
  margin-bottom: 16px;
}

.footer-company {
  margin: 0 0 4px;
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.footer-address,
.footer-phone {
  margin: 0 0 2px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.footer-link {
  margin: 4px 0 0;
  font-size: 0.8rem;
}

.footer-link a {
  color: var(--accent-yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 220, 33, 0.3);
  transition: border-color 0.2s;
}

.footer-link a:hover {
  border-color: var(--accent-yellow);
}

.footer-powered {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(175, 189, 229, 0.5);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-bg {
    min-height: 280px;
  }

  .hero-bg-content {
    width: min(100% - 20px, 100%);
    padding: 36px 0 28px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .shell {
    width: min(100% - 20px, 100%);
    padding-top: 8px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .how-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    text-align: left;
    gap: 0 14px;
    padding: 16px;
  }

  .how-icon {
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
  }

  .how-title {
    align-self: end;
  }

  .how-desc {
    align-self: start;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }
}
