
/* ============================================
   Evoweb — Dark Premium B2B
   Inspired by Linear / Vercel / Stripe / Fiverr Pro
   Restrained, typographic, expensive-feeling
   ============================================ */

:root {
  /* Neutrals — charcoal with a faint navy undertone */
  --ink-1000: #08090b;
  --ink-950: #0b0c0f;
  --ink-900: #0e1014;
  --ink-850: #111318;
  --ink-800: #14171d;
  --ink-700: #1a1e26;
  --ink-600: #232831;
  --ink-500: #2d333e;
  --ink-400: #3a414d;

  --fg-100: #f5f6f8;
  --fg-200: #e6e8ec;
  --fg-300: #c4c8d1;
  --fg-400: #8a8f9c;
  --fg-500: #6a6f7c;
  --fg-600: #4d525d;

  /* Subtle accent — muted slate-blue, not neon */
  --accent: #7aa7d9;
  --accent-hover: #9bc0e6;
  --accent-deep: #4a7bb0;
  --accent-tint: rgba(122, 167, 217, 0.10);

  --success: #4caa6a;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  /* Semantic */
  --bg: var(--ink-950);
  --bg-alt: var(--ink-900);
  --bg-elev: var(--ink-850);
  --fg: var(--fg-100);
  --fg-muted: var(--fg-300);
  --fg-dim: var(--fg-400);

  --radius: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --container: 1240px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-deep); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--fg-100);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.028em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--fg-300); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.section-title { max-width: 720px; margin: 0 0 56px; }
.section-title p { color: var(--fg-400); font-size: 1.05rem; max-width: 620px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  text-decoration: none;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--fg-100);
  color: var(--ink-950);
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--fg-100);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--fg-400); background: rgba(255,255,255,0.03); }

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(11, 12, 15, 0.75);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.nav.scrolled {
  background: rgba(11, 12, 15, 0.9);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--fg-100);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 20px; height: 20px;
  background: var(--fg-100);
  display: inline-block;
  position: relative;
  border-radius: 2px;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--fg-400);
  position: relative;
  transition: color .15s;
}
.nav-link:hover { color: var(--fg-100); }
.nav-link.active { color: var(--fg-100); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -24px;
  height: 1px;
  background: var(--accent);
}

.nav-cta { margin-left: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-100);
  width: 40px; height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 32px 24px;
  background: var(--ink-950);
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--fg-200);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.95rem;
}
.mobile-menu a:last-child { border-bottom: none; color: var(--accent); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 120px 0 120px;
  background:
    radial-gradient(900px 500px at 80% -20%, rgba(122,167,217,0.07), transparent 60%),
    var(--ink-950);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Subtle grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-bg { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 1.13rem;
  color: var(--fg-300);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  color: var(--fg-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta span { display: flex; flex-direction: column; gap: 6px; }
.hero-meta strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg-100);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-transform: none;
}

/* ============ Cards / Grids ============ */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-plain { display: grid; gap: 20px; background: transparent; border: none; }
.grid-plain.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-plain.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--ink-900);
  padding: 36px 32px;
  transition: background-color .18s, box-shadow .2s ease;
  position: relative;
}
.card:hover { background: var(--ink-850); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }

.service-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 28px;
  display: block;
}
.card h3 {
  color: var(--fg-100);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}
.card p { color: var(--fg-400); font-size: 0.94rem; margin: 0; line-height: 1.65; }

