/* Automyze static site – dark/light theme, no framework */

:root {
  --bg: #0a0a0c;
  --surface: #12121a;
  --card: #16161f;
  --border: rgba(59, 130, 246, 0.2);
  --text: #9b9b9e;
  --heading: #ffffff;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.2);
  --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --glow: 0 0 30px rgba(59, 130, 246, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-text: #475569;
  --nav-height: 72px;
  --radius: 16px;
  --radius-lg: 20px;
  --container: min(1140px, calc(100% - 2rem));
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text: #4a5568;
  --heading: #1a202c;
  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.12);
  --glow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--nav-height);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #60a5fa; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
.lead { font-size: 1.15rem; max-width: 42rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text); }
.mx-auto { margin-left: auto; margin-right: auto; }

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: #334155;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--nav-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  position: relative;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--gradient);
  color: #fff !important;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}
.btn-login:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
}

@media (max-width: 860px) {
  .header-actions .btn-login { display: none; }
  .site-nav .nav-login { display: block; }
}
.site-nav .nav-login { display: none; }
.site-nav .nav-login a {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 10px;
}
.site-nav .nav-login a:hover {
  color: #fff !important;
  background: var(--gradient);
  opacity: 0.92;
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-switch label {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  display: block;
}
.theme-switch label::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s;
}
[data-theme="light"] .theme-switch label::after {
  transform: translateX(20px);
}
.theme-label { font-size: 0.8rem; color: var(--nav-text); font-weight: 500; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 1rem; }
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(160deg, #0a0a0c 0%, #0f1419 40%, #0a1628 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .hero {
  background: linear-gradient(160deg, #f0f4ff 0%, #e0e7ff 35%, #dbeafe 100%);
  color: var(--heading);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(59,130,246,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.8;
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove {
  to { transform: translate(60px, 60px); }
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: inherit; }
.hero .lead { color: rgba(255,255,255,0.9); margin: 0 auto 2rem; }
[data-theme="light"] .hero .lead { color: var(--text); }
.hero-compact { padding: 3.5rem 0 4rem; }

.error-page-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 1.25rem;
}
.hero .badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}
[data-theme="light"] .hero .badge { color: var(--accent); }

.accent-word { color: var(--accent); }

/* ----- Buttons ----- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
.btn-light {
  background: #fff;
  color: #0a0a0c;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
}
.hero .btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
[data-theme="light"] .hero .btn-hero-outline {
  border-color: var(--heading);
  color: var(--heading);
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* ----- Sections ----- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .lead { margin: 0.75rem auto 0; }

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

/* ----- Cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}
.card-center { text-align: center; }
.card-link {
  display: block;
  color: inherit;
}
.card-link:hover { color: inherit; }

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.icon-box.center { margin-inline: auto; }

.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.dot-list { list-style: none; padding: 0; margin: 0; }
.dot-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dot-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Methodology steps */
.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step p { margin: 0.25rem 0 0; font-size: 0.9rem; }

/* Testimonials */
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.stars { color: #fbbf24; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Clients marquee */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  width: min(480px, 85vw);
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
}
/* Clients carousel (PNG logos) */
.clients-carousel-outer {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-carousel-inner {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: clients-marquee 28s linear infinite;
}
.clients-carousel-outer:hover .clients-carousel-inner {
  animation-play-state: paused;
}
@keyframes clients-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.clients-carousel-slide {
  flex-shrink: 0;
  width: min(520px, 85vw);
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow);
}
.clients-carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.partner-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Blog */
.blog-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 768px) { .blog-feature { grid-template-columns: 1fr; } }
.blog-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface);
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-img { aspect-ratio: 16/9; margin: -2rem -2rem 1.25rem; width: calc(100% + 4rem); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.blog-meta { font-size: 0.85rem; color: var(--text); margin-top: 0.75rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-grid .card { text-align: center; }

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin-inline: auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--heading);
  font: inherit;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
[data-theme="light"] .pill { color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h6 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--heading);
  margin: 0 0 0.75rem;
}
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: var(--text); }
.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
