/* ============================================================
   dev.sh — Styles
   Colors: #50e758 (green accent) | #1e2227 (dark bg)
   ============================================================ */

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

:root {
  --green:   #50e758;
  --green-d: #3bcc43;
  --dark:    #1e2227;
  --dark-2:  #252b31;
  --dark-3:  #2d343b;
  --dark-4:  #363d45;
  --border:  rgba(255,255,255,.07);
  --text:    #e2e8f0;
  --muted:   #8b95a1;
  --white:   #ffffff;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(0,0,0,.35);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 999px; }

/* ── Selection ── */
::selection { background: var(--green); color: var(--dark); }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--green); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: .01em;
}

.btn--primary {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-d);
  border-color: var(--green-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80,231,88,.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: .82rem;
}

.btn--full { width: 100%; }

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(30,34,39,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(30,34,39,.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child { border-bottom: none; color: var(--green); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80,231,88,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,231,88,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero .container { position: relative; text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(80,231,88,.1);
  border: 1px solid rgba(80,231,88,.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 28px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat__label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--green), transparent);
  margin: 0 auto;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: .8; transform: scaleY(1); }
  50% { opacity: .3; transform: scaleY(.7); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section--dark { background: var(--dark-2); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.section__sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  border-color: rgba(80,231,88,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.card__icon {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin-bottom: 18px;
}
.card__icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.product-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}

.product-card--featured {
  border-color: rgba(80,231,88,.4);
  background: linear-gradient(135deg, var(--dark-3) 0%, rgba(80,231,88,.04) 100%);
}
.product-card--featured:hover {
  box-shadow: 0 20px 48px rgba(80,231,88,.12);
}

.product-card__ribbon {
  position: absolute;
  top: -1px; right: 28px;
  background: var(--green);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}

.product-card__top { display: flex; flex-direction: column; gap: 12px; }

.product-card__badge {
  display: inline-block;
  background: rgba(80,231,88,.12);
  color: var(--green);
  border: 1px solid rgba(80,231,88,.25);
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  width: fit-content;
}

.product-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__icon--bot { background: rgba(80,231,88,.12); color: var(--green); }
.product-card__icon--tool { background: rgba(80,231,88,.12); color: var(--green); }
.product-card__icon svg { width: 26px; height: 26px; }

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}
.product-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

.product-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text);
}

.check {
  color: var(--green);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── Product card wide layout ── */
.products--wide {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  max-width: 1100px;
}

.product-card__tagline {
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Feature groups ── */
.feature-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-group__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.product-card__features--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

/* ── Commands ── */
.commands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.commands-list code {
  font-family: var(--mono);
  font-size: .72rem;
  background: rgba(80,231,88,.08);
  border: 1px solid rgba(80,231,88,.18);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ── Pricing table ── */
.pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}

.pricing-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background var(--transition);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: rgba(255,255,255,.03); }

.pricing-row__period {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  flex: 1;
}

.pricing-row__price {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  min-width: 52px;
  text-align: right;
}

.pricing-row--source {
  background: rgba(80,231,88,.04);
}
.pricing-row--source .pricing-row__period {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  width: 200px;
  flex-shrink: 0;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(16px);
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step:hover {
  border-color: rgba(80,231,88,.3);
  transform: translateY(-4px);
}

.step__num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
  opacity: .7;
}

.step h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
}

.step__arrow {
  color: var(--muted);
  font-size: 1.4rem;
  padding: 0 12px;
  margin-top: 36px;
  flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition), color var(--transition);
}
.faq-item__q:hover { background: rgba(255,255,255,.03); color: var(--green); }
.faq-item.open .faq-item__q { color: var(--green); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  padding: 0 24px;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
}
.faq-item.open .faq-item__a {
  max-height: 200px;
  padding: 0 24px 22px;
}

/* ============================================================
   CONTACT / CTA BLOCK
   ============================================================ */
.cta-block {
  display: flex;
  justify-content: center;
}

.cta-block__inner {
  background: var(--dark-2);
  border: 1px solid rgba(80,231,88,.25);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.cta-block__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(80,231,88,.07), transparent);
  pointer-events: none;
}

.cta-block__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.cta-block__sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 460px;
  line-height: 1.65;
}

.cta-block__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}

.cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@media (max-width: 600px) {
  .cta-block__inner { padding: 40px 24px; }
}

/* legacy — kept for reference, unused */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dark-4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(80,231,88,.12);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group select option { background: var(--dark-3); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(80,231,88,.1);
  border: 1px solid rgba(80,231,88,.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--green);
  font-size: .9rem;
  font-weight: 500;
}
.form-success.show { display: flex; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: rgba(80,231,88,.25);
}

.contact-card__icon {
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-bottom: 4px;
}
.contact-card__icon svg { width: 100%; height: 100%; }

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.contact-card p {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-info-block {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-info-block p {
  font-size: .83rem;
  color: var(--muted);
}
.contact-info-block strong { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer__copy {
  font-size: .82rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .steps { gap: 8px; }
  .step__arrow { display: none; }
  .step { width: calc(50% - 8px); }
}

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__stats { gap: 20px; padding: 16px 20px; }
  .stat__divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .step { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .products { grid-template-columns: 1fr; }
  .products--wide { grid-template-columns: 1fr; }
  .product-card__features--grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AOS — Animate on scroll
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}
