/* ==========================================================================
   NevoSoftwares — site styles
   Theme: change colours / fonts in :root below.
   ========================================================================== */

:root {
  /* Colours */
  --color-bg: #f6f6f2;
  --color-surface: #ffffff;
  --color-surface-alt: #eef0f6;
  --color-ink: #0d1424;
  --color-text: #273042;
  --color-muted: #5a6476;
  --color-border: #e1e3e8;
  --color-border-strong: #c9cdd6;

  --color-primary: #2546e0;
  --color-primary-hover: #1b37bb;
  --color-primary-soft: #e8ecfd;
  --color-on-primary: #ffffff;

  --color-accent: #18a978;          /* "Müşteri Projesi" etiketi */
  --color-accent-soft: #e2f6ee;
  --color-accent-ink: #0b6145;
  --color-demo: #f2a516;            /* "Demo" etiketi */
  --color-demo-soft: #fff3db;
  --color-demo-ink: #7a4f00;

  --color-danger: #c62b2b;
  --color-danger-soft: #fdecec;
  --color-success: #138a5e;
  --color-success-soft: #e3f5ec;

  --color-dark: #0d1424;
  --color-dark-2: #151e33;
  --color-dark-text: #c7cddb;
  --color-whatsapp: #1fae54;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  --leading: 1.65;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 20, 36, 0.06);
  --shadow: 0 1px 2px rgba(13, 20, 36, 0.05), 0 8px 24px -12px rgba(13, 20, 36, 0.18);
  --shadow-lg: 0 2px 4px rgba(13, 20, 36, 0.04), 0 24px 48px -20px rgba(13, 20, 36, 0.28);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 750; }
h1 { font-size: var(--text-3xl); letter-spacing: -0.035em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
address { font-style: normal; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--color-ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; }
.section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-muted); font-size: var(--text-lg); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-primary); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--text-lg); color: var(--color-muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-surface); --btn-color: var(--color-ink); --btn-border: var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: var(--text-base); line-height: 1.2; text-decoration: none;
  color: var(--btn-color); background: var(--btn-bg); border: 1.5px solid var(--btn-border);
  cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { color: var(--btn-color); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--color-primary); --btn-color: var(--color-on-primary); --btn-border: var(--color-primary); box-shadow: 0 8px 20px -10px rgba(37, 70, 224, 0.7); }
.btn-primary:hover { --btn-bg: var(--color-primary-hover); --btn-border: var(--color-primary-hover); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-border: var(--color-ink); }
.btn-light { --btn-bg: #fff; --btn-color: var(--color-ink); --btn-border: #fff; }
.btn-sm { min-height: 40px; padding: 0.5rem 1.05rem; font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 242, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--color-ink); font-weight: 800; letter-spacing: -0.03em; font-size: 1.2rem; }
.logo:hover { color: var(--color-ink); }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--color-ink); color: #fff; font-size: 1.05rem; font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--color-primary);
}
.logo-text span { color: var(--color-primary); font-weight: 650; }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.logo-light .logo-mark { background: #fff; color: var(--color-ink); }
.logo-light .logo-text span { color: #9db0ff; }

.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: block; padding: 0.5rem 0.8rem; border-radius: 999px;
  color: var(--color-text); text-decoration: none; font-weight: 550; font-size: 0.97rem;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--color-surface-alt); color: var(--color-ink); }
