/* ==========================================================================
   Saventrix Digital Solutions: main stylesheet
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Header · 5 Buttons · 6 Hero
             7 Sections · 8 Portfolio · 9 Pricing · 10 FAQ · 11 Contact
             12 Footer · 13 Utilities · 14 Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --black: #08090D;
  --navy: #0B1020;
  --purple: #7C5CFC;
  --purple-deep: #6644EE;
  --blue: #00D4FF;
  --white: #FFFFFF;
  --grey: #A1A1AA;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-hover: rgba(124, 92, 252, 0.55);
  --danger: #FF7A8A;
  --ok: #4ADE9B;

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(124, 92, 252, 0.16), transparent 70%),
    radial-gradient(760px 480px at -5% 30%, rgba(0, 212, 255, 0.08), transparent 70%);
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7be9ff; }
h1, h2, h3, h4 { margin: 0; color: var(--white); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-alt { background: linear-gradient(180deg, var(--navy), rgba(11, 16, 32, 0.6)); border-block: 1px solid rgba(255, 255, 255, 0.04); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--grey); font-size: 1.05rem; max-width: 60ch; }

.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(8px, 2vw, 24px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; max-width: 18ch; }
.page-hero p { margin-top: 16px; color: var(--grey); font-size: 1.1rem; max-width: 58ch; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(8, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(8, 9, 13, 0.88); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.12em; }
.logo-text small { margin-top: 5px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.3em; color: var(--grey); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--white);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.72);
  text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--white); background: var(--glass); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--white); background: var(--glass-strong); }
.nav-links .nav-cta { margin-left: 10px; }

@media (max-width: 900px) {
  .header-inner > nav { display: contents; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px clamp(20px, 4vw, 40px) 24px;
    background: rgba(8, 9, 13, 0.97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav-links .nav-cta { margin: 10px 0 0; }
  .nav-links .nav-cta .btn { width: 100%; }
}

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.97rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: var(--glass); border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: rgba(0, 212, 255, 0.5); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* 6. Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  background: linear-gradient(120deg, #fff 30%, #c9d2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.hero-lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--grey); max-width: 52ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; height: clamp(380px, 46vw, 520px); }
.mock-note { position: absolute; left: 0; bottom: -4px; font-size: 0.75rem; color: var(--grey); }

.browser {
  position: absolute; top: 4%; left: 0; width: 88%;
  border-radius: var(--r-lg); overflow: hidden;
  background: rgba(14, 19, 38, 0.9); border: 1px solid var(--line);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.browser-url { margin-left: 10px; flex: 1; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 0.68rem; color: var(--grey); display: flex; align-items: center; padding-inline: 12px; }
.browser-body { padding: 18px; display: grid; gap: 16px; }
.mk-nav { display: flex; align-items: center; gap: 8px; }
.mk-nav b { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.mk-nav span { height: 7px; width: 34px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.mk-nav span:first-of-type { margin-left: auto; }
.mk-hero { height: 150px; border-radius: var(--r-md); padding: 20px; background: linear-gradient(135deg, rgba(124, 92, 252, 0.4), rgba(0, 212, 255, 0.18)); display: grid; align-content: center; gap: 10px; }
.mk-hero span { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.85); width: 62%; }
.mk-hero span + span { width: 44%; background: rgba(255, 255, 255, 0.5); height: 8px; }
.mk-hero em { display: block; width: 84px; height: 22px; border-radius: 999px; background: var(--white); margin-top: 6px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-grid div { height: 64px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

.phone {
  position: absolute; right: 2%; bottom: 4%; width: 31%; aspect-ratio: 9 / 18;
  border-radius: 26px; padding: 8px; background: #0e1326; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8);
}
.phone-screen { height: 100%; border-radius: 19px; background: linear-gradient(180deg, rgba(124, 92, 252, 0.45), rgba(11, 16, 32, 0.95) 60%); padding: 14px 10px; display: grid; align-content: start; gap: 8px; }
.phone-screen b { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.phone-screen span { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); width: 80%; }
.phone-screen span + span { width: 55%; background: rgba(255, 255, 255, 0.35); }
.phone-screen i { display: block; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--white);
  background: rgba(20, 26, 50, 0.72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip .icon { width: 1rem; height: 1rem; color: var(--blue); }
.chip-1 { top: 0; right: 4%; }
.chip-2 { top: 44%; left: -3%; }
.chip-3 { bottom: 12%; left: 30%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; max-width: 560px; }
  .chip-2 { left: 0; }
}
@media (max-width: 480px) {
  .hero-visual { height: 340px; }
  .chip { font-size: 0.74rem; padding: 7px 12px 7px 9px; }
  .chip-3 { left: 20%; }
}

/* 7. Sections -------------------------------------------------------------- */
/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-intro p { color: var(--grey); font-size: 1.05rem; max-width: 62ch; }
.about-intro p + p { margin-top: 16px; }
.statement-stack { display: grid; gap: 16px; }
.statement { padding: 26px; border-radius: var(--r-lg); }
.statement h3 { font-size: 1.15rem; margin-bottom: 10px; }
.statement p { color: var(--grey); }
.values { margin-top: clamp(40px, 6vw, 64px); }
.values h3 { font-size: 1.35rem; margin-bottom: 22px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 22px; border-radius: var(--r-md); }
.value .icon { color: var(--blue); margin-bottom: 14px; }
.value h4 { font-size: 1.02rem; margin-bottom: 6px; }
.value p { color: var(--grey); font-size: 0.93rem; }
.founder { margin-top: clamp(32px, 5vw, 48px); display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--r-lg); max-width: 640px; }
.founder-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: var(--white); flex: none; }
.founder p { color: var(--grey); }
.founder strong { display: block; color: var(--white); font-size: 1.15rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column; padding: 0; border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.service:hover { transform: translateY(-5px); border-color: var(--line-hover); background: var(--glass-strong); }
.service-art { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 1px solid var(--line); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.service-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin: -48px 0 18px; position: relative; background-color: var(--navy);
  color: var(--blue); background: linear-gradient(145deg, rgba(124, 92, 252, 0.25), rgba(0, 212, 255, 0.08)); border: 1px solid rgba(124, 92, 252, 0.35);
}
.service h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service p { color: var(--grey); font-size: 0.97rem; flex: 1; }
.service-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.93rem; text-decoration: none; }
.service-link .icon { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.service-link:hover .icon { transform: translateX(4px); }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* Why choose us: ruled list, not cards */
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.why-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.why-list li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list .icon { color: var(--blue); margin-top: 2px; width: 1.6rem; height: 1.6rem; }
.why-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why-list p { color: var(--grey); font-size: 0.96rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid .section-head { position: static; margin-bottom: 8px; }
}

/* Process timeline */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--blue));
}
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 16px; font-weight: 800; font-size: 0.95rem; color: var(--white); background: rgba(124, 92, 252, 0.22); border: 1px solid rgba(124, 92, 252, 0.5); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--grey); font-size: 0.97rem; max-width: 36ch; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 32px 62px; border-top: 0; border-left: 1px solid var(--line); margin-left: 19px; }
  .step::before { display: none; }
  .step-num { position: absolute; left: -19px; top: 0; margin: 0; background: var(--navy); }
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); }
.quote figcaption { color: var(--grey); font-size: 0.9rem; }
.quote figcaption strong { color: var(--white); display: block; }
.quote-empty { grid-column: 1 / -1; padding: clamp(28px, 5vw, 48px); border-radius: var(--r-lg); border-style: dashed; display: flex; gap: 22px; align-items: center; }
.quote-empty .icon { width: 2.4rem; height: 2.4rem; color: var(--purple); }
.quote-empty h3 { font-size: 1.2rem; margin-bottom: 6px; }
.quote-empty p { color: var(--grey); max-width: 60ch; }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } .quote-empty { flex-direction: column; align-items: flex-start; } }

