/*
Theme Name: K8Stack
Theme URI: https://k8stack.top
Author: Antón Chernyaev
Description: Landing profesional para servicios DevOps, cloud y Kubernetes.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: k8stack
*/

:root {
  --ink: #101a27;
  --muted: #5c6876;
  --paper: #f5f7f4;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(16, 26, 39, 0.12);
  --lime: #c8ff4d;
  --lime-deep: #8fc624;
  --teal: #0d675d;
  --night: #0d171d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 26, 31, 0.11);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 23, 29, 0.88);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--night);
  background: var(--lime);
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 0 0 5px rgba(200, 255, 77, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 720;
}

.nav-links a:not(.button) {
  color: rgba(255, 255, 255, 0.76);
  transition: color 180ms ease;
}

.nav-links a:not(.button):hover {
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--night);
  background: var(--lime);
  font-weight: 820;
  line-height: 1.15;
  box-shadow: 0 12px 30px rgba(155, 211, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #d7ff7d;
  box-shadow: 0 18px 36px rgba(155, 211, 42, 0.25);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(44, 194, 164, 0.2), transparent 34%),
    radial-gradient(circle at 18% 90%, rgba(200, 255, 77, 0.12), transparent 36%),
    var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-grid {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding-block: 100px 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(49px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

h1 span {
  color: var(--lime);
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
}

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

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: rgba(6, 14, 18, 0.78);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b60;
}

.dot:nth-child(2) { background: #ffc84a; }
.dot:nth-child(3) { background: var(--lime); }
.terminal-title { margin-left: auto; }

.terminal-body {
  padding: 26px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.85;
}

.terminal-line {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.terminal-line + .terminal-line {
  margin-top: 9px;
}

.terminal-line strong {
  color: var(--lime);
  font-weight: 700;
}

.terminal-line em {
  color: #72e2d2;
  font-style: normal;
}

.terminal-ok {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 255, 77, 0.22);
  border-radius: 14px;
  color: var(--lime);
  background: rgba(200, 255, 77, 0.07);
  font-size: 13px;
}

.proof-bar {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.proof-item {
  padding: 30px 34px;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-value {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.proof-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding-block: clamp(90px, 10vw, 140px);
}

.section-head {
  max-width: 750px;
  margin-bottom: 52px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.section-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 40px rgba(15, 30, 35, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-number {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 58px;
  border-radius: 14px;
  color: var(--teal);
  background: rgba(13, 103, 93, 0.09);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.service-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #46515e;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.dark-section {
  color: var(--white);
  background: var(--night);
}

.dark-section .section-intro {
  color: rgba(255, 255, 255, 0.62);
}

.experience-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.experience-aside {
  position: sticky;
  top: 118px;
}

.experience-aside blockquote {
  margin: 46px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--lime);
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding-block: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline-date {
  color: var(--lime);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.timeline-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.price-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.price-card.featured {
  color: var(--white);
  background: var(--teal);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(13, 103, 93, 0.2);
}

.price-kicker {
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured .price-kicker {
  color: var(--lime);
}

.price-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.price {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 930;
  letter-spacing: -0.065em;
  line-height: 1;
}

.price small {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
}

.price-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.price-card.featured p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.price-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-chip {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #43505d;
  font-size: 14px;
  font-weight: 780;
}

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 9vw, 120px);
  color: var(--white);
  background: var(--teal);
}

.cta::after {
  content: "K8S";
  position: absolute;
  right: -20px;
  bottom: -76px;
  color: rgba(255, 255, 255, 0.05);
  font-size: clamp(180px, 29vw, 440px);
  font-weight: 950;
  letter-spacing: -0.11em;
  line-height: 0.8;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 70px;
}

.cta h2 {
  max-width: 720px;
}

.cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 780;
  transition: background 180ms ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-link span:last-child {
  color: var(--lime);
  font-size: 19px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.64);
  background: #091116;
}

.footer-row {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .nav-links a:not(.button) {
    display: none;
  }

  .hero-grid,
  .experience-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 80px 110px;
  }

  .terminal-card {
    max-width: 620px;
    transform: none;
  }

  .experience-aside {
    position: static;
  }

  .experience-aside blockquote {
    max-width: 680px;
  }

  .cta-inner {
    align-items: start;
  }

  .contact-list {
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: 66px;
  }

  .nav .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 66px);
  }

  .hero-grid {
    min-height: auto;
    gap: 54px;
    padding-block: 72px 98px;
  }

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

  .proof-item {
    padding: 22px 25px;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 26px;
  }

  .service-number {
    margin-bottom: 38px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .price-card {
    padding: 27px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