.nav-link.is-active { color: var(--color-ink); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1.5px solid var(--color-border-strong); border-radius: 12px; background: var(--color-surface);
    cursor: pointer; color: var(--color-ink);
  }
  .nav-toggle-box { position: relative; width: 18px; height: 12px; }
  .nav-toggle-box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s, top 0.25s var(--ease); }
  .nav-toggle-box span:nth-child(1) { top: 0; }
  .nav-toggle-box span:nth-child(2) { top: 5px; }
  .nav-toggle-box span:nth-child(3) { top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--color-bg);
    border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s; box-shadow: var(--shadow-lg), 0 0 0 100vmax rgba(13, 20, 36, 0.35); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-link { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-cta { min-height: 48px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: var(--color-dark-text); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: var(--text-sm); }
.site-footer a { color: var(--color-dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 36ch; }
.footer-title { color: #fff; font-size: var(--text-sm); font-weight: 650; letter-spacing: 0; margin-bottom: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-contact { word-break: break-word; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #8b93a7; }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } }

/* ---------- WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-whatsapp); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 174, 84, 0.7);
  transition: transform 0.2s var(--ease);
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }

/* ---------- Error pages ---------- */
.error-page { min-height: 55vh; display: flex; align-items: center; }

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.break { overflow-wrap: anywhere; }
.h3 { font-size: var(--text-xl); }
.section-tight { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; }
.section-flush { padding-top: 0; }
.section-flush-top { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.section-head-row > div { max-width: 680px; }
.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; } }

/* Reveal animation (added by site.js only for items below the fold) */
[data-reveal] { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-pending { opacity: 0; transform: translateY(22px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6.5rem); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(13, 20, 36, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 20, 36, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 70, 224, 0.16), transparent 65%);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { max-width: 16ch; }
.hl { background: linear-gradient(transparent 62%, var(--color-primary-soft) 62%, var(--color-primary-soft) 92%, transparent 92%); padding-inline: 0.06em; }
.hero .lead { margin-bottom: 2rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1.75rem 0 0; padding: 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points .icon { width: 18px; height: 18px; color: var(--color-accent); stroke-width: 2.4; }

.hero-visual { position: relative; max-width: 560px; width: 100%; justify-self: center; animation: hero-in 0.9s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mock-window {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (min-width: 980px) { .mock-window { transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); } }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--color-border); background: #fafaf8; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e2e4ea; }
.mock-url { flex: 1; margin-left: 10px; height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; background: var(--color-surface-alt); color: var(--color-muted); font: 500 11px/1 var(--font-mono); }
.mock-body { display: grid; grid-template-columns: 92px 1fr; min-height: 290px; }
@media (min-width: 480px) { .mock-body { grid-template-columns: 120px 1fr; } }
.mock-sidebar { background: var(--color-dark); padding: 18px 12px; display: grid; align-content: start; gap: 12px; }
.mock-sidebar i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.mock-sidebar i.is-active { background: var(--color-primary); }
.mock-sidebar i.short { width: 60%; }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-heading { display: block; width: 45%; height: 12px; border-radius: 6px; background: var(--color-ink); opacity: 0.85; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { border: 1px solid var(--color-border); border-radius: 10px; padding: 10px; display: grid; gap: 7px; }
.mock-card b { display: block; width: 70%; height: 6px; border-radius: 3px; background: var(--color-border); }
.mock-card strong { display: block; width: 45%; height: 12px; border-radius: 4px; background: var(--color-primary-soft); }
.mock-card:nth-child(2) strong { background: var(--color-accent-soft); }
.mock-card:nth-child(3) strong { background: var(--color-demo-soft); }
.mock-chart { height: 92px; display: flex; align-items: flex-end; gap: 7px; padding: 10px 12px 0; border-radius: 10px; background: linear-gradient(180deg, #fbfbfd, #f1f3fa); border: 1px solid var(--color-border); }
.mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5370f0, var(--color-primary)); transform-origin: bottom; animation: bar-grow 1.2s var(--ease) both; }
.mock-chart span:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.mock-chart span:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.mock-chart span:nth-child(3) { height: 42%; animation-delay: 0.2s; }
.mock-chart span:nth-child(4) { height: 70%; animation-delay: 0.25s; }
.mock-chart span:nth-child(5) { height: 58%; animation-delay: 0.3s; }
.mock-chart span:nth-child(6) { height: 82%; animation-delay: 0.35s; }
.mock-chart span:nth-child(7) { height: 66%; animation-delay: 0.4s; }
@keyframes bar-grow { from { transform: scaleY(0.1); } to { transform: none; } }
.mock-rows i { display: block; height: 9px; border-radius: 5px; background: var(--color-surface-alt); margin-bottom: 9px; }
.mock-rows i.short { width: 65%; }
.mock-float {
  position: absolute; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.95rem; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg); color: var(--color-ink); font-size: var(--text-sm); font-weight: 650; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.mock-float .icon { width: 18px; height: 18px; color: var(--color-accent); stroke-width: 2.4; }
.mock-float-1 { left: -6px; bottom: -22px; }
.mock-float-2 { right: -6px; top: -20px; animation-delay: -3s; }
@media (min-width: 640px) { .mock-float-1 { left: -28px; bottom: 34px; } .mock-float-2 { right: -22px; } }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  display: flex; flex-direction: column; gap: 0.8rem; padding: 1.6rem 1.5rem;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.section-alt .service-card { background: var(--color-bg); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--color-border-strong); }
.service-card h3 { font-size: 1.12rem; margin: 0.3rem 0 0; }
.service-card p { margin: 0; color: var(--color-muted); flex: 1; }
.icon-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--color-primary-soft); color: var(--color-primary); }
.icon-badge-lg { width: 56px; height: 56px; border-radius: 15px; }
.icon-badge .icon { width: 24px; height: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-grid-item { display: flex; }
.project-grid-item > .project-card { flex: 1; }
.project-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }
.project-card:has(.project-title a:focus-visible) { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.project-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-cover img { transform: scale(1.035); }
.project-body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: 1.3rem 1.4rem 1.45rem; }
.project-title { font-size: 1.2rem; margin: 0; }
.project-title a { color: var(--color-ink); text-decoration: none; }
.project-title a:focus-visible { outline: none; }
.project-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-body > p { margin: 0; color: var(--color-muted); flex: 1; }
.project-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-top: 0.4rem; }
.project-actions .btn .icon { width: 16px; height: 16px; }

.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.4rem; padding: 0.28rem 0.7rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-client { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.tag-demo { background: var(--color-demo-soft); color: var(--color-demo-ink); }

.cover-placeholder {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 100%;
  padding: 1.25rem 1.35rem; color: #fff; background: var(--ph-bg); isolation: isolate; overflow: hidden;
}
.cover-placeholder::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(160deg, #000 20%, transparent 85%);
  mask-image: linear-gradient(160deg, #000 20%, transparent 85%);
}
.ph-chrome { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); }
.ph-chrome span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.ph-initials { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.ph-title { margin-top: 0.4rem; font: 500 var(--text-xs)/1.4 var(--font-mono); opacity: 0.8; }
.ph-v0 { --ph-bg: radial-gradient(130% 120% at 100% 0%, #4664ff 0%, #1c2c95 45%, #0d1424 100%); }
.ph-v1 { --ph-bg: radial-gradient(130% 120% at 0% 0%, #1fc08a 0%, #0e5e4a 50%, #0d1424 100%); }
.ph-v2 { --ph-bg: radial-gradient(130% 120% at 100% 100%, #f2a516 0%, #8a4b12 45%, #1a1424 100%); }
.ph-v3 { --ph-bg: radial-gradient(130% 120% at 0% 100%, #8b6cf6 0%, #3b237a 50%, #0d1424 100%); }

.filter-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.35rem; margin-bottom: 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; }
.filter-tab { padding: 0.55rem 1.1rem; border-radius: 999px; color: var(--color-text); text-decoration: none; font-weight: 600; font-size: var(--text-sm); transition: background-color 0.2s, color 0.2s; }
.filter-tab:hover { background: var(--color-surface-alt); color: var(--color-ink); }
.filter-tab.is-active { background: var(--color-ink); color: #fff; }
.filter-note { display: flex; gap: 0.5rem; align-items: flex-start; max-width: 70ch; margin-bottom: 2rem; color: var(--color-muted); font-size: var(--text-sm); }
.filter-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-primary); }
.empty-state { padding: 2.5rem; text-align: center; color: var(--color-muted); background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: var(--radius); }

/* ---------- Process ---------- */
.section-dark { background: var(--color-dark); color: var(--color-dark-text); position: relative; overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 100% 0%, rgba(37, 70, 224, 0.35), transparent 60%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: var(--color-dark-text); }
.section-dark .eyebrow { color: #9db0ff; }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { padding: 1.6rem 1.5rem; border-radius: var(--radius); background: var(--color-dark-2); border: 1px solid rgba(255, 255, 255, 0.08); }
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-step p { margin: 0; font-size: 0.97rem; }
.process-num { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; font: 700 var(--text-sm)/1 var(--font-mono); color: #9db0ff; }
.process-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent); }
.process-light .process-step { background: var(--color-surface); border-color: var(--color-border); }
.process-light .process-num { color: var(--color-primary); }
.process-light .process-num::after { background: linear-gradient(90deg, var(--color-border-strong), transparent); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(13, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 20, 36, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 1.75rem; }
.page-hero .tag { margin-bottom: 1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: var(--text-sm); color: var(--color-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--color-border-strong); }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-ink); font-weight: 600; }

/* ---------- Services page ---------- */
.service-index { display: grid; gap: 0.6rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) { .service-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .service-index { grid-template-columns: repeat(4, 1fr); } }
.service-index a { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-ink); text-decoration: none; font-weight: 600; font-size: var(--text-sm); line-height: 1.35; transition: border-color 0.2s, box-shadow 0.2s; }
.service-index a:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.service-index .icon { flex: none; width: 20px; height: 20px; color: var(--color-primary); }
.service-detail { display: grid; gap: 1.5rem 4rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--color-border); scroll-margin-top: calc(var(--header-h) + 8px); }
.service-detail:last-child { border-bottom: 0; }
@media (min-width: 900px) { .service-detail { grid-template-columns: 1fr 1fr; } }
.service-num { margin: 1.25rem 0 0.4rem; font: 700 var(--text-sm)/1 var(--font-mono); color: var(--color-primary); }
.service-detail-head h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
.service-detail-body { align-self: center; padding: 1.75rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.list-title { font-size: var(--text-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); font-weight: 600; margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: 0.7rem; padding: 0; margin: 0 0 1.75rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.check-list .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--color-accent); stroke-width: 2.4; }
.demo-links { margin: -0.5rem 0 1.75rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--color-bg); }
.demo-links .list-title { margin-bottom: 0.6rem; }
.demo-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.demo-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.demo-links a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--color-dark); color: var(--color-dark-text);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 140% at 100% 0%, rgba(37, 70, 224, 0.55), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.4rem; }
.cta-band p { margin: 0; max-width: 56ch; }

/* ---------- Project detail ---------- */
.detail-title { max-width: 24ch; }
.detail-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.detail-cover { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow); margin-bottom: 2rem; background: var(--color-surface-alt); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .ph-initials { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); }
.callout { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 2rem; border-radius: var(--radius); }
.callout p { margin: 0; }
.callout .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.callout-demo { background: var(--color-demo-soft); color: var(--color-demo-ink); border: 1px solid #f3d595; }
.detail-aside { position: relative; }
@media (min-width: 980px) { .info-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.info-card { padding: 1.5rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.info-title { font-size: 1.05rem; margin-bottom: 1.1rem; }
.info-list { margin: 0 0 1.5rem; }
.info-list dt { font: 600 var(--text-xs)/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.info-list dd { margin: 0.25rem 0 1.1rem; color: var(--color-ink); font-weight: 600; }
.info-list dd:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0.2rem 0 0; }
.chip { padding: 0.22rem 0.6rem; border-radius: 6px; background: var(--color-surface-alt); font: 500 var(--text-xs)/1.5 var(--font-mono); color: var(--color-text); }

/* ---------- Prose ---------- */
.prose { font-size: 1.04rem; }
.prose p, .prose li { color: var(--color-text); }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--color-primary); }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.8rem; }
.legal h2:first-of-type { margin-top: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.contact-form-wrap { scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-form-wrap:focus { outline: none; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list a, .contact-list address, .contact-list li > span > span:not(.contact-label) { color: var(--color-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--color-primary); text-decoration: underline; }
.contact-label { display: block; font: 600 var(--text-xs)/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.contact-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-primary); }
.contact-icon .icon { width: 20px; height: 20px; }
.note-card { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); }
.note-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.note-card ol { margin: 0; padding-left: 1.2rem; color: var(--color-muted); display: grid; gap: 0.35rem; }

.form-card { padding: clamp(1.4rem, 1rem + 2vw, 2.25rem); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.form-head { margin-bottom: 1.25rem; }
.form-head h3 { margin-bottom: 0.25rem; }
.form-head p { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.req { color: var(--color-danger); font-weight: 700; }
.form-grid { display: grid; gap: 1rem 1.1rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="url"],
.field input[type="password"], .field input[type="number"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--color-ink);
  background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a6476' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
}
.field input::placeholder, .field textarea::placeholder { color: #8b93a3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--color-surface); border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-danger); background: #fffafa; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px var(--color-danger-soft); }
.field-error { margin: 0; min-height: 0; color: var(--color-danger); font-size: var(--text-sm); font-weight: 550; }
.field-error:empty { display: none; }
.field-help { margin: 0; color: var(--color-muted); font-size: var(--text-xs); }
.check { display: flex; align-items: flex-start; gap: 0.65rem; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-primary); cursor: pointer; }
.check label { font-weight: 500; color: var(--color-text); cursor: pointer; }
.field-check.has-error .check label { color: var(--color-danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit .icon { width: 18px; height: 18px; }
.btn.is-loading { opacity: 0.75; pointer-events: none; }

.alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; margin-bottom: 1.25rem; border-radius: 10px; font-weight: 550; font-size: var(--text-sm); }
.alert .icon { flex: none; width: 20px; height: 20px; }
.alert:focus { outline: 3px solid currentColor; outline-offset: 2px; }
.alert-error { background: var(--color-danger-soft); color: #8f1d1d; border: 1px solid #f5c6c6; }
.alert-success { background: var(--color-success-soft); color: #0b5a3d; border: 1px solid #b9e6d1; }
.alert-info { background: var(--color-primary-soft); color: #1b2f99; border: 1px solid #cdd6fb; }

.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success:focus { outline: none; }
.form-success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.1rem; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success); animation: pop 0.5s var(--ease) both; }
.form-success-icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success p { color: var(--color-muted); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
