@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Space+Mono:wght@400;700&family=MuseoModerno:wght@400..900&display=swap');

/* WebAtlas Index — Premium SaaS Landing (standalone, webatlasindex.pl) */

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --fg: #0f0f0f;
  --fg-muted: #6b6b6b;
  --fg-subtle: #9a9a9a;
  --border: #e8e8e8;
  --border-hover: #d0d0d0;
  --accent: #0f0f0f;
  --accent-hover: #262626;
  --accent-fg: #ffffff;
  --accent-soft: rgba(15, 15, 15, 0.04);
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;
  --font-display: 'MuseoModerno', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06);

  --glow-indigo: rgba(129, 140, 248, 0.20);
  --glow-cyan: rgba(56, 189, 248, 0.15);
  --glow-violet: rgba(167, 139, 250, 0.18);
  --glow-emerald: rgba(52, 211, 153, 0.11);
}

html.dark {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --fg: #fafafa;
  --fg-muted: #a0a0a0;
  --fg-subtle: #6b6b6b;
  --border: #262626;
  --border-hover: #404040;
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --accent-fg: #0a0a0a;
  --accent-soft: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);

  --glow-indigo: rgba(99, 102, 241, 0.24);
  --glow-cyan: rgba(6, 182, 212, 0.18);
  --glow-violet: rgba(139, 92, 246, 0.22);
  --glow-emerald: rgba(16, 185, 129, 0.14);
}

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

html {
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  letter-spacing: 0.3px;
  transition: background 0.3s ease, color 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 500;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

em {
  font-style: normal;
  font-weight: 500;
}

code {
  font-family: var(--font-mono);
}

.overline {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

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

.btn-lg {
  padding: 0.9375rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

html.dark .nav {
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  border-bottom-color: var(--border);
}

html.dark .nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
}

.nav-inner {
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  transition: color 0.25s ease;
}

.nav-link-btn:hover {
  color: var(--fg);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  color: var(--fg);
  background: var(--accent-soft);
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

html.dark .theme-toggle .sun {
  display: block;
}

html.dark .theme-toggle .moon {
  display: none;
}

@media (min-width: 768px) {

  .nav-links,
  .nav-actions {
    display: flex;
  }
}

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  color: var(--fg);
  transition: all 0.25s ease;
}

.mobile-toggle:hover {
  color: var(--fg-muted);
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 99;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  padding: 1rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--accent-soft);
}

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* Page hero */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  background-image:
    radial-gradient(ellipse 900px 650px at 96% 6%, var(--glow-indigo) 0%, transparent 65%),
    radial-gradient(ellipse 650px 520px at 2% 90%, var(--glow-cyan) 0%, transparent 65%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-hero-inner {
  animation: slideUp 0.8s ease-out 0.1s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero .overline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.page-hero .lead {
  max-width: 620px;
  margin: 0 auto;
}

/* Proof strip */
.proof {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  background-image: radial-gradient(ellipse 700px 280px at 50% 50%, var(--glow-emerald) 0%, transparent 65%);
}

.proof-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.proof-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proof-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.proof-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

@media (max-width: 480px) {
  .proof-divider {
    display: none;
  }

  .proof-inner {
    gap: 1.5rem;
  }
}

/* Section header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 1rem auto 0;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.6;
}

/* About section */
.about-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.integration-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.integration-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
}

.integration-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--fg);
}

.integration-row h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.integration-row p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Bots section */
.bots-section {
  padding: 6rem 0;
  background-image:
    radial-gradient(ellipse 800px 650px at 1% 42%, var(--glow-violet) 0%, transparent 65%),
    radial-gradient(ellipse 520px 420px at 99% 78%, var(--glow-cyan) 0%, transparent 65%);
}

.bots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 860px) {
  .bots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bot-card {
  padding: 2rem;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.bot-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.bot-card:nth-child(1) {
  transition-delay: 0.05s;
}

.bot-card:nth-child(2) {
  transition-delay: 0.1s;
}

.bot-card:nth-child(3) {
  transition-delay: 0.15s;
}

.bot-card:hover {
  box-shadow: var(--shadow-sm);
}

.bot-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: all 0.4s ease;
}

.bot-card:hover .bot-icon {
  transform: scale(1.08);
}

.bot-card h3 {
  font-size: 1.0625rem;
}

.bot-card .bot-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  color: var(--fg-muted);
  width: fit-content;
}

.bot-card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.bot-card .bot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  transition: gap 0.25s ease, color 0.25s ease;
}

.bot-card .bot-link:hover {
  gap: 0.625rem;
  color: var(--fg-muted);
}

/* Webmaster tools section */
.webmaster-section {
  padding: 6rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(ellipse 680px 580px at 99% 48%, var(--glow-indigo) 0%, transparent 65%),
    radial-gradient(ellipse 460px 400px at 1% 88%, var(--glow-emerald) 0%, transparent 65%);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:nth-child(1) {
  transition-delay: 0.05s;
}

.tool-card:nth-child(2) {
  transition-delay: 0.1s;
}

.tool-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tool-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--fg);
}

.tool-card h3 {
  font-size: 1.0625rem;
}

.tool-card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.tool-card .btn-secondary {
  align-self: flex-start;
}

/* API section */
.api-section {
  padding: 6rem 0;
  background-image:
    radial-gradient(ellipse 850px 520px at 50% 0%, var(--glow-violet) 0%, transparent 65%),
    radial-gradient(ellipse 500px 360px at 88% 95%, var(--glow-indigo) 0%, transparent 65%);
}

.api-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 860px) {
  .api-card {
    grid-template-columns: 1.2fr auto;
  }
}

.api-card h2 {
  margin-bottom: 0.75rem;
}

.api-card p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
}

.api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-toggle button {
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: var(--accent);
  color: var(--accent-fg);
}

.lang-toggle button:not(.active):hover {
  color: var(--fg);
  background: var(--accent-soft);
}

.mobile-nav-actions .lang-toggle {
  align-self: flex-start;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background-image: radial-gradient(ellipse 700px 380px at 50% 0%, var(--glow-indigo) 0%, transparent 55%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 2fr;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 560px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.375rem 0;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: var(--fg-muted);
  transition: color 0.25s ease;
}

.footer-social a:hover {
  color: var(--fg);
}

.footer-social .theme-toggle {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social .theme-toggle:hover {
  background: none;
  color: var(--fg);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-credit a {
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--fg);
}
