:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --dark: #020617;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.header {
  background: rgba(2, 6, 23, 0.96);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.logo {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo span {
  color: #38bdf8;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: #cbd5e1;
  font-size: 14px;
}

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

.hero {
  background:
    radial-gradient(circle at 25% 20%, rgba(37, 99, 235, 0.35), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.22), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a);
  color: #fff;
  padding: 92px 0;
}

.hero-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: #bfdbfe;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}

.hero p {
  color: #cbd5e1;
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  padding: 13px 18px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 15px;
}

.btn-primary {
  background: #22c55e;
  color: #fff;
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.terminal {
  background: #020617;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 18px;
  color: #e2e8f0;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
}

.dots {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.terminal-line {
  margin: 9px 0;
}

.terminal-line strong {
  color: #38bdf8;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.tool-card a {
  margin-top: auto;
  color: var(--primary);
  font-weight: 900;
}

.tool-card a:hover {
  color: var(--primary-dark);
}

.tool-page {
  padding: 54px 0 70px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}

.panel .lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.result-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
  min-height: 58px;
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 800;
}

.form-row {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

label {
  font-weight: 800;
  font-size: 14px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 210px;
  resize: vertical;
  font-family: Consolas, Monaco, monospace;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-blue {
  background: var(--primary);
  color: #fff;
}

.btn-blue:hover {
  background: var(--primary-dark);
}

.btn-green {
  background: var(--success);
  color: #fff;
}

.btn-green:hover {
  background: #15803d;
}

.btn-light {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-light:hover {
  background: #cbd5e1;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.aside-card h3 {
  margin-bottom: 10px;
}

.aside-card p, .aside-card li {
  color: var(--muted);
  font-size: 15px;
}

.aside-card ul {
  margin-left: 18px;
}

.content-block {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.content-block h2 {
  margin: 18px 0 10px;
  letter-spacing: -0.025em;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--muted);
  margin-bottom: 12px;
}

.content-block ul, .content-block ol {
  margin: 10px 0 16px 22px;
  color: var(--muted);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 14px;
  padding: 13px 15px;
  margin-top: 16px;
  font-size: 14px;
}

.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 36px 0;
  margin-top: 40px;
}

.footer-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer strong {
  color: #fff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #020617;
  color: #fff;
  padding: 13px 15px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-inner, .tool-layout {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .panel, .content-block {
    padding: 22px;
  }
}