/* Call to action band */
.cta-band {
  padding: clamp(40px, 7vw, 72px); border-radius: 28px; text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, rgba(124, 92, 252, 0.28), transparent 70%), var(--glass);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; max-width: 20ch; margin-inline: auto; }
.cta-band p { margin: 16px auto 30px; color: var(--grey); font-size: 1.1rem; max-width: 46ch; }

/* 8. Portfolio ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  padding: 9px 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 0.92rem; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter:hover { border-color: rgba(0, 212, 255, 0.5); color: var(--white); }
.filter[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), border-color 0.3s; }
.project:hover { transform: translateY(-5px); border-color: var(--line-hover); }
.project[hidden] { display: none; }
.project-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--navy); }
.project-media img { width: 100%; height: 100%; object-fit: contain; }
.project-placeholder {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 24px),
    linear-gradient(145deg, rgba(124, 92, 252, 0.28), rgba(0, 212, 255, 0.1));
  color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; font-weight: 600;
}
.project-placeholder .icon { width: 2rem; height: 2rem; color: var(--blue); }
.project-badge { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(8, 9, 13, 0.8); border: 1px solid var(--line); color: var(--white); }
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: 0.82rem; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.project h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project p { color: var(--grey); font-size: 0.95rem; }
.project .project-body > p:last-of-type { flex: 1; }
.project-link { margin-top: 18px; font-weight: 700; font-size: 0.92rem; }
@media (max-width: 960px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* 9. Pricing --------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 32px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.plan-featured { border-color: var(--line-hover); background: linear-gradient(180deg, rgba(124, 92, 252, 0.14), var(--glass)); }
.plan h3 { font-size: 1.3rem; }
.plan-for { margin-top: 8px; color: var(--grey); min-height: 3.2em; }
.plan-price { margin: 22px 0 6px; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.plan-note { font-size: 0.85rem; color: var(--grey); margin-bottom: 22px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 0.96rem; }
.plan li .icon { width: 1.1rem; height: 1.1rem; color: var(--blue); margin-top: 4px; }
.plan .btn { width: 100%; }
.pricing-foot { margin-top: 24px; color: var(--grey); font-size: 0.92rem; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; } .plan-for { min-height: 0; } }

/* 10. FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s; }
.faq-item.is-open { border-color: var(--line-hover); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 1.03rem; color: var(--white); }
.faq-q .icon { transition: transform 0.3s var(--ease); color: var(--blue); }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s var(--ease), visibility 0s 0.3s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--grey); }

/* 11. Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-side p { color: var(--grey); }
.contact-side p + p { margin-top: 14px; }
.contact-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
.contact-buttons:empty { display: none; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--white); }
.field .optional { color: var(--grey); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm); background: rgba(8, 9, 13, 0.6); border: 1px solid var(--line);
  color: var(--white); transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--navy); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(161, 161, 170, 0.7); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: rgba(8, 9, 13, 0.85); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: none; margin-top: 7px; font-size: 0.85rem; color: var(--danger); }
.field.has-error .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); font-size: 0.95rem; display: none; border: 1px solid var(--line); }
.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: rgba(74, 222, 155, 0.5); background: rgba(74, 222, 155, 0.08); }
.form-status.is-error { border-color: rgba(255, 122, 138, 0.5); background: rgba(255, 122, 138, 0.08); }
.form-status.is-info { border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.06); }
.form-status button { margin-top: 12px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Legal pages */
.legal { max-width: 760px; padding-block: 24px clamp(72px, 10vw, 120px); }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--grey); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.legal-note { padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed var(--line); color: var(--grey); font-size: 0.93rem; margin-bottom: 8px; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy); padding-block: clamp(48px, 7vw, 80px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand p { margin-top: 18px; color: var(--grey); font-size: 0.95rem; max-width: 36ch; }
.footer-tagline { margin-top: 14px; color: var(--white); font-weight: 700; }
.site-footer h3 { font-size: 0.98rem; margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { color: var(--grey); text-decoration: none; font-size: 0.94rem; }
.site-footer li a:hover { color: var(--white); }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.social-list li + li { margin-top: 0; }
.social-list a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--white); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.social-list a:hover { border-color: rgba(0, 212, 255, 0.5); color: var(--white); }
.social-empty { color: var(--grey); font-size: 0.9rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--grey); font-size: 0.88rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--grey); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(20, 26, 50, 0.9); border: 1px solid var(--line); color: var(--white);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--blue); }


