:root {
  color-scheme: light;
  --page-start: #f8fafc;
  --page-end: #eef2f7;
  --ink: #334155;
  --muted: #64748b;
  --line: #d8e0ea;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --logo-blue: #1f3c5f;
  --accent: var(--logo-blue);
  --accent-strong: #18304c;
  --accent-soft: rgba(31, 60, 95, 0.16);
  --error: #b42318;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --logo-offset-x: 0px;
  --logo-offset-y: 0px;
  --logo-rotate-x: 0deg;
  --logo-rotate-y: 0deg;
  --title-offset-x: 0px;
  --title-offset-y: 0px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--page-start), var(--page-end));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.hero {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 32px;
}

.logo-stage {
  width: min(100%, 480px);
  transform-style: preserve-3d;
  transform: perspective(1000px)
    translate3d(var(--logo-offset-x), calc(var(--logo-offset-y) - 8px), 0)
    rotateX(var(--logo-rotate-x)) rotateY(var(--logo-rotate-y));
  transition: transform 240ms ease-out, filter 180ms ease;
  will-change: transform;
}

.logo-stage:hover,
.logo-stage:focus-within {
  filter: drop-shadow(0 18px 24px rgba(31, 60, 95, 0.14));
  transform: perspective(1000px)
    translate3d(var(--logo-offset-x), calc(var(--logo-offset-y) - 12px), 0)
    rotateX(calc(var(--logo-rotate-x) + 2deg))
    rotateY(calc(var(--logo-rotate-y) - 3deg)) scale(1.018);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.intro {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--muted);
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
  transform: translate3d(var(--title-offset-x), var(--title-offset-y), 0);
  transition: transform 260ms ease-out;
  will-change: transform;
}

.intro p {
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
}

.contact-card {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(216, 224, 234, 0.86);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.form-heading {
  display: grid;
}

.form-heading h2 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 136px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cf-turnstile {
  min-height: 65px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--accent-strong);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.status[data-tone="success"] {
  color: var(--accent-strong);
}

.status[data-tone="error"] {
  color: var(--error);
}

@media (max-width: 640px) {
  .page-shell {
    padding: 40px 16px;
  }

  .hero {
    gap: 28px;
  }

  .contact-card {
    padding: 20px;
  }

  .field-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-stage,
  h1,
  button,
  input,
  textarea {
    transition: none;
  }

  .logo-stage,
  .logo-stage:hover,
  .logo-stage:focus-within,
  h1 {
    transform: none;
  }
}
