/**
 * AILoop Marketing Website
 * Linear.app aesthetic + Hipogeniq branding
 * Colors: Cyan (#4defda) + Deep Navy (#0f111a) + Accent
 */

/* Root Variables */
:root {
  --bg: #0f111a;
  --bg2: #1a1d2e;
  --bg3: #252840;
  --text: #e0e0e0;
  --text2: #8892b0;
  --text3: #5a6378;
  --accent: #4defda;
  --accent-dark: #00d9d9;
  --border: #2a2d40;
  --success: #c3e88d;
  --warning: #ffcb6b;
  --error: #ff5370;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 26, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.navbar .logo {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
}

.logo-text {
  color: var(--accent);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--accent);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 239, 218, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(77, 239, 218, 0.1);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  padding: 80px 20px;
  background: linear-gradient(
    135deg,
    rgba(77, 239, 218, 0.05) 0%,
    rgba(100, 255, 218, 0) 100%
  );
  border-bottom: 1px solid var(--border);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-badge {
  font-size: 13px;
  color: var(--text3);
  padding: 12px;
  background: rgba(77, 239, 218, 0.05);
  border: 1px solid rgba(77, 239, 218, 0.2);
  border-radius: 6px;
  width: fit-content;
}

.graphic-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  height: 300px;
  display: flex;
  flex-direction: column;
}

.graphic-header {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.graphic-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  justify-content: center;
}

.bar {
  width: 40px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
  transition: var(--transition);
}

.bar:hover {
  transform: scaleY(1.1);
  filter: brightness(1.2);
}

/* Sections */
.section-problem,
.section-solution,
.section-features,
.section-usecases,
.section-pricing,
.section-cta {
  padding: 80px 20px;
  border-bottom: 1px solid var(--border);
}

.section-problem {
  background: linear-gradient(
    180deg,
    rgba(15, 17, 26, 0) 0%,
    rgba(77, 239, 218, 0.02) 100%
  );
}

.section-solution {
  background: rgba(77, 239, 218, 0.02);
}

section h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 48px;
  text-align: center;
}

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: var(--transition);
}

.problem-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(77, 239, 218, 0.1);
}

.problem-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent);
}

.problem-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
}

/* Solution Steps */
.solution-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 13px;
  color: var(--text2);
}

.step-arrow {
  font-size: 32px;
  color: var(--accent);
  opacity: 0.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: var(--transition);
  text-align: center;
}

.feature:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(77, 239, 218, 0.1);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}

.feature p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* Use Cases */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.usecase {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: var(--transition);
}

.usecase:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.usecase h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
}

.usecase p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 16px;
  line-height: 1.7;
}

.usecase a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.usecase a:hover {
  opacity: 0.8;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.pricing-card:hover {
  border-color: var(--accent);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.price {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
}

.price span {
  font-size: 18px;
  color: var(--text2);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text2);
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card a {
  width: 100%;
}

/* CTA Section */
.section-cta {
  background: linear-gradient(
    135deg,
    rgba(77, 239, 218, 0.1) 0%,
    rgba(77, 239, 218, 0.02) 100%
  );
  text-align: center;
  padding: 120px 20px;
}

.section-cta h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

.section-cta p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
}

.footer-bottom a {
  color: var(--text2);
  text-decoration: none;
  transition: var(--transition);
  margin: 0 4px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 12px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-cta {
    flex-direction: column;
  }

  section h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .solution-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .section-cta {
    padding: 60px 20px;
  }

  .section-cta h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 8px;
    font-size: 12px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ── Powered by Hipogeniq badge ── */
.hpq-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  border-radius: 24px;
  background: rgba(9, 11, 20, 0.72);
  border: 1px solid rgba(77, 239, 218, 0.22);
  color: rgba(156, 163, 175, 0.85);
  text-decoration: none;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  font-family: system-ui, sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.hpq-badge strong {
  color: #4defda;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.hpq-badge:hover {
  border-color: rgba(77, 239, 218, 0.55);
  background: rgba(9, 11, 20, 0.88);
  color: #c9d5e8;
}
[data-theme="light"] .hpq-badge {
  background: rgba(248, 250, 252, 0.88);
  border-color: rgba(8, 145, 178, 0.28);
  color: rgba(55, 65, 81, 0.9);
}
[data-theme="light"] .hpq-badge strong {
  color: #0891b2;
}
[data-theme="light"] .hpq-badge:hover {
  border-color: rgba(8, 145, 178, 0.6);
  color: #111827;
}
