@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #0f0e0c;
  --ink-soft: #6b6860;
  --accent: #ff5c00;
  --accent-hover: #e04e00;
  --border: #e4e2dc;
  --radius: 14px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

/* NAV */
nav {
  background: var(--ink);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

/* PAGE WRAPPER */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* TOOL CARD */
.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* HEADINGS */
.page-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--ink-soft);
  font-size: 0.975rem;
  margin-bottom: 32px;
  font-weight: 300;
}

/* INPUTS */
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg);
  border-color: var(--ink);
}

/* RESULT BOX */
.result-box {
  margin-top: 28px;
  padding: 24px;
  background: var(--ink);
  border-radius: 12px;
  display: none;
}

.result-box.show { display: block; }

.result-box .result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
  font-weight: 500;
}

.result-box .result-value {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
}

.result-box .result-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* STAT GRID */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
}

.stat-item .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-item .stat-val {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

/* FORM ROW */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* AD SPACE */
.ad-slot {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin: 28px 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .page-title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .tool-card { padding: 24px 20px; }
  .nav-links { display: none; }
  .result-box .result-value { font-size: 1.7rem; }
}
