/* ===========================================
   AmtocSoft Landing Page - styles.css
   Modern SaaS Landing Page
   Mobile-first, responsive
   =========================================== */

/* --- Design Tokens (Custom Properties) --- */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --teal: #14b8a6;
  --green: #22c55e;
  --green-dark: #059669;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --slate: #64748b;
  --slate-dark: #0f172a;
  --slate-light: #f1f5f9;
  --white: #fff;
  --surface: #f8fafc;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--slate-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 60px 0;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--slate-dark);
}

.nav-logo img,
.nav-logo svg {
  height: 32px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-dark);
  padding: 4px;
  line-height: 1;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #5b21b6 50%, #7c3aed 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 24px auto 0;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero floating blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.hero-blob:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -100px;
  animation-delay: 0s;
}

.hero-blob:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -60px;
  animation-delay: 2s;
}

.hero-blob:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 10%;
  animation-delay: 4s;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* --- Tech Stack Bar --- */
.tech-bar {
  background: var(--surface);
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.tech-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.tech-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 500;
}

.tech-bar-item svg,
.tech-bar-item img {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 12px auto 0;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-icon.bg-primary {
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
}

.feature-icon.bg-accent {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
}

.feature-icon.bg-teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
}

.feature-icon.bg-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.feature-icon.bg-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
}

.feature-icon.bg-rose {
  background: rgba(244, 63, 94, 0.1);
  color: var(--rose);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--slate-dark);
}

.feature-card p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Plugin Cards --- */
.plugins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plugin-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--slate);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plugin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.plugin-card.cat-primary {
  border-left-color: var(--primary);
}

.plugin-card.cat-accent {
  border-left-color: var(--accent);
}

.plugin-card.cat-teal {
  border-left-color: var(--teal);
}

.plugin-card.cat-green {
  border-left-color: var(--green);
}

.plugin-card.cat-amber {
  border-left-color: var(--amber);
}

.plugin-card.cat-rose {
  border-left-color: var(--rose);
}

.plugin-card h4 {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--slate-dark);
}

.plugin-card .plugin-count {
  font-size: 0.8rem;
  font-weight: 600;
}

.plugin-card.cat-primary .plugin-count { color: var(--primary); }
.plugin-card.cat-accent .plugin-count { color: var(--accent); }
.plugin-card.cat-teal .plugin-count { color: var(--teal); }
.plugin-card.cat-green .plugin-count { color: var(--green); }
.plugin-card.cat-amber .plugin-count { color: var(--amber); }
.plugin-card.cat-rose .plugin-count { color: var(--rose); }

.plugin-card .plugin-list {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 8px;
  line-height: 1.6;
}

/* --- How It Works (Steps) --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
  position: relative;
}

.step-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--green);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--slate-dark);
}

.step p {
  font-size: 0.9rem;
  color: var(--slate);
}

.step-connector {
  display: none;
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin-top: 40px;
  flex-shrink: 0;
}

/* --- Agent Template Cards --- */
.templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.template-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.template-header {
  padding: 16px 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.template-header.tpl-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.template-header.tpl-blue {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.template-header.tpl-purple {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.template-header.tpl-teal {
  background: linear-gradient(135deg, #0d9488, var(--teal));
}

.template-body {
  padding: 16px 20px;
}

.template-body p {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.6;
}

.template-body ul {
  list-style: none;
  margin-top: 8px;
}

.template-body ul li {
  font-size: 0.8rem;
  color: var(--slate);
  padding: 3px 0;
}

.template-body ul li::before {
  content: "\2022 ";
  color: var(--primary-light);
  font-weight: 700;
}

/* --- Developer Section --- */
.dev-section {
  background: var(--slate-dark);
  color: var(--white);
  padding: 80px 0;
}

.dev-section .section-title h2 {
  color: var(--white);
}

.dev-section .section-title p {
  color: #94a3b8;
}

.two-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.dev-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dev-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dev-feature-icon {
  color: var(--green);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dev-feature h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.dev-feature p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

.code-block {
  background: #1e293b;
  border-radius: 12px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  border: 1px solid #334155;
  line-height: 1.7;
  width: 100%;
}

.code-block code {
  color: #e2e8f0;
}

.code-block .comment {
  color: #64748b;
}

.code-block .keyword {
  color: var(--accent-light);
}

.code-block .string {
  color: var(--green);
}

.code-block .function {
  color: var(--primary-light);
}

/* --- Security Badges --- */
.security-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f0fdf4;
  border-radius: 100px;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

.security-badge svg,
.security-badge .badge-icon {
  flex-shrink: 0;
}

/* --- Videos --- */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 8px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--slate-dark);
  line-height: 1.2;
  margin: 16px 0;
}

.price span {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-light);
  font-size: 0.9rem;
  color: #475569;
}

.pricing-features li::before {
  content: "\2713 ";
  color: var(--green);
  font-weight: 700;
  margin-right: 6px;
}

/* --- Final CTA --- */
.final-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.final-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.final-cta p {
  opacity: 0.9;
  margin: 16px auto 32px;
  max-width: 600px;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  background: var(--slate-dark);
  color: #94a3b8;
  padding: 60px 0 24px;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   Responsive Breakpoints
   =========================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  section {
    padding: 80px 0;
  }

  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plugins-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: row;
  }

  .step-connector {
    display: block;
  }

  .two-col {
    flex-direction: row;
    gap: 60px;
  }

  .two-col > * {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plugins-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .templates-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1.05);
  }
}

/* Mobile nav open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
