:root {
  --bg: #020617;
  --bg-card: #020617;
  --fg: #e5e7eb;
  --fg-muted: #9ca3af;
  --border: #1f2937;
  --primary: #1d4ed8;
  --primary-text: #ffffff;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.9);
  --glow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  color: var(--fg);
  background: radial-gradient(
        circle at top,
        rgba(37, 99, 235, 0.12),
        transparent 55%
      ),
      var(--bg);
  transition: background 0.35s ease, color 0.25s ease;
  line-height: 1.7;
  font-size: 1rem;
}

header {
  position: relative;
  overflow: hidden;
  padding: 40px 20px 80px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(30, 64, 175, 0.95)
  );
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

header::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(59, 130, 246, 0.22),
      transparent 30%
    ),
    radial-gradient(circle at 80% 40%, rgba(94, 234, 212, 0.18), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(147, 197, 253, 0.14), transparent 26%);
  filter: blur(30px);
  opacity: 0.7;
  animation: floatGlow 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5e7eb;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
  animation: pulseDot 1.8s ease-in-out infinite;
  transform-origin: center;
}

.controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  overflow: hidden;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: #e5e7eb;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch button.is-active {
  background: #e5e7eb;
  color: #020617;
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.15);
}

.hero {
  text-align: left;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.9rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.15;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 26px;
  color: #e5e7eb;
  max-width: 640px;
}

.cta-buttons a {
  display: inline-block;
  padding: 14px 30px;
  margin: 6px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease,
    border-color 0.18s ease;
}

.cta-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.55);
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
  box-shadow: 0 24px 65px rgba(37, 99, 235, 0.65);
}

.cta-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.cta-secondary:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.95);
}

.contact-cta {
  text-align: center;
  margin-top: 20px;
}

#contact .section-lead {
  max-width: 540px;
}

#contact {
  padding-bottom: 70px;
}

main section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  text-align: center;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.25;
}

.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--fg-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, background 0.2s ease;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.3;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.96rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(59, 130, 246, 0.6);
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(2, 6, 23, 0.9);
}

.tools {
  text-align: center;
}

.tool-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  display: block;
  mask-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.9) 12%,
    rgba(0, 0, 0, 0.9) 88%,
    transparent
  );
}

.tool-track {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  animation: marquee 30s linear infinite;
  will-change: transform;
  white-space: nowrap;
  width: max-content;
}

.tool-pill {
  --icon: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.82);
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.tool-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.tool-icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-image: var(--icon);
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.tool-pill[data-icon="gmail"] {
  --icon: url("../icons/gmail.svg");
}

.tool-pill[data-icon="googledrive"] {
  --icon: url("../icons/googledrive.svg");
}

.tool-pill[data-icon="sheets"] {
  --icon: url("../icons/googlesheets.svg");
}

.tool-pill[data-icon="notion"] {
  --icon: url("../icons/notion.svg");
}

.tool-pill[data-icon="hubspot"] {
  --icon: url("../icons/hubspot.svg");
}

.tool-pill[data-icon="airtable"] {
  --icon: url("../icons/airtable.svg");
}

.tool-pill[data-icon="linkedin"] {
  --icon: url("../icons/linkedin.svg");
}

.tool-pill[data-icon="telegram"] {
  --icon: url("../icons/telegram.svg");
}

@media (max-width: 600px) {
  .tool-track {
    animation-duration: 34s;
  }
}

footer {
  text-align: center;
  padding: 40px 30px 30px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-top: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 40px;
  position: relative;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-weight: 600;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  padding: 8px 0;
}

.footer-linkedin:hover {
  color: #ffffff;
  opacity: 0.92;
}

.linkedin-badge {
  width: 30px;
  height: 30px;
  background-image: url("../icons/linkedin.png");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  filter: brightness(1.15);
}

footer .back-to-top {
  position: absolute;
  right: 30px;
  top: 60px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

footer .back-to-top:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.8);
}

footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0),
    rgba(148, 163, 184, 0.35),
    rgba(148, 163, 184, 0)
  );
  position: absolute;
  top: 0;
  left: 0;
}

@media (min-width: 960px) {
  main section {
    padding: 80px 20px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: row;
    align-items: center;
  }

  header {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 2.4rem;
    letter-spacing: 0.005em;
  }

  h2 {
    font-size: 1.7rem;
  }

  .feature-card h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  body {
    background: var(--bg);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
    background: #22c55e;
  }
  50% {
    transform: scale(1.32);
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.95);
    background: #34d399;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
    background: #22c55e;
  }
}

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(10px, -20px, 0) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-track {
    animation: none;
  }
}
