*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:      #2d3f4e;
  --mid:       #4a6070;
  --btn:       #5b7fb5;
  --btn-hover: #4a6da0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
  position: relative;
}

/* ── Background blobs ── */
#granim-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

.blob-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, #a8d4ee, #c8e8f5);
  border-radius: 50%;
  filter: blur(70px);
  animation: driftOne 15s ease-in-out infinite;
}

.blob-2 {
  position: absolute;
  width: 550px;
  height: 550px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle, #b8e8d0, #d4f0e4);
  border-radius: 50%;
  filter: blur(70px);
  animation: driftTwo 18s ease-in-out infinite;
}

@keyframes driftOne {
  0%   { transform: translate(0px, 0px)      scale(1);    border-radius: 50%; }
  20%  { transform: translate(-180px, 60px)  scale(1.1);  border-radius: 60% 40% 55% 45%; }
  40%  { transform: translate(-80px, 140px)  scale(0.95); border-radius: 45% 55% 40% 60%; }
  60%  { transform: translate(-220px, 40px)  scale(1.08); border-radius: 55% 45% 60% 40%; }
  80%  { transform: translate(-100px, 100px) scale(1.05); border-radius: 40% 60% 45% 55%; }
  100% { transform: translate(0px, 0px)      scale(1);    border-radius: 50%; }
}

@keyframes driftTwo {
  0%   { transform: translate(0px, 0px)      scale(1);    border-radius: 50%; }
  20%  { transform: translate(180px, -60px)  scale(1.1);  border-radius: 45% 55% 60% 40%; }
  40%  { transform: translate(80px, -140px)  scale(0.95); border-radius: 60% 40% 45% 55%; }
  60%  { transform: translate(220px, -40px)  scale(1.08); border-radius: 40% 60% 55% 45%; }
  80%  { transform: translate(100px, -100px) scale(1.05); border-radius: 55% 45% 40% 60%; }
  100% { transform: translate(0px, 0px)      scale(1);    border-radius: 50%; }
}

/* ── Watermark ── */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  width: 700px;
}

.watermark img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.35;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ── Content ── */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
  width: 100%;
  animation: fadeUp .9s ease both;
  transform: translateY(-60px);
}

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 12vw, 112px);
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 36px;
  animation: fadeUp .9s .1s ease both;
  background: linear-gradient(160deg, #202d37 0%, #4a6070 50%, #3a5060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.body-text {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.75;
  color: #3a4f5e;
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fadeUp .9s .2s ease both;
}

.body-text strong {
  color: #1e2f3a;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--btn);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 500;
  padding: 16px 52px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 18px rgba(91, 127, 181, .28);
  animation: fadeUp .9s .3s ease both;
}

.btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 127, 181, .35);
}

.btn:active {
  transform: translateY(0);
}

/* ── Modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 47, 58, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal box ── */
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 60px rgba(30, 47, 58, 0.18);
  transform: translateY(20px);
  transition: transform .3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.modal p {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 28px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.modal-close:hover {
  color: var(--dark);
}

/* ── Form ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: #f7f9fb;
  border: 1px solid #dde4ea;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  resize: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--btn);
  box-shadow: 0 0 0 3px rgba(91, 127, 181, .15);
}

.btn-send {
  width: 100%;
  background: var(--btn);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 18px rgba(91, 127, 181, .28);
}

.btn-send:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 127, 181, .35);
}

/* ── Success state ── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  text-align: center;
}

.form-success span {
  font-size: 40px;
  color: #38a878;
}

.form-success p {
  font-size: 15px;
  color: var(--dark);
  margin: 0;
}

.form-success.visible {
  display: flex;
}

.form-error {
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 12px;
  text-align: center;
}

.field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 2px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .watermark { width: 90vw; }
  .content { transform: translateY(-40px); padding: 0 20px; }
  h1 { margin-bottom: 24px; }
  .body-text { margin-bottom: 32px; }
  .btn { padding: 14px 40px; }
  .blob-1 { width: 80%; height: 50%; }
  .blob-2 { width: 75%; height: 45%; }
  .modal { padding: 28px 20px; }
  .modal h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .watermark { width: 100vw; }
  .content { transform: translateY(-30px); padding: 0 16px; }
  .btn { padding: 13px 32px; width: 100%; max-width: 280px; }
}