@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
:root {
  --bg: #0E1512;
  --surface: #15201C;
  --ink: #E8F0EC;
  --muted: #849185;
  --accent: #4FB891;
  --accent-2: #7BD3B0;
  --border: #27332D;
  --on-accent: #0E1512;
  --fh: 'JetBrains Mono', ui-monospace, monospace;
  --fb: 'Inter', system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--fb); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(600px 500px at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(500px 400px at 85% 85%, color-mix(in srgb, var(--accent-2) 15%, transparent), transparent 60%);
  pointer-events: none; z-index: 0;
}

.top {
  position: relative; z-index: 2;
  padding: 22px clamp(20px, 4vw, 40px);
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-family: var(--fh); font-weight: 700; color: var(--ink); font-size: 1rem; }
.top > div { display: flex; gap: 20px; }
.top a { font-size: 0.9rem; color: var(--muted); }
.top a:hover { color: var(--ink); }
.top .brand:hover { color: var(--ink); }

.stage {
  position: relative; z-index: 2;
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) clamp(20px, 4vw, 40px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.stage > * { animation: rise .8s ease backwards; }
.stage > *:nth-child(1) { animation-delay: .1s; }
.stage > *:nth-child(2) { animation-delay: .2s; }
.stage > *:nth-child(3) { animation-delay: .3s; }
.stage > *:nth-child(4) { animation-delay: .42s; }
.stage > *:nth-child(5) { animation-delay: .55s; }

.tag {
  font-family: var(--fh); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.head {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.sub { color: var(--muted); margin: 0 0 16px; font-size: 1.08rem; }

.mail-big {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 34px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 20px;
  font-family: var(--fh); font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--ink) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  transition: transform .2s, background .2s;
  word-break: break-all;
}
.mail-big:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }
.mail-big svg { flex-shrink: 0; }

.drop {
  margin-top: 8px; width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}
.drop summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--fh); font-weight: 600;
  color: var(--ink);
  transition: background .15s;
}
.drop summary::-webkit-details-marker { display: none; }
.drop summary:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.drop[open] summary svg { transform: rotate(180deg); }
.drop summary svg { color: var(--muted); transition: transform .2s; }
.drop form { padding: 6px 22px 22px; display: grid; gap: 14px; }
.field label { display: block; font-family: var(--fh); font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.err { display: block; min-height: 18px; margin-top: 4px; font-size: 0.8rem; color: #d9534f; }

.btn {
  padding: 12px 24px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--fh); font-weight: 600; cursor: pointer;
  font-size: 0.95rem;
  justify-self: flex-start;
  transition: transform .18s, background .18s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--accent-2); }
.btn:disabled { opacity: 0.6; }
.stat { min-height: 18px; font-size: 0.86rem; color: var(--muted); margin: 0; }

.ok { padding: 12px 0; }
.ok h3 { font-family: var(--fh); margin: 0 0 6px; color: var(--ink); }
.ok p { margin: 0; color: var(--muted); }
.ok strong { color: var(--ink); }

.bot {
  position: relative; z-index: 2;
  padding: 18px clamp(20px, 4vw, 40px);
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: var(--muted);
  border-top: 1px solid var(--border);
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
