/* ============================================================
   InciGes — landing principal
   ============================================================ */

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(0.52 0.04 250 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.52 0.04 250 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
[data-theme="dark"] .hero__grid {
  background-image:
    linear-gradient(oklch(0.28 0.04 250 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.28 0.04 250 / 0.08) 1px, transparent 1px);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }
.hero__sub {
  font-size: 18px; color: var(--text-2); line-height: 1.7;
  max-width: 520px; margin-bottom: 36px;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex; gap: 44px; flex-wrap: wrap;
}
.hero__stat .num {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--accent);
}
.hero__stat .lbl {
  font-size: 13px; color: var(--text-2); margin-top: 6px;
}

/* Hero visual: terminal */
.hero__visual { position: relative; }

.term {
  background: oklch(0.08 0.014 250);
  border: 1px solid oklch(0.22 0.03 250);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3), 0 0 0 1px oklch(0.35 0.08 155 / 0.15);
  overflow: hidden;
  color: oklch(0.78 0.01 250);
}
.term__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: oklch(0.12 0.016 250);
  border-bottom: 1px solid oklch(0.22 0.02 250);
}
.term__dots { display: flex; gap: 6px; }
.term__dots span { width: 10px; height: 10px; border-radius: 50%; }
.term__dots span:nth-child(1) { background: oklch(0.65 0.18 25); }
.term__dots span:nth-child(2) { background: oklch(0.78 0.18 85); }
.term__dots span:nth-child(3) { background: oklch(0.65 0.18 145); }
.term__title {
  flex: 1; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: oklch(0.48 0.014 240);
}
.term__body {
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; line-height: 1.7;
  color: oklch(0.72 0.01 240);
  min-height: 280px;
}
.term__line { opacity: 0; animation: ig-term-line 0.5s ease forwards; }
.term__line .prompt { color: oklch(0.72 0.19 155); }
.term__line .key    { color: oklch(0.68 0.15 235); }
.term__line .str    { color: oklch(0.78 0.16 75); }
.term__line .ok     { color: oklch(0.74 0.16 150); }
.term__line .dim    { color: oklch(0.48 0.014 240); }
.term__line:nth-child(1) { animation-delay: 0.4s; }
.term__line:nth-child(2) { animation-delay: 0.9s; }
.term__line:nth-child(3) { animation-delay: 1.4s; }
.term__line:nth-child(4) { animation-delay: 1.9s; }
.term__line:nth-child(5) { animation-delay: 2.4s; }
.term__line:nth-child(6) { animation-delay: 2.9s; }
.term__line:nth-child(7) { animation-delay: 3.4s; }
.term__line:nth-child(8) { animation-delay: 3.9s; }
.term__line:nth-child(9) { animation-delay: 4.4s; }
.term__line:nth-child(10) { animation-delay: 4.9s; }
@keyframes ig-term-line {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.term__cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); vertical-align: middle;
  animation: ig-blink 1s steps(1) infinite;
}
@keyframes ig-blink { 50% { opacity: 0; } }

/* Floating badges */
.badge-float {
  position: absolute;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-2);
  animation: ig-float 4.5s ease-in-out infinite;
  font-size: 13px;
}
.badge-float .lbl { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.badge-float .val { font-weight: 700; color: var(--text); }
.badge-float .val.accent  { color: var(--accent); }
.badge-float .val.accent2 { color: var(--accent-2); }
.badge-float--tr { top: -18px;   right: -18px; }
.badge-float--bl { bottom: 30px; left: -28px; animation-delay: 1.2s; }
.badge-float--br { bottom: -16px; right: 24px; animation-delay: 2.2s; }

/* SECTIONS */
.section {
  padding: 100px 24px;
}
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head h2 { margin: 18px 0 16px; }
.section__head p  { color: var(--text-2); font-size: 17px; }

/* SERVICE CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}
.svc-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  min-height: 240px;
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(140% 80% at 100% 0%, oklch(0.52 0.17 155 / 0.05), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
[data-theme="dark"] .svc-card::after {
  background: radial-gradient(140% 80% at 100% 0%, oklch(0.72 0.19 155 / 0.08), transparent 60%);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.52 0.17 155 / 0.35);
  box-shadow: var(--shadow-2);
  background: var(--bg-2);
}
.svc-card:hover::after { opacity: 1; }

.svc-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.svc-card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid oklch(0.72 0.19 155 / 0.30);
}
.svc-card__icon.blue {
  background: var(--accent-2-soft); color: var(--accent-2);
  border-color: oklch(0.68 0.15 235 / 0.30);
}
.svc-card__title {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 21px; line-height: 1.2;
  margin-bottom: 8px;
}
.svc-card__desc {
  color: var(--text-2);
  font-size: 14px; line-height: 1.6;
  flex: 1;
}
.svc-card__cta {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
}
.svc-card__cta svg { transition: transform 0.2s ease; }
.svc-card:hover .svc-card__cta svg { transform: translateX(3px); }
a.svc-card { text-decoration: none; color: inherit; }

/* CASES GRID */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}
.case-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.case-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(140% 80% at 0% 100%, oklch(0.68 0.15 235 / 0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.case-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.68 0.15 235 / 0.35);
  box-shadow: var(--shadow-2);
  background: var(--bg-2);
}
.case-card:hover::after { opacity: 1; }

.case-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.case-card__title {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.2;
}
.case-card__body { display: flex; flex-direction: column; gap: 12px; }
.case-card__row {
  display: flex; gap: 10px; font-size: 14px; line-height: 1.5;
}
.case-card__row-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-top: 2px;
}
.case-card__row-icon.problem { color: var(--danger); }
.case-card__row-icon.solution { color: var(--accent-2); }
.case-card__row-icon.result { color: var(--success); }
.case-card__row-text { color: var(--text-2); }
.case-card__row-text strong { color: var(--text); font-weight: 600; }

/* TECH SECTION */
.tech-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 900px; margin: 0 auto;
}
.tech-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ABOUT */
.about {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: var(--container); margin: 40px auto 0;
}
.about__cell {
  padding: 26px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.about__cell h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.about__cell p  { color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* CTA strip */
.cta-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px;
  background:
    radial-gradient(80% 100% at 0% 0%, oklch(0.52 0.17 155 / 0.06), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, oklch(0.50 0.14 235 / 0.05), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 40px; align-items: center;
}
[data-theme="dark"] .cta-strip {
  background:
    radial-gradient(80% 100% at 0% 0%, oklch(0.72 0.19 155 / 0.16), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, oklch(0.68 0.15 235 / 0.12), transparent 60%),
    var(--bg-1);
}
.cta-strip h2 { margin-bottom: 14px; }
.cta-strip p { color: var(--text-2); font-size: 16px; }
.cta-strip .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { padding: 110px 20px 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 520px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; padding: 40px; }
  .cta-strip .actions { justify-content: flex-start; }
  .section { padding: 80px 20px; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .hero__stat .num { font-size: 30px; }
  .badge-float--tr { top: -10px; right: -8px; }
  .badge-float--bl { left: -10px; bottom: 14px; }
  .badge-float--br { right: 8px; bottom: -10px; }
}
