@font-face {
  font-family: TamilUI;
  src: url("../fonts/Nirmala.ttc");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: TamilUI, Latha, system-ui, sans-serif; }
body { background: #190000; color: #fff; }

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #220000;
}

.banner {
  width: min(100vw, 650px);
  height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.04);
}

.cta {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  text-decoration: none;
  color: #7a0000;
  background: linear-gradient(135deg, #fff8dc, #ffd85c);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(0,0,0,.45), inset 0 1px 0 #fff;
  white-space: nowrap;
}

.form-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,220,80,.28), transparent 25rem),
    linear-gradient(135deg, #4b0000, #d00000 48%, #047ad7);
  padding: 28px 14px;
}

.shell { width: min(860px, 100%); margin: 0 auto; }
.form-card {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 28px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  padding: clamp(18px, 4vw, 34px);
}

h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 48px); line-height: 1.12; }
p { margin: 0 0 22px; color: rgba(255,255,255,.84); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compact-grid { align-items: start; }
label { display: grid; gap: 7px; font-weight: 850; font-size: 16px; letter-spacing: .01em; }
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 12px 15px;
  background: rgba(255,255,255,.92);
  color: #170000;
  font: 700 17px TamilUI, Latha, system-ui, sans-serif;
  outline: none;
}
input:focus { box-shadow: 0 0 0 4px rgba(255,216,92,.35); border-color: #ffd85c; }
small { min-height: 22px; color: #ffe987; font-size: 16px; font-weight: 850; }
.wide, .photo { grid-column: 1 / -1; }
.message { min-height: 26px; margin: 14px 0 8px; color: #fff2a8; font-weight: 850; }
.submit, .download, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  padding: 13px 22px;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}
.submit {
  width: 100%;
  background: linear-gradient(135deg, #ffe45e, #fff7c1);
  color: #7a0000;
}
.submit:disabled { opacity: .7; cursor: wait; }
.result {
  margin-top: 24px;
  padding: 22px;
  background: rgba(0,0,0,.25);
  border-radius: 20px;
}
.result h2 { margin: 0 0 14px; }
.download {
  margin: 6px 8px 6px 0;
  color: #fff;
  background: #0076d6;
  text-decoration: none;
}
.ghost { background: rgba(255,255,255,.9); color: #660000; }

.powered-by {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  padding: 9px 14px;
  border: 1px solid rgba(255, 232, 135, .46);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 0, 0, .64), rgba(255, 255, 255, .14));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,.82);
  font: 800 12px/1.2 system-ui, sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.powered-by a {
  color: #ffe36b;
  text-decoration: none;
  margin-left: 4px;
}

.powered-by a:hover,
.powered-by a:focus-visible {
  color: #fff6bf;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .form-page { padding: 10px; }
  .form-card { border-radius: 22px; }
  .banner { width: 100vw; }
  .download, .ghost { width: 100%; margin-right: 0; }
  p { margin-bottom: 16px; }
  input { min-height: 48px; border-radius: 14px; }
  .form-page { padding-bottom: 58px; }
  .powered-by {
    right: 10px;
    bottom: 8px;
    max-width: calc(100vw - 20px);
    font-size: 11px;
  }
}
