/* ========================================
   AUTOMATRON — Master Stylesheet
   ======================================== */

:root {
  --bg: #0a0e1a;
  --bg2: #111827;
  --card: #1a1a3e;
  --accent: #00bfff;
  --accent2: #7B61FF;
  --green: #00E676;
  --white: #FFFFFF;
  --muted: #a0a0c0;
  --border: rgba(255,255,255,0.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: 70px; z-index: 1000;
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(10,10,26,0.99); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: 1px;
}
.nav-logo em { color: var(--accent); font-style: italic; }
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a, .nav-dropdown-trigger {
  color: var(--white); font-size: 14px; font-weight: 500;
  transition: color 0.3s; cursor: pointer; background: none; border: none; font-family: var(--font);
}
.nav-links > a:hover, .nav-dropdown-trigger:hover,
.nav-links > a.active { color: var(--accent); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.arrow { font-size: 10px; transition: transform 0.3s; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 0; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: all 0.25s; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px; color: var(--muted); transition: all 0.2s;
}
.nav-dropdown-menu a:hover { background: rgba(0,212,255,0.1); color: var(--white); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white) !important; border-radius: 25px; padding: 10px 24px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(0,212,255,0.3); color: var(--white) !important; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: all 0.3s; border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  padding: 120px 24px 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--white);
  margin-bottom: 16px; line-height: 1.15;
}
.hero p, .hero .lead {
  font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto;
}
.hero-sm { min-height: 300px; padding: 120px 24px 40px; }
.hero .container { position: relative; z-index: 1; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.section-label {
  text-transform: uppercase; letter-spacing: 3px; font-size: 13px;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.section-subtitle { color: var(--muted); font-size: 1.1rem; margin-bottom: 48px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ===== CARDS ===== */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,212,255,0.1); }
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-icon { margin-bottom: 16px; }
.card-icon svg { width: 32px; height: 32px; }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card-text { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; flex-grow: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.card-link { color: var(--accent); font-size: 0.9rem; font-weight: 600; transition: opacity 0.3s; }
.card-link:hover { opacity: 0.8; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 32px; text-align: center; position: relative;
  transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,212,255,0.08); }
.pricing-card.featured { border-color: var(--accent); transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white); padding: 6px 20px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.pricing-tier { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.pricing-period { font-size: 1rem; color: var(--muted); margin-bottom: 28px; margin-top: 4px; }
.pricing-features { text-align: left; margin-bottom: 32px; flex-grow: 1; }
.pricing-features li {
  padding: 8px 0; color: var(--muted); font-size: 0.95rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-cta { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: all 0.3s; cursor: pointer; border: none; font-family: var(--font);
  text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--white); }
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 4px 24px rgba(0,212,255,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(0,212,255,0.1); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--bg2); padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: center; padding: 10px 20px; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.testimonial-text { font-style: italic; line-height: 1.7; color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.testimonial-author { color: var(--white); font-weight: 600; }
.testimonial-role { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(123,97,255,0.08));
  padding: 60px 0; text-align: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg2); padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { color: var(--white); font-weight: 600; margin-bottom: 16px; font-size: 1rem; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 8px; font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 0.85rem;
}

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; color: var(--white); font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px; color: var(--white); font-size: 1rem;
  font-family: var(--font); transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); outline: none; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--card); color: var(--white); }
.required { color: var(--accent); }

.contact-info-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.contact-info-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.contact-info-item { margin-bottom: 20px; }
.contact-info-item strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--muted); font-size: 0.9rem; }
.contact-info-item a:hover { color: var(--accent); }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.compare-table th, .compare-table td { padding: 16px 24px; text-align: left; }
.compare-table thead th { background: rgba(0,212,255,0.08); font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.compare-table tbody td { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; cursor: pointer; }
.faq-a { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== USE CASES ===== */
.usecase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.usecase { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px 20px; text-align: center; transition: transform 0.3s; }
.usecase:hover { transform: translateY(-4px); }
.usecase-icon { font-size: 2rem; margin-bottom: 12px; }
.usecase h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.usecase p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ===== PLATFORMS ===== */
.platform-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.platform-tag {
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent); padding: 8px 18px; border-radius: 24px; font-size: 0.9rem; font-weight: 500;
}

/* ===== CHECKLIST ===== */
.checklist { max-width: 600px; margin: 0 auto; }
.checklist li { padding: 10px 0; color: var(--muted); font-size: 1rem; display: flex; align-items: center; gap: 12px; }
.checklist li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 1.1rem; }

/* ===== VALUES ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.value-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--accent); }
.value-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== LEGAL ===== */
.legal-content { padding: 40px 0 80px; }
.legal-content .container { max-width: 780px; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: var(--white); }
.legal-content p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 12px 0 20px 20px; }
.legal-content li { color: var(--muted); font-size: 0.95rem; line-height: 1.8; padding: 3px 0; list-style: disc; }
.legal-content a { color: var(--accent); }

/* ===== PRODUCT CATEGORIES ===== */
.product-cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.product-cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,212,255,0.08); }
.product-cat-icon { font-size: 2.5rem; margin-bottom: 16px; }
.product-cat-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.product-cat-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ===== SUCCESS PAGE ===== */
.success-icon { font-size: 4rem; margin-bottom: 24px; }
.success-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 48px; text-align: center; max-width: 600px; margin: 0 auto;
}

/* ===== UTILITIES ===== */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.lead-text { font-size: 1.1rem; color: var(--muted); line-height: 1.8; text-align: center; max-width: 720px; margin: 0 auto; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE 1024px ===== */
@media (max-width: 1024px) {
  .card-grid-3, .values-grid, .steps-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; right: -100%; top: 0; height: 100vh; width: 280px;
    flex-direction: column; align-items: flex-start;
    background: var(--bg); padding: 80px 24px 40px;
    transition: right 0.3s; gap: 0;
    border-left: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links > a, .nav-dropdown-trigger { padding: 14px 0; font-size: 16px; width: 100%; }
  .nav-cta { margin-top: 20px; text-align: center; width: 100%; justify-content: center; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
    background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 300px; }
  .nav-dropdown-menu a { padding: 10px 16px; font-size: 15px; }
  .nav-dropdown:hover .nav-dropdown-menu { opacity: 0; visibility: hidden; }
  .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; }

  .hero { min-height: 350px; padding: 100px 24px 40px; }
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .hero-sm { min-height: 220px; padding: 100px 24px 30px; }
  .section { padding: 60px 0; }
  .card-grid-3, .card-grid-2, .card-grid-4, .values-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .cta-banner h2 { font-size: 1.4rem; }
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 90px 16px 32px; }
  .hero-sm { padding: 90px 16px 24px; }
  .hero h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.5rem; }
  .card { padding: 24px; }
  .pricing-card { padding: 28px 20px; }
  .stats-grid { gap: 12px; }
  .stat-item { padding: 8px 12px; }
  .stat-number { font-size: 1.4rem; }
}
