/* =========================================================
   IT Partners — styles
   Palette: lime #bdd328 | blue #1483b8 | orange #ec9f37
   Font: Trebuchet MS
   ========================================================= */

:root {
  --lime: #bdd328;
  --lime-dark: #9fb31f;
  --blue: #1483b8;
  --blue-dark: #0f6893;
  --orange: #ec9f37;
  --orange-dark: #d8871a;

  --ink: #16232b;
  --ink-soft: #47606d;
  --line: #e3e9ec;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 40, 55, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 40, 55, 0.14);
  --container: 1160px;
  --font: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

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

.grad {
  background: linear-gradient(100deg, var(--blue), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 131, 184, 0.28);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime-dark); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 18px rgba(16, 40, 55, 0.05);
}

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

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-size: 1.25rem; font-weight: 400; letter-spacing: 0.02em; }
.brand-name strong { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.18s ease;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--lime);
  transition: width 0.22s ease;
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--lime);
  color: var(--ink);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--lime-dark); }

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

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 100px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(20, 131, 184, 0.12), transparent 60%),
    radial-gradient(500px 380px at 10% 90%, rgba(189, 211, 40, 0.16), transparent 60%),
    radial-gradient(420px 320px at 60% 100%, rgba(236, 159, 55, 0.12), transparent 60%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 20px 0 30px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-badges li { font-size: 0.95rem; color: var(--ink-soft); }
.hero-badges strong { display: block; color: var(--ink); font-size: 1.25rem; }

/* Code window */
.code-window {
  background: #0f2530;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.code-dots { display: flex; gap: 8px; padding: 14px 16px; background: #0b1c25; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: var(--orange); }
.code-dots span:nth-child(2) { background: var(--lime); }
.code-dots span:nth-child(3) { background: var(--blue); }
.code-window pre {
  padding: 22px;
  overflow-x: auto;
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #cdd9df;
}
.c-key { color: #7fd4ff; }
.c-type { color: var(--lime); }
.c-str { color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.icon-lime { background: rgba(189, 211, 40, 0.18); color: var(--lime-dark); }
.icon-blue { background: rgba(20, 131, 184, 0.14); color: var(--blue); }
.icon-orange { background: rgba(236, 159, 55, 0.18); color: var(--orange-dark); }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.check-list { list-style: none; margin: 24px 0 30px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-label { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Process ---------- */
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Tech Stack ---------- */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; margin-top: 26px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.contact-list .ci {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(20, 131, 184, 0.1);
  color: var(--blue);
  border-radius: 10px;
}
.contact-list a:hover { color: var(--blue); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 131, 184, 0.14);
}
.field textarea { resize: vertical; }
.field input.invalid,
.field textarea.invalid { border-color: #e0574f; box-shadow: 0 0 0 3px rgba(224, 87, 79, 0.12); }

.form-note { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: var(--lime-dark); }
.form-note.err { color: #e0574f; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2530;
  color: #b9c7cf;
  padding: 46px 0;
}
.footer-inner { text-align: center; display: grid; gap: 12px; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name strong { color: var(--lime); }
.footer-tag { color: #90a3ad; }
.footer-copy { font-size: 0.86rem; color: #6f828c; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .section { padding: 60px 0; }
}
