:root {
  --bg: #0b0e14;
  --panel: #141922;
  --panel-2: #1b2230;
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --border: #2a3242;
  --accent: #ff66cc;
  --accent-2: #ffe600;
  --blue: #4f7cff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1b1730 0, var(--bg) 35%);
  color: var(--text);
}

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

.profile-link {
  color: #8fb8e8;
  text-decoration: underline;
  text-decoration-color: rgba(143, 184, 232, 0.55);
  text-underline-offset: 3px;
}

.profile-link:hover {
  color: #b9d5f5;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  line-height: 1.05;
  color: #b7c5d8;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lang-switch {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch a {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.lang-switch a.active {
  background: var(--blue);
  border-color: var(--blue);
}

.section-title {
  font-size: 26px;
  margin: 48px 0 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  background: linear-gradient(180deg, var(--panel), #10141c);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.tool-logo {
  width: 100%;
  aspect-ratio: 3000 / 800;
  object-fit: contain;
  background: #000;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}


.tool-body {
  padding: 20px;
}

.tool-meta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #dce6f2;
  background: #334155;
  padding: 5px 10px;
  border: 1px solid #475569;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tool-title {
  font-size: 22px;
  margin: 0 0 10px;
}

.tool-desc {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.button.secondary {
  background: var(--panel-2);
  border: 1px solid var(--border);
}


@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

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