/* ============ Why us ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-item {
  background: var(--ink-900);
  padding: 36px 32px;
  transition: background-color .18s;
}
.why-item:hover { background: var(--ink-850); }
.why-item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--fg-100);
}
.why-item h3::before {
  content: "—";
  color: var(--accent);
  font-weight: 500;
}
.why-item p { color: var(--fg-400); margin: 0; font-size: 0.93rem; line-height: 1.65; }

/* ============ Stats — darker band ============ */
.stats-band {
  background: var(--ink-1000);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--fg-100);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.stat-label {
  color: var(--fg-500);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ============ Reviews ============ */
.review {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: border-color .2s, transform .25s ease, box-shadow .25s ease, background-color .2s;
}
.review:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--ink-850);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 3px; }
.review-text {
  color: var(--fg-200);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.65;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 36px; height: 36px;
  background: var(--ink-700);
  color: var(--fg-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.review-meta { display: flex; flex-direction: column; }
.review-name { font-weight: 600; color: var(--fg-100); font-size: 0.88rem; }
.review-date { color: var(--fg-500); font-size: 0.78rem; }

/* ============ Cases ============ */
.case {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .25s ease, box-shadow .25s ease, background-color .2s;
  text-align: left;
  padding: 0;
  width: 100%;
  color: inherit;
  display: block;
}
.case:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--ink-850);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.case-img {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 24px 28px 28px; }
.case-category {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.case-title {
  font-size: 1.12rem;
  margin: 10px 0 0;
  color: var(--fg-100);
  font-weight: 600;
}

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
}
.modal-img {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, var(--ink-800), var(--ink-700));
  position: relative;
  border-bottom: 1px solid var(--line);
}
.modal-img::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(122,167,217,0.1), transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,0.018) 24px 25px);
}
.modal-body { padding: 36px; }
.modal-body p { color: var(--fg-300); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  color: var(--fg-100);
  width: 34px; height: 34px;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tag {
  background: var(--ink-800);
  color: var(--fg-200);
  border: 1px solid var(--line);
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

/* ============ Page header ============ */
.page-header {
  padding: 88px 0 64px;
  background:
    radial-gradient(700px 380px at 80% -20%, rgba(122,167,217,0.06), transparent 60%),
    var(--ink-950);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 18px; max-width: 800px; }
.page-header p { color: var(--fg-400); max-width: 640px; font-size: 1.05rem; }

/* ============ Reviews summary ============ */
.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
}
.rating-big {
  text-align: left;
  padding-right: 56px;
  border-right: 1px solid var(--line);
}
.rating-score {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  color: var(--fg-100);
  line-height: 1;
  letter-spacing: -0.03em;
}
.rating-big .stars { font-size: 1.05rem; margin: 14px 0 8px; display: block; }
.rating-meta { color: var(--fg-500); font-size: 0.85rem; }
.rating-bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 14px; font-size: 0.84rem; color: var(--fg-400); }
.bar { flex: 1; height: 6px; background: var(--ink-800); overflow: hidden; border-radius: 3px; }
.bar-fill { height: 100%; background: var(--accent); }
.bar-label { width: 70px; text-align: left; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}
.info-card {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color .2s, transform .25s ease, box-shadow .25s ease, background-color .2s;
}
.info-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--ink-850);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.info-card h3 {
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.info-card a, .info-card p { color: var(--fg-200); margin: 0 0 6px; font-size: 0.94rem; }
.info-card a { display: block; }
.info-card a:hover { color: var(--accent); }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--fg-400);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { color: var(--fg-100); font-weight: 500; }

.form-card {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-card h2 { color: var(--fg-100); }
form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  font-size: 0.74rem;
  color: var(--fg-400);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
input, select, textarea {
  background: var(--ink-1000);
  border: 1px solid var(--line-strong);
  color: var(--fg-100);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--fg-500); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122,167,217,0.12);
}
textarea { resize: vertical; min-height: 140px; }
.form-success {
  background: rgba(76, 170, 106, 0.08);
  border: 1px solid rgba(76, 170, 106, 0.25);
  color: #7fd098;
  padding: 14px 16px;
  font-size: 0.92rem;
  border-radius: var(--radius);
}
.field-error { color: #e88a8a; font-size: 0.82rem; }
.integration-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--ink-1000);
  border: 1px dashed var(--line-strong);
  color: var(--fg-500);
  font-size: 0.82rem;
  border-radius: var(--radius);
}
.integration-note code {
  background: var(--ink-800);
  padding: 1px 6px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--fg-300);
  border-radius: 3px;
}

/* ============ Footer ============ */
footer {
  margin-top: 0;
  background: var(--ink-1000);
  color: var(--fg-300);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
}
footer .logo { color: var(--fg-100); }
footer .logo-mark { background: var(--fg-100); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-grid h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-500);
  margin-bottom: 18px;
  font-weight: 600;
}
.foot-grid p, .foot-grid a {
  color: var(--fg-400);
  font-size: 0.9rem;
  display: block;
  margin: 0 0 10px;
}
.foot-grid a:hover { color: var(--fg-100); }
.foot-bar {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--fg-600);
  font-size: 0.8rem;
}

/* ============ Animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-3, .grid-plain.grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .rating-summary { grid-template-columns: 1fr; gap: 28px; }
  .rating-big { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 28px; }
  .hero-meta { gap: 32px; }
}
@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
  .grid-3, .grid-2, .grid-plain.grid-3, .grid-plain.grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bar { flex-direction: column; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: block; }
  .form-card { padding: 28px; }
  .nav-link.active::after { display: none; }
}
.case-1 {
  background-image: url("./cases-pics/case1.png");
}

.case-2 {
  background-image: url("./cases-pics/case2.png");
}

.case-3 {
  background-image: url("./cases-pics/case3.png");
}

.case-4 {
  background-image: url("./cases-pics/case4.png");
}

.case-5 {
  background-image: url("./cases-pics/case5.png");
}

.case-6 {
  background-image: url("./cases-pics/case6.png");
}

.case-img::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.45),
      rgba(0,0,0,.1)
    );

  z-index: 1;
}

.case-img {
  transition: transform .45s ease;
}

.case:hover .case-img {
  transform: scale(1.05);
}