/* ===== Variables ===== */
:root {
  --brand: #326CE5;          /* Kubernetes blue */
  --brand-dark: #244fb0;
  --brand-soft: #eaf1fd;
  --ink: #0f1b2d;
  --body: #445068;
  --muted: #6b7688;
  --line: #e6eaf1;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --bg-soft: #fbfcfe;
  --white: #ffffff;
  --green: #2fbf71;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(26, 51, 97, 0.08);
  --shadow-sm: 0 4px 16px rgba(26, 51, 97, 0.06);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.accent { color: var(--brand); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(50, 108, 229, 0.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(50, 108, 229, 0.35); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; }
.logo-dot { color: var(--brand); }
.logo-mark { display: grid; place-items: center; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--body);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav .nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-soft));
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; color: var(--ink); font-weight: 800; }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.cluster-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cluster-card-head { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-bottom: 16px; }
.cluster-card-head .badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--green); background: #e7f8ef; padding: 4px 10px; border-radius: 999px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(47,191,113,0.18); }
.cluster-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.node {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--body);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.node span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.node.ghost { color: var(--muted); font-style: italic; }
.node.ghost span { background: var(--muted); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.cluster-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.76rem; line-height: 1.6; color: #3b4763;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; white-space: pre;
}

/* ===== Strip ===== */
.strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-title { text-align: center; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 22px; }
.strip-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.strip-logos li { font-weight: 700; color: #9aa4b5; font-size: 1.05rem; transition: color 0.2s; }
.strip-logos li:hover { color: var(--brand); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* ===== Cards / Services ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--brand-soft); border-radius: 14px; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--body); font-size: 0.97rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num { font-size: 1.4rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ===== Why ===== */
.why-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.check-list { display: grid; gap: 14px; margin-top: 12px; }
.check-list li { position: relative; padding-left: 34px; font-size: 1.02rem; color: var(--body); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 50%; font-size: 0.75rem; font-weight: 700;
}
.why-highlight { display: grid; gap: 20px; }
.highlight-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 12px 30px rgba(50,108,229,0.28); }
.highlight-num { font-size: 2.2rem; font-weight: 800; display: block; margin-bottom: 6px; }
.highlight-card p { color: rgba(255,255,255,0.9); }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; }
.about-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.metric { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.metric strong { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); }
.metric span { font-size: 0.92rem; color: var(--muted); }

/* ===== Contact ===== */
.section-cta { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.contact-text p { font-size: 1.08rem; color: var(--body); margin-bottom: 24px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { font-size: 1.02rem; }
.contact-list a:hover { color: var(--brand); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 0.97rem;
  color: var(--ink); background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.9rem; font-weight: 500; min-height: 20px; }
.form-note.success { color: var(--green); }
.form-note.error { color: #e0475b; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c4cdde; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; }
.footer-brand p { margin-top: 8px; color: #8a95a9; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 0.95rem; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 0.88rem; color: #8a95a9; }

/* ===== Language switch ===== */
.lang-switch { display: inline-flex; align-items: center; margin-left: 10px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 12px; font-size: 0.82rem; font-weight: 700; color: var(--muted); border-radius: 0; }
.lang-switch a:hover { background: var(--brand-soft); color: var(--brand); }
.lang-switch a.active { background: var(--brand); color: #fff; }

/* ===== Tech Stack ===== */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.tech-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.tech-cat h3 { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tech-cat ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-cat li { font-size: 0.85rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }

/* ===== Testimonials ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 8px; left: 22px; font-size: 3.4rem; color: var(--brand-soft); font-family: Georgia, serif; line-height: 1; }
.quote blockquote { position: relative; font-size: 1rem; color: var(--ink); line-height: 1.6; margin-bottom: 22px; padding-top: 14px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.q-avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem; border-radius: 50%; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 0.96rem; }
.quote figcaption small { color: var(--muted); font-size: 0.85rem; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 24px; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; color: var(--body); font-size: 0.97rem; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 8px 24px rgba(50,108,229,0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-dark); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .why-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tech-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform 0.35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .lang-switch { margin: 10px 0 0; align-self: flex-start; }
  .cards, .steps, .about-metrics, .tech-grid, .quotes { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 56px; }
  .hero-stats { gap: 28px; }
}