/* ---- Imagery and decorative design ---------------------------------------- */
/* Hero background: web development banner, faded into the page */
.hero { position: relative; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--black) 20%, rgba(8, 9, 13, 0.3) 62%, rgba(8, 9, 13, 0.6)),
    linear-gradient(180deg, rgba(8, 9, 13, 0.2), var(--black) 96%),
    url("../assets/images/web-development-banner.webp") right center / cover no-repeat;
  opacity: 0.9;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; color: var(--white); background: var(--navy);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 13, 0) 35%, rgba(8, 9, 13, 0.92)); }
.tile:hover { transform: translateY(-5px); border-color: var(--line-hover); color: var(--white); }
.tile:hover img { transform: scale(1.06); }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.tile-text strong { font-size: 1.2rem; }
.tile-text span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 10; } }

/* About collage */
.collage { margin-top: 32px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 150px 150px; gap: 14px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.collage .c1 { grid-row: 1 / 3; }
@media (max-width: 520px) { .collage { grid-template-rows: 120px 120px; } }

/* Page hero decoration */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero-art::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.28), transparent 65%);
}
.page-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%); mask-image: linear-gradient(270deg, #000, transparent 60%);
}

/* CTA band image */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-art {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.55), rgba(8, 9, 13, 0.85)), url("../assets/images/web-development-banner.webp") center / cover no-repeat;
}

/* Portfolio images: zoom button + lightbox */
.project-zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.project-zoom:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.project-media img { transition: transform 0.5s var(--ease); }
.project:hover .project-media img { transform: scale(1.04); }
.lightbox {
  width: min(92vw, 1000px); max-height: 90vh; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--navy); color: var(--white); overflow: auto;
}
.lightbox::backdrop { background: rgba(4, 5, 9, 0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--r-md); background: #000; }
.lightbox-cap { margin-top: 12px; color: var(--grey); font-size: 0.92rem; }
.lightbox-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 9, 13, 0.8); border: 1px solid var(--line); color: var(--white); }

/* 13. Utilities ------------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 14. Motion --------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated entrance: the hero copy, then the mockup */
  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
  .hero-visual { animation: rise 1s var(--ease) 0.3s both; }
  .chip-1 { animation: drift 6s ease-in-out infinite; }
  .chip-2 { animation: drift 7s ease-in-out -2s infinite; }
  .chip-3 { animation: drift 8s ease-in-out -4s infinite; }
  .phone { animation: drift 9s ease-in-out -1s infinite; }

  /* Scroll reveal: only used where data-reveal is set */
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
