:root {
  --navy: #16304f;
  --navy-dark: #0d2036;
  --blue: #2e86c1;
  --tan: #ab9271;
  --tan-light: #d9c8ab;
  --white: #ffffff;
  --ink: #445a70;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font: 100%/1.5 var(--font);
  color: var(--navy);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
}

/* Ambient backdrop — soft color drawn from the mark, not decoration for its own sake */
.bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1c3d63 100%);
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-1 {
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.glow-2 {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, var(--tan) 0%, transparent 70%);
  bottom: -12%;
  right: -8%;
}

.glow-3 {
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, var(--tan-light) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  opacity: 0.22;
}

@media (prefers-reduced-motion: no-preference) {
  .glow {
    animation: drift 22s ease-in-out infinite;
  }
  .glow-2 { animation-delay: -7s; }
  .glow-3 { animation-delay: -14s; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 4%) scale(1.06); }
}

/* Card — a material, not a box: layered, translucent, catching light at the top edge */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  place-items: center;
}

.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 24px 70px -16px rgba(13, 32, 54, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
  padding: clamp(36px, 6vw, 64px) clamp(28px, 6vw, 56px);
  max-width: 580px;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: materialize 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    opacity: 1;
    animation: none;
  }
}

@keyframes materialize {
  from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Reduced transparency: solid material, defined edge, no blur */
@media (prefers-reduced-transparency: reduce) {
  .card {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(22, 48, 79, 0.12);
  }
}

@media (prefers-contrast: more) {
  .card {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1.5px solid var(--navy);
  }
}

.logo {
  max-width: 210px;
  width: 55%;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(46,134,193,0.12), rgba(171,146,113,0.16));
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-out infinite; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 134, 193, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 134, 193, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 134, 193, 0); }
}

/* Type: optical sizing by hand — tracking and leading move opposite to size */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 6px;
}

.tagline {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--tan);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}

.message {
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 44ch;
  margin: 0 auto 34px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Response: feedback lands the instant a finger/pointer is down, not on release */
.btn, .contact-card, .instagram-link {
  transition: transform 100ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out, color 150ms ease-out;
}

.btn:active, .contact-card:active, .instagram-link:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 12px;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 130%);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(22, 48, 79, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(22, 48, 79, 0.6);
}

.btn-primary:active {
  box-shadow: 0 6px 14px -8px rgba(22, 48, 79, 0.5);
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  background: rgba(22, 48, 79, 0.045);
  border: 1px solid rgba(22, 48, 79, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(46, 134, 193, 0.06);
}

.contact-name {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.contact-email {
  font-size: 0.8rem;
  color: var(--ink);
  word-break: break-word;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  color: var(--navy);
  border-radius: 8px;
}

.instagram-link svg {
  width: 19px;
  height: 19px;
}

.instagram-link:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

footer {
  margin-top: 38px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: #9aa7b3;
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
  .contacts {
    grid-template-columns: 1fr;
  }
}
