/* ZwaAPI — MT5 Automation Landing Page Styles */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --bg-card: #151b2c;
  --border: #1f2937;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15), transparent 60%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  animation: badge-glow 2.5s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(16, 185, 129, 0.0),
      0 0 12px 0 rgba(16, 185, 129, 0.25),
      inset 0 0 8px 0 rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(16, 185, 129, 0.10),
      0 0 24px 4px rgba(16, 185, 129, 0.45),
      inset 0 0 14px 0 rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.65);
  }
}
.badge .dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
.badge .dot::before,
.badge .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.7;
}
.badge .dot::before {
  animation: ring 2s ease-out infinite;
}
.badge .dot::after {
  animation: ring 2s ease-out infinite 1s;
}
@keyframes dot-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 14px rgba(16, 185, 129, 1);
  }
}
@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge,
  .badge .dot,
  .badge .dot::before,
  .badge .dot::after {
    animation: none !important;
  }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #3b82f6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ STATS ============ */
.stats {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============ SECTIONS ============ */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============ CARDS / SERVICES ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.3);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.card ul {
  list-style: none;
  margin-top: 1rem;
}
.card ul li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.card ul li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ============ TECH STACK ============ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tech-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ CTA ============ */
.cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}
.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 320px;
}
.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer ul { list-style: none; }
.footer ul li {
  padding: 0.3rem 0;
}
.footer ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============ PORTFOLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s;
}
.portfolio-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.portfolio-item .tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.portfolio-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.portfolio-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.portfolio-item .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.portfolio-item .tech-tags span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-highlights {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.highlight {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.highlight:last-child { border-bottom: none; }
.highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.highlight h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.highlight p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info .info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-info p, .contact-info a {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}
.contact-info a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .cards-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  .nav-links a:hover { background: var(--bg-card); }
  .nav-links.open { display: flex; }
  .nav-cta { text-align: center; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero p.lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 2rem; }
  .stat-label { font-size: 0.8rem; }
  .cta-box { padding: 2.5rem 1.25rem; }
  .card { padding: 1.5rem; }
  .card-icon { width: 44px; height: 44px; font-size: 1.25rem; }
  .section-header h2 { font-size: 1.75rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .stat-value { font-size: 1.75rem; }
}
