/* ============================================================
   LVAX SOFTWARE — Digital Forge Theme
   Dark, technical, editorial. No AI clichés.
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #181818;
  --border:      #1f1f1f;
  --border-hover:#333333;
  --text:        #d4d4d4;
  --text-muted:  #888888;
  --heading:     #f5f5f5;
  --accent:      #8cb43f;
  --accent-hover:#7aa234;
  --accent-dim:  rgba(140,180,63,.08);
  --white:       #ffffff;
  --whatsapp:    #25D366;

  --ff-heading: 'Space Grotesk', -apple-system, sans-serif;
  --ff-body:    'Inter', -apple-system, sans-serif;
  --ff-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  clamp(2.5rem, 5vw, 4rem);

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;

  --radius:    2px;
  --radius-sm: 2px;
  --radius-md: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--heading);
  line-height: 1.2;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
}

.section__label {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: var(--fs-2xl);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

.text-center { text-align: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,.95);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: none;
  padding: 0 40px;
}

.navbar__logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--heading);
  letter-spacing: -0.03em;
}
.navbar__logo span {
  color: var(--accent);
  display: inline-block;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.navbar__links {
  display: none;
  gap: 32px;
}

.navbar__links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--heading); }
.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }

.navbar__cta {
  display: none;
}

/* Hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.navbar__mobile.open { display: block; }
.navbar__mobile a {
  display: block;
  padding: 12px 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.navbar__mobile a:last-child { border-bottom: none; }
.navbar__mobile a:hover { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
  position: relative;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(140,180,63,.2);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(37,211,102,.2);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--fs-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 0;
  overflow: clip;
}

/* Full-width header: badge + title */
.hero__header {
  width: 100%;
  margin-bottom: 24px;
}

/* Two-column bottom row */
.hero__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Badge — top of hero content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__badge-bar {
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 1px;
}

/* Title — full bleed, massive */
.hero__title {
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 0;
  letter-spacing: -0.04em;
  width: 100%;
}

/* Subtitle + buttons */
.hero__subtitle {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Terminal — bottom right, partially overflowing */
.hero__terminal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  height: 340px;
  display: block;
  transform: rotate(-5deg);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal__dots {
  display: flex;
  gap: 6px;
}

.terminal__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
}
.terminal__dots span:first-child { background: #ff5f57; }
.terminal__dots span:nth-child(2) { background: #febc2e; }
.terminal__dots span:nth-child(3) { background: #28c840; }

.terminal__title {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.terminal__code {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  padding: 20px;
  color: var(--text);
  white-space: pre;
  overflow-x: hidden;
  overflow-y: scroll;
  height: calc(100% - 40px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  counter-reset: line;
}

.terminal__code::-webkit-scrollbar {
  display: none;
}

.terminal__code .line {
  display: block;
  counter-increment: line;
}

.terminal__code .line::before {
  content: counter(line, decimal-leading-zero);
  display: inline-block;
  width: 28px;
  margin-right: 16px;
  color: var(--text-muted);
  opacity: .4;
  text-align: right;
  font-size: 0.7rem;
}

/* Syntax highlighting */
.t-kw  { color: #c678dd; }  /* keywords */
.t-var { color: #e5c07b; }  /* variables */
.t-key { color: #e06c75; }  /* object keys */
.t-str { color: var(--accent); }  /* strings — accent color */
.t-fn  { color: #61afef; }  /* functions */
.t-cmt { color: #5c6370; font-style: italic; }  /* comments */

.terminal__cursor {
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
  font-weight: 100;
}

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

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.4s var(--ease-out);
  position: relative;
}
.service-card:hover {
  background: var(--surface);
}
.service-card:hover .service-card__index {
  color: var(--accent);
}

.service-card__index {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.service-card__list {
  margin-top: 20px;
}
.service-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: 8px;
}
.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: var(--fs-xs);
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits__grid {
  display: grid;
  gap: 32px;
}

.benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit__marker {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: 10px;
  background: var(--accent);
  border-radius: 0;
}

.benefit__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  margin-bottom: 6px;
}

.benefit__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio__grid {
  display: grid;
  gap: 24px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out);
}
.portfolio-card:hover {
  border-color: var(--border-hover);
}

.portfolio-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(30%) brightness(.9);
  transition: filter 0.6s var(--ease-out);
}
.portfolio-card:hover .portfolio-card__image {
  filter: grayscale(0%) brightness(1);
}

.portfolio-card__body {
  padding: 24px;
}

.portfolio-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 8px;
}

.portfolio-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.portfolio-card__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(140,180,63,.1);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process__steps {
  display: grid;
  gap: 32px;
  position: relative;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.step:hover .step__number {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.step__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  margin-bottom: 6px;
}

.step__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid {
  display: grid;
  gap: 24px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(140,180,63,.06);
}
.pricing-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(140,180,63,.1);
}

.pricing-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: 3px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 12px;
}

.pricing-card__price {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--heading);
  letter-spacing: -0.03em;
}

.pricing-card__from {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 32px;
}
.pricing-card__features li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  margin-bottom: 10px;
  color: var(--text);
}
.pricing-card__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: var(--fs-xs);
}

.pricing-card .btn { width: 100%; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__content {
  max-width: 680px;
}

.about__text {
  font-size: var(--fs-md);
  line-height: 1.85;
  margin-bottom: 20px;
  color: var(--text);
}

.about__values {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.about__value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--heading);
}

.about__value-marker {
  font-family: var(--ff-mono);
  color: var(--accent);
  font-size: var(--fs-sm);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: grid;
  gap: 48px;
}

.contact__info h3 {
  font-size: var(--fs-xl);
  margin-bottom: 16px;
}

.contact__info > p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.contact__detail-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact__detail a {
  font-size: var(--fs-base);
  color: var(--heading);
  transition: color var(--transition);
}
.contact__detail a:hover {
  color: var(--accent);
}

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
  opacity: .5;
}
.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__submit {
  width: 100%;
}

.form__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  font-family: var(--ff-mono);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--heading);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.footer__logo span { color: var(--accent); }

.footer__desc {
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: 1.65;
}

.footer__heading {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--heading);
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

.footer__bar {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: var(--fs-xs);
  font-family: var(--ff-mono);
  color: var(--text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE — Tablet (768px)
   ============================================================ */
@media (min-width: 768px) {
  .section { padding: 120px 0; }
  .section__title { font-size: var(--fs-3xl); }

  .hero {
    padding: 140px 40px 0;
  }

  .hero__columns {
    grid-template-columns: 1fr 1fr;
  }

  .hero__terminal {
    height: 380px;
  }

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

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

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

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

  .contact__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .navbar__links {
    display: flex;
  }
  .navbar__cta {
    display: inline-flex;
  }
  .navbar__toggle {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .hero {
    padding: 140px 60px 0;
  }

  .hero__terminal {
    height: 420px;
  }

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

  .process__steps {
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
  }
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
