:root {
  --bg: #020617;
  --bg-soft: #02091a;
  --card: #020b1f;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --accent-strong: #4ade80;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.35);
  --danger: #fb7185;
}

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

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #020b1f 0, #020617 45%, #020617 100%);
}

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

/* MATRIX CANVAS */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  backdrop-filter: blur(4px);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92));
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 8, 23, 0.95),
    rgba(2, 8, 23, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.35), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.8);
  overflow: hidden;
}

.logo-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.nav-title {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.65);
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.28),
    rgba(8, 47, 35, 0.95)
  );
  color: #ecfdf3;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow:
    0 0 25px rgba(34, 197, 94, 0.65),
    0 0 80px rgba(34, 197, 94, 0.18);
}

.nav-cta span.blink {
  width: 6px;
  height: 12px;
  background: #bbf7d0;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* LAYOUT */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 4rem;
}

section {
  margin-bottom: 3.4rem;
}

section h2 {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.7rem;
  align-items: center;
  padding-top: 2.4rem;
  padding-bottom: 3.2rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.hero-title .accent {
  color: var(--accent-strong);
  text-shadow:
    0 0 20px rgba(34, 197, 94, 0.9),
    0 0 80px rgba(34, 197, 94, 0.4);
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-sub strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: rgba(34, 197, 94, 0.7);
  color: #020617;
  font-weight: 600;
  box-shadow:
    0 12px 40px rgba(34, 197, 94, 0.55),
    0 0 60px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta span::before {
  content: "▮";
  color: var(--accent-strong);
  font-size: 0.7rem;
}

/* HERO TERMINAL CARD */
.hero-terminal {
  background: radial-gradient(circle at top, #020b2b, #020617);
  border-radius: 1.25rem;
  padding: 1.2rem 1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.95),
    0 0 60px rgba(34, 197, 94, 0.25);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New",
    monospace;
  font-size: 0.8rem;
  color: #e5fdf3;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.terminal-dots {
  display: flex;
  gap: 0.3rem;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff5f57;
}
.terminal-dot:nth-child(2) {
  background: #febc2e;
}
.terminal-dot:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  font-size: 0.72rem;
  opacity: 0.8;
}

.terminal-body {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.75rem 0.85rem;
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  max-height: 260px;
  overflow: hidden;
}

.log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.22rem;
}

.log-line span.prefix {
  color: var(--accent-strong);
}

.log-line span.cursor {
  display: inline-block;
  width: 7px;
  margin-left: 2px;
  background: var(--accent-strong);
  animation: blink 1s steps(2, start) infinite;
}

/* GRID HELPERS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* GENERIC CARDS */
.card {
  background: var(--card);
  border-radius: 1rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
  font-size: 0.9rem;
}

.card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: var(--accent-strong);
}

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

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 0.9rem 0.95rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  font-size: 0.88rem;
}

.service-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--accent-strong);
}

.service-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.service-tag {
  font-size: 0.72rem;
  color: #a5b4fc;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.pricing-card.highlight {
  border-color: var(--accent);
  box-shadow:
    0 0 26px rgba(34, 197, 94, 0.7),
    0 32px 80px rgba(15, 23, 42, 1);
  transform: translateY(-3px);
}

.pricing-name {
  font-family: "SF Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  color: var(--accent-strong);
}

.pricing-tagline {
  font-size: 0.86rem;
  color: var(--muted);
}

.pricing-price {
  font-size: 1.3rem;
  font-weight: 600;
}

.pricing-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.3rem;
}

.pricing-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.pricing-list li {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  align-items: flex-start;
}

.pricing-list li::before {
  content: "•";
  color: var(--accent-strong);
  font-size: 0.8rem;
  margin-top: 2px;
}

.pricing-cta {
  margin-top: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.84rem;
  text-align: center;
  cursor: pointer;
  display: inline-block;
}

.pricing-card.highlight .pricing-cta {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  font-weight: 600;
  border-color: rgba(34, 197, 94, 0.7);
}

/* BLOG PREVIEW */
.blog-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.blog-list li {
  margin-bottom: 0.55rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.blog-list li::before {
  content: "▶";
  color: var(--accent-strong);
  font-size: 0.72rem;
  margin-top: 3px;
}

.blog-link span.tag {
  font-size: 0.78rem;
  color: #a5b4fc;
  margin-left: 0.4rem;
}

.blog-main-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--accent-strong);
}

.blog-main-link::after {
  content: "↗";
  font-size: 0.8rem;
}

/* CONTACT & SOCIAL */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.contact-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.86rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
}

.contact-card form label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  font-size: 0.84rem;
  margin-bottom: 0.75rem;
  outline: none;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
}

.contact-card button {
  width: 100%;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(34, 197, 94, 0.7);
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-small {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.list {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.list li::before {
  content: "›";
  color: var(--accent-strong);
  margin-top: 1px;
}

.social {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.social a {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e5e7eb;
}

.social a span.icon {
  font-size: 0.9rem;
  color: var(--accent-strong);
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.2rem 1.5rem 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.8)
  );
}

footer span {
  color: var(--accent-strong);
  font-family: "SF Mono", ui-monospace, monospace;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-terminal {
    order: -1; /* terminal on top */
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .container {
    padding: 2.1rem 1.25rem 3.2rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-text,
  .hero-title,
  .hero-sub,
  .hero-meta {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  /* mobile terminal smaller & centered */
  .hero-terminal {
    max-width: 360px;
    margin: 0 auto 1.1rem;
    padding: 1rem 0.85rem 0.9rem;
    font-size: 0.72rem;
  }

  .terminal-body {
    padding: 0.6rem 0.7rem;
    max-height: 210px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 0.87rem;
  }

  .services-grid,
  .pricing-grid,
  .grid-2,
  .two-col {
    justify-items: center;
  }

  .service-card,
  .pricing-card,
  .card,
  .contact-card {
    width: 100%;
    max-width: 430px;
  }

  .blog-list,
  .list {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }

  .social {
    justify-content: center;
  }
}
