:root {
  --bg1:#f7fbff;
  --ink:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --brand:#0ea5e9;
  --radius:18px;
}

*{box-sizing:border-box}

body {
  margin:0;
  font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(800px 400px at 20% 10%, #e0f2fe 0%, transparent 60%),
    linear-gradient(#f7fbff,#ffffff);
}

a { color: inherit; text-decoration: none; }

header {
  position:sticky; top:0;
  background:rgba(247,251,255,.9);
  border-bottom:1px solid var(--line);
}

.nav {
  max-width:1100px;
  margin:auto;
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand {
  font-weight:800;
  letter-spacing:-.02em;
}

.pill {
  padding:8px 14px;
  border-radius:999px;
  background:white;
  border:1px solid var(--line);
  font-weight:700;
}

.wrap {
  max-width:1100px;
  margin:auto;
  padding:40px 18px 60px;
}

.hero {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
}

@media(max-width:900px){
  .hero{grid-template-columns:1fr}
}

h1 {
  font-size:clamp(32px,4vw,46px);
  line-height:1.1;
  letter-spacing:-.03em;
}

.sub {
  color:var(--muted);
  max-width:55ch;
  margin:12px 0 20px;
}

.btn {
  display:inline-block;
  padding:12px 16px;
  border-radius:12px;
  background:linear-gradient(135deg,#0ea5e9,#60a5fa);
  color:white;
  font-weight:800;
  box-shadow:0 14px 32px rgba(2,6,23,.15);
}

.card {
  background:white;
  border-radius:var(--radius);
  padding:16px;
  border:1px solid var(--line);
  box-shadow:0 20px 50px rgba(2,6,23,.1);
}

.card img {
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  margin-bottom:14px;
}

form {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

input {
  flex:1 1 160px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
}

.hp { display:none; }

.features {
  margin-top:50px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

@media(max-width:900px){
  .features{grid-template-columns:1fr}
}

.feature {
  background:white;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line);
}

.feature h3 {
  margin:0 0 6px;
}

.feature p {
  margin:0;
  color:var(--muted);
}

.msg {
  margin:10px 0;
  padding:12px;
  border-radius:12px;
  font-weight:700;
}

.msg.ok {
  background:#f0fdf4;
  border:1px solid #bbf7d0;
}

.msg.err {
  background:#fff1f2;
  border:1px solid #fecaca;
}

footer {
  margin-top:50px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
}

textarea {
  flex: 1 1 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  resize: vertical;
  min-height: 90px;
  font: inherit;
}

.charhint{
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

