:root{
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe7f3;
  --bandA: #64b5e6;
  --bandB: #0099e5;
  --shadow: 0 18px 60px rgba(2, 20, 60, 0.10);

  --radius: 18px;
  --btnRadius: 14px;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% 18%, rgba(100,181,230,0.18), rgba(255,255,255,0) 60%),
    radial-gradient(900px 420px at 50% 95%, rgba(100,181,230,0.12), rgba(255,255,255,0) 60%),
    var(--bg);
}

.top-band{
  height: 22px;
  background: linear-gradient(90deg, var(--bandA), var(--bandB));
}

.wrap{
  min-height: calc(100% - 22px);
  display: grid;
  place-items: center;
  padding: 28px 16px 48px;
}

.card{
  width: min(820px, 100%);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(219,231,243,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  backdrop-filter: blur(6px);
}

.logo{
  width: min(420px, 80%);
  height: auto;
  display: block;
  margin: 6px auto 18px;
}

h1{
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.sub{
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.divider{
  width: min(520px, 92%);
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, rgba(219,231,243,0), rgba(219,231,243,1), rgba(219,231,243,0));
}

.body{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.email{
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
}

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

.email a,
.small a{
  border-bottom: 1px dashed rgba(0,153,229,0.55);
  padding-bottom: 2px;
}

.email a:hover,
.small a:hover{
  border-bottom-style: solid;
}

.actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.btn{
  border: 1px solid rgba(2, 20, 60, 0.15);
  background: #fff;
  color: var(--ink);
  border-radius: var(--btnRadius);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 20px rgba(2, 20, 60, 0.08);
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,153,229,0.45);
  box-shadow: 0 12px 26px rgba(2, 20, 60, 0.10);
}

.btn:active{ transform: translateY(0); }

.btn.primary{
  background: linear-gradient(90deg, var(--bandA), var(--bandB));
  color: #fff;
  border-color: transparent;
}

.btn.ghost{
  background: transparent;
  box-shadow: none;
}

.alert{
  margin: 18px auto 0;
  width: min(560px, 100%);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  text-align: left;
}

.alert.success{
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
}

.alert.error{
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #7f1d1d;
}

/* Contact form (hidden until opened) */
.contact{
  margin: 18px auto 0;
  width: min(640px, 100%);
  text-align: left;

  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.contact.show{
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label span{
  display: block;
  font-size: 13px;
  color: rgba(71,85,105,0.9);
  margin: 0 0 6px;
  font-weight: 700;
}

input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(2, 20, 60, 0.15);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,0.95);
}

input:focus, textarea:focus{
  border-color: rgba(0,153,229,0.55);
  box-shadow: 0 0 0 4px rgba(0,153,229,0.12);
}

.full{ grid-column: 1 / -1; }

.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.small{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(71,85,105,0.85);
}

.footer{
  margin: 22px 0 0;
  font-size: 13px;
  color: rgba(71,85,105,0.7);
  text-align: center;
}

/* Honeypot should be invisible to humans */
.honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Mobile */
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .form-actions{ flex-direction: column; align-items: stretch; }
}
