/* FishHelper — лендинг RF4 Info */
:root {
  --bg: #0a0e14;
  --bg-card: #121820;
  --bg-card-hover: #161d28;
  --border: #243044;
  --text: #e8eef7;
  --muted: #8b9cb3;
  --accent: #3d9eff;
  --accent-dim: #2563a8;
  --success: #3fb950;
  --gradient: linear-gradient(135deg, #1a4d7a 0%, #0d2840 50%, #0a1628 100%);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-name {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.brand-fallback {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--gradient);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 2rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(61, 158, 255, 0.18), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(61, 158, 255, 0.12);
  border: 1px solid rgba(61, 158, 255, 0.25);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  max-width: 36rem;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4aadff 0%, var(--accent-dim) 100%);
  box-shadow: 0 4px 20px rgba(61, 158, 255, 0.35);
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(61, 158, 255, 0.45);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  overflow-wrap: anywhere;
}

.feature-icon {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.changelog-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: clamp(0.85rem, 2.2vw, 0.92rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.changelog-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

#changelogVersion::before {
  content: "· ";
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: rgba(61, 158, 255, 0.35);
  background: var(--bg-card-hover);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Download block */
.download-box {
  background: var(--gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.download-box .btn {
  flex-shrink: 0;
}

.download-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.download-box p {
  margin: 0;
  color: rgba(232, 238, 247, 0.75);
  font-size: 0.92rem;
}

.download-info {
  display: grid;
  gap: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .section {
    padding: 2rem 0;
  }

  .download-box {
    flex-direction: column;
    align-items: stretch;
  }

  .download-box .btn {
    width: 100%;
  }
}
