@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500;700;900&display=swap');

:root {
  --bg: #080914;
  --surface: #11132a;
  --surface-2: #181b3a;
  --line: rgba(98, 126, 234, .28);
  --accent: #627eea;
  --accent-2: #8f6df5;
  --text: #e7e9f7;
  --muted: #9ba1c7;
  --head: 'Roboto', Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 15% -10%, rgba(98, 126, 234, .28), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(143, 109, 245, .20), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(98, 126, 234, .12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / logo ---------- */
.logo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 28px 16px 8px;
}

.logo-img {
  height: 44px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(98, 126, 234, .55));
}

/* ---------- Main card ---------- */
.container {
  position: relative;
  max-width: 720px;
  margin: 28px auto;
  padding: 44px 40px 40px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}

.container::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  border-radius: 0 0 6px 6px;
}

h1, h2, h3 {
  font-family: var(--head);
  color: #fff;
}

h1 {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.3px;
  background: linear-gradient(90deg, #ffffff 10%, #b9c6ff 50%, #a995ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Form ---------- */
label {
  display: block;
  margin-top: 8px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"],
input[type="number"] {
  width: 100%;
  margin-top: 10px;
  padding: 16px 18px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  background: rgba(8, 9, 20, .75);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder { color: #626894; }

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--accent);
  background: rgba(8, 9, 20, .95);
  box-shadow: 0 0 0 4px rgba(98, 126, 234, .22), 0 0 24px rgba(98, 126, 234, .25);
}

.slider-container { margin-top: 20px; }

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.value-display {
  text-align: right;
  font-size: 14px;
  margin-top: 5px;
  color: var(--muted);
}

button {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 16px 24px;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(98, 126, 234, .4);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 38px rgba(143, 109, 245, .5);
}

button:active { transform: translateY(0); }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(98, 126, 234, .6);
  outline-offset: 3px;
}

/* ---------- SEO section ---------- */
.seo-section {
  max-width: 820px;
  margin: 56px auto;
  padding: 44px 44px 36px;
  font-family: var(--body);
  line-height: 1.75;
  color: #cfd3ee;
  background: rgba(17, 19, 42, .72);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.seo-section h1,
.seo-section h2,
.seo-section h3 {
  font-family: var(--head);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.seo-section h2 {
  margin-top: 44px;
  padding-left: 16px;
  font-size: 24px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(98, 126, 234, .14), transparent 70%);
  border-radius: 0 8px 8px 0;
}

.seo-section h2:first-of-type { margin-top: 32px; }

.seo-section h3 {
  margin-top: 26px;
  font-size: 18px;
  color: #b9c6ff;
}

.seo-section p { margin: 0 0 18px; }

.seo-section strong { color: #fff; }
.seo-section em { color: #b9c6ff; font-style: italic; }

.seo-section a { color: var(--accent); }

.seo-section code {
  padding: 2px 8px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: .92em;
  color: #c9d4ff;
  background: rgba(98, 126, 234, .16);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.seo-section ul,
.seo-section ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.seo-section ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
}

.seo-section ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .6em;
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(98, 126, 234, .7);
}

.seo-section ol { counter-reset: step; }

.seo-section ol li {
  position: relative;
  counter-increment: step;
  margin-bottom: 12px;
  padding: 12px 16px 12px 58px;
  background: rgba(8, 9, 20, .5);
  border: 1px solid rgba(98, 126, 234, .18);
  border-radius: 12px;
}

.seo-section ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
}

/* ---------- Misc blocks ---------- */
.result-box {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text);
}

.footer {
  max-width: 700px;
  margin: 80px auto 0;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

.info-block {
  max-width: 820px;
  margin: 40px auto 60px;
  padding: 24px 28px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.info-block .label {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}

.info-block .value p { margin: 6px 0; color: #cfd3ee; }

.info-block a {
  color: #fff;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px dashed var(--accent);
}

.info-block a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .container { margin: 16px 14px; padding: 32px 20px 28px; border-radius: 20px; }
  h1 { font-size: 24px; }
  .seo-section { margin: 36px 14px; padding: 28px 20px; border-radius: 20px; }
  .seo-section h2 { font-size: 20px; }
  .info-block { margin: 30px 14px 40px; padding: 20px; }
  .logo-img { height: 38px; }
}