/* =========================================================
   Narware Inc. — Software Studio
   Design tokens, light + dark themes, single stylesheet.
   ========================================================= */

:root {
  /* brand */
  --accent:        #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft:   #eef2ff;
  --accent-2:      #06b6d4;

  /* light surface scale */
  --bg:        #ffffff;
  --bg-tint:   #f6f7fb;
  --surface:   #ffffff;
  --surface-2: #f2f4f9;
  --border:    #e4e7ef;
  --border-2:  #d4d9e6;

  /* text */
  --text:      #12162a;
  --text-2:    #4a5169;
  --text-3:    #767d94;
  --on-accent: #ffffff;

  --success: #0f9d58;
  --danger:  #d93a3a;

  --shadow-sm: 0 1px 2px rgba(17, 22, 42, .06), 0 1px 3px rgba(17, 22, 42, .05);
  --shadow-md: 0 4px 12px rgba(17, 22, 42, .07), 0 12px 28px rgba(17, 22, 42, .06);
  --shadow-lg: 0 12px 32px rgba(17, 22, 42, .10), 0 32px 64px rgba(17, 22, 42, .08);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --container: 1180px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --accent:        #7c7cf8;
  --accent-strong: #918efc;
  --accent-soft:   #1c1f3d;
  --accent-2:      #22d3ee;

  --bg:        #0b0d18;
  --bg-tint:   #10131f;
  --surface:   #141827;
  --surface-2: #1b2032;
  --border:    #262c42;
  --border-2:  #333a54;

  --text:      #eef0f8;
  --text-2:    #aab1c7;
  --text-3:    #7d859e;
  --on-accent: #0b0d18;

  --success: #34d399;
  --danger:  #f87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

code { font-family: var(--mono); font-size: .88em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-sub { color: var(--text-2); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .9rem;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: .97rem;
  padding: .85rem 1.5rem; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary { color: var(--on-accent); }
[data-theme="dark"] .btn-primary:hover { color: var(--on-accent); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.link-arrow { font-weight: 700; font-size: .93rem; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow span { transition: transform .18s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.brand-text small { font-size: .68rem; color: var(--text-3); letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.btn) {
  font-size: .95rem; font-weight: 600; color: var(--text-2); position: relative; padding: .3rem 0;
}
.site-nav > a:hover, .site-nav > a.is-active { color: var(--text); }
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: right .22s var(--ease);
}
.site-nav > a:not(.btn):hover::after,
.site-nav > a.is-active::after { right: 0; }
.nav-cta { color: #fff !important; }
[data-theme="dark"] .nav-cta { color: var(--on-accent) !important; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text-2); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.menu-btn { display: none; }
.burger, .burger::before, .burger::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger::before { transform: translateY(-6px); }
.burger::after  { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] .burger { background: transparent; }
.menu-btn[aria-expanded="true"] .burger::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger::after  { transform: translateY(-2px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 720px; pointer-events: none;
  background:
    radial-gradient(600px 340px at 18% 42%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(520px 320px at 82% 22%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  filter: blur(12px);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { margin-bottom: .55em; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.16rem); color: var(--text-2); max-width: 60ch; }
.lead strong { color: var(--text); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 1.8rem;
  margin: 3rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--border);
  justify-content: start;
}
.hero-stats div { min-width: 0; }
.hero-stats dt { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.hero-stats dd { margin: .45rem 0 0; font-size: .85rem; color: var(--text-3); max-width: 17ch; }

/* hero code mock */
.hero-visual { position: relative; }
.mock-window {
  background: #10131f; border: 1px solid #262c42; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg);
  transition: transform .4s var(--ease);
}
.hero-visual:hover .mock-window { transform: rotate(0deg) translateY(-4px); }
.mock-bar { display: flex; gap: .45rem; padding: .95rem 1.1rem; border-bottom: 1px solid #262c42; background: #141827; }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #333a54; }
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-code {
  margin: 0; padding: 1.5rem 1.4rem; overflow-x: auto;
  font-family: var(--mono); font-size: .8rem; line-height: 1.9; color: #c3cae0;
}
.c-key { color: #c084fc; }
.c-str { color: #7dd3a0; }
.c-fn  { color: #60a5fa; }
.c-com { color: #6b7391; font-style: italic; }

.floating-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: .5rem 1rem; font-size: .83rem; font-weight: 600;
  box-shadow: var(--shadow-md); white-space: nowrap;
  animation: float 5.5s ease-in-out infinite;
}
.chip-1 { top: -18px; right: 6%; }
.chip-2 { bottom: 12%; left: -26px; animation-delay: -1.8s; }
.chip-3 { bottom: -20px; right: 12%; animation-delay: -3.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.value-icon { font-size: 1.7rem; line-height: 1; margin-bottom: .9rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.value-card p { margin: 0; font-size: .93rem; color: var(--text-2); }

/* ---------- engagement models ---------- */
/* A second block inside #process, so it needs its own top separation. */
.subsection {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border);
}
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.engage-grid .value-card { display: flex; flex-direction: column; }
.engage-grid .tick-list { margin-top: 1rem; }

.assure-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin-top: 1.4rem; padding: 1.7rem 1.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.assure-row > div { display: flex; flex-direction: column; gap: .35rem; }
.assure-row strong { font-size: .95rem; }
.assure-row span { font-size: .88rem; color: var(--text-2); line-height: 1.5; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.9rem;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

.service-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.service-top h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.service-icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.service-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card > p { color: var(--text-2); font-size: .97rem; }

.tick-list { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.tick-list li {
  position: relative; padding-left: 1.65rem; margin-bottom: .5rem;
  font-size: .93rem; color: var(--text-2);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 15px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.72); transform-origin: center; border-radius: 1px;
}
.tick-list li strong { color: var(--text); font-weight: 700; }

.cross-list { list-style: none; padding: 0; margin: 0; }
.cross-list li { position: relative; padding-left: 1.65rem; margin-bottom: .5rem; font-size: .93rem; color: var(--text-2); }
.cross-list li::before {
  content: "✕"; position: absolute; left: .15rem; top: 0; color: var(--text-3); font-size: .85rem; font-weight: 700;
}

.tech-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: auto 0 1.2rem; }
.tech-row span {
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: .3rem .65rem; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3);
}

/* ---------- portfolio ---------- */
.work-list { display: flex; flex-direction: column; gap: clamp(1.6rem, 3vw, 2.4rem); }

.work-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.work-card:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.work-card:nth-child(even) .work-shot { order: 2; }

.work-shot {
  position: relative; overflow: hidden; background: var(--surface-2);
  border-right: 1px solid var(--border); min-height: 260px;
}
.work-card:nth-child(even) .work-shot { border-right: 0; border-left: 1px solid var(--border); }
.work-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: transform .5s var(--ease);
}
.work-shot:hover img { transform: scale(1.035); }

.work-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.work-tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .5rem;
}
.work-body h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.work-body > p { color: var(--text-2); font-size: .96rem; }
.work-body .btn { align-self: flex-start; }

.two-col { columns: 2; column-gap: 1.6rem; }
.two-col li { break-inside: avoid; }

/* Case studies jump-linked from the product grid land below the fixed header. */
.work-card[id] { scroll-margin-top: 96px; }

/* ---------- products ---------- */
/* Each card sets --brand inline, so the mark and hover tint follow the product. */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.product-card {
  --brand: var(--accent);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.5rem; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand);
}
.product-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.product-top { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.product-top h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.product-mark {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent);
}
.product-cat { margin: .1rem 0 0; font-size: .8rem; font-weight: 600; color: var(--text-3); }
.product-card > p { color: var(--text-2); font-size: .93rem; margin: 0 0 1rem; }
.product-card .tick-list li::before { border-color: var(--brand); }
.product-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.product-links .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-links .btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; }

/* ---------- app mock (for products behind a sign-in screen) ---------- */
/* A drawn stand-in built from each product's real module list, used where a
   screenshot would only show a login form. */
.app-mock {
  display: grid; place-items: center; padding: clamp(1.2rem, 3vw, 2.2rem);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    #0f1320;
}
.mock-app {
  width: 100%; max-width: 520px; display: grid; grid-template-columns: 34% 1fr;
  background: #151a28; border: 1px solid #2a3148; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45); color: #c9cfe0; font-size: .72rem;
  transition: transform .5s var(--ease);
}
.app-mock:hover .mock-app { transform: scale(1.025); }
.mock-side { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .55rem; background: #111522; border-right: 1px solid #242a3e; }
.mock-side > span { padding: .32rem .5rem; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-side > .is-on { background: color-mix(in srgb, var(--brand) 26%, transparent); color: #fff; font-weight: 600; }
.mock-side > .mock-logo { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: #fff; font-size: .8rem; margin-bottom: .4rem; }
.mock-logo b {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: .68rem;
}
.mock-main { display: flex; flex-direction: column; gap: .7rem; padding: .9rem .85rem; min-width: 0; }
.mock-h { font-weight: 700; font-size: .85rem; color: #fff; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.mock-tiles > span {
  display: flex; flex-direction: column; gap: .1rem; padding: .5rem; min-width: 0;
  background: #1b2133; border: 1px solid #262d44; border-radius: 8px; color: #8e96ad; font-size: .62rem;
}
.mock-tiles b { color: #fff; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-bars { display: flex; align-items: flex-end; gap: 6%; height: 96px; padding: .6rem; background: #1b2133; border-radius: 8px; }
.mock-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 40%, transparent)); }
.mock-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: .6rem; background: #1b2133; border-radius: 8px; }
.mock-cal i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, #22c55e 55%, transparent); }
.mock-cal i.x { background: color-mix(in srgb, #ef4444 60%, transparent); }
.mock-cal i.h { background: #2a3148; }
.mock-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mock-photos i {
  position: relative; aspect-ratio: 4 / 3; border-radius: 5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 45%, #2a3148), #1b2133);
}
.mock-photos i.f::after {
  content: "♥"; position: absolute; top: 2px; right: 4px; font-size: .6rem; color: #fb7185; font-style: normal;
}

/* ---------- also shipped ---------- */
.more-work-title { margin: clamp(2.4rem, 5vw, 3.2rem) 0 1.2rem; font-size: 1.15rem; font-weight: 800; }
.more-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
/* A lone card takes the full row rather than leaving an empty half beside it. */
.more-work > :only-child { grid-column: 1 / -1; }
.mini-work {
  display: grid; grid-template-columns: 42% 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mini-work:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-shot { display: block; overflow: hidden; background: var(--surface-2); border-right: 1px solid var(--border); }
.mini-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mini-body { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.mini-body h4 { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 800; }
.mini-body p:not(.work-tag) { margin: 0 0 .9rem; font-size: .88rem; color: var(--text-2); }
.mini-body .link-arrow { margin-top: auto; }

/* ---------- process ---------- */
.process-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
  counter-reset: step;
}
.process-step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: .2rem .6rem; border-radius: 6px; margin-bottom: .9rem;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.process-step p { margin: 0; font-size: .93rem; color: var(--text-2); }

/* ---------- pricing ---------- */
.pricing-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.4rem;
}
.tabs {
  display: flex; flex-wrap: wrap; gap: .3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: .32rem;
}
.tab {
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--text-2);
  background: transparent; border: 0; border-radius: 100px; padding: .6rem 1.15rem; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent); color: #fff; }
[data-theme="dark"] .tab.is-active { color: var(--on-accent); }

.currency-switch {
  display: flex; gap: .25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px; padding: .28rem;
}
.cur {
  font: inherit; font-size: .84rem; font-weight: 700; color: var(--text-3);
  background: transparent; border: 0; border-radius: 100px; padding: .45rem .95rem; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cur.is-active { background: var(--surface-2); color: var(--text); }

.price-panel { display: none; animation: fadeUp .4s var(--ease); }
.price-panel.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* align-items: stretch (the default) keeps all three cards the same height
   regardless of how many features each tier lists. */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.is-featured {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface) 40%);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 100px; white-space: nowrap;
}
[data-theme="dark"] .price-badge { color: var(--on-accent); }

.price-name { font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.price-blurb { font-size: .92rem; color: var(--text-2); min-height: 2.9em; }
.price-amount { font-size: 2.35rem; font-weight: 800; letter-spacing: -.035em; color: var(--text); line-height: 1.1; margin: .3rem 0 .3rem; }
.price-amount small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-top: .3rem; }
/* min-height keeps the divider — and therefore the feature lists — aligned
   across the three cards even when one meta line wraps. */
.price-meta {
  font-size: .82rem; color: var(--text-3); min-height: 2.6em;
  margin-bottom: 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border);
}
.price-meta em { font-style: normal; font-weight: 700; color: var(--text-2); }
.price-card .tick-list { margin-bottom: 1.6rem; }
.price-card .btn { margin-top: auto; }

.enterprise-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem);
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); padding: clamp(1.9rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}
.enterprise-card h3 { font-size: 2rem; margin-bottom: .2rem; }
.ent-copy > p:last-of-type { color: var(--text-2); font-size: .97rem; }
.ent-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.ent-list { margin: 0; }

.price-notes {
  margin-top: 2.4rem; padding: 1.5rem 1.7rem;
  background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius);
  font-size: .9rem; color: var(--text-2);
}
.price-notes p:last-child { margin-bottom: 0; }
.price-notes strong { color: var(--text); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-grid > div > p { color: var(--text-2); }
.about-side {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem; box-shadow: var(--shadow-sm);
}
.about-side h3 { font-size: 1.02rem; margin-bottom: .9rem; }
.about-side h3 + ul { margin-bottom: 1.8rem; }
.about-side ul:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem); box-shadow: var(--shadow-sm);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .87rem; font-weight: 700; margin-bottom: .45rem; color: var(--text); }
.field label span[aria-hidden] { color: var(--danger); }
.optional { font-weight: 500; color: var(--text-3); }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  padding: .78rem .9rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: .4rem 0 0; font-size: .8rem; color: var(--danger); min-height: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok   { color: var(--success); }
.form-status.is-err  { color: var(--danger); }

.contact-side h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2.2rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-list .ci { font-size: 1.1rem; line-height: 1.5; }
.contact-list span span, .contact-list li > span:last-child { display: flex; flex-direction: column; }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 700; }
.contact-list a { font-weight: 600; word-break: break-word; }

.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin-bottom: .6rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .7rem 0 0; font-size: .9rem; color: var(--text-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-brand p { margin: 1.1rem 0 0; font-size: .9rem; color: var(--text-3); max-width: 38ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); margin-bottom: .9rem; }
.footer-nav a { display: block; font-size: .92rem; color: var(--text-2); margin-bottom: .55rem; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: .5rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-3);
}
.footer-bottom p { margin: 0; }

/* ---------- whatsapp fab ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; box-shadow: var(--shadow-lg); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* Keep the headline first — the code mock is decoration, not the pitch. */
  .hero-visual { max-width: 620px; width: 100%; margin: 1rem auto 0; }
  .hero-stats { margin-top: 2.2rem; }
  .chip-2 { left: -10px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .more-work { grid-template-columns: 1fr; }
  .assure-row { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .enterprise-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .menu-btn { display: grid; }
  .site-nav {
    position: fixed; inset: 74px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav > a:not(.btn) { padding: .9rem .25rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1rem; justify-content: center; }

  .service-grid, .price-grid { grid-template-columns: 1fr; }
  .work-card, .work-card:nth-child(even) { grid-template-columns: 1fr; }
  .work-card:nth-child(even) .work-shot { order: 0; }
  .work-shot, .work-card:nth-child(even) .work-shot {
    border-right: 0; border-left: 0; border-bottom: 1px solid var(--border);
    max-height: 300px;
  }
  .price-card.is-featured { order: -1; }
  .pricing-controls { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: center; }
  .currency-switch { align-self: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .value-grid, .process-list { grid-template-columns: 1fr; }
  .engage-grid, .assure-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .mini-work { grid-template-columns: 1fr; }
  .mini-shot { border-right: 0; border-bottom: 1px solid var(--border); max-height: 200px; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .two-col { columns: 1; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .95rem; }
  .floating-chip { display: none; }
  .whatsapp-fab { right: 14px; bottom: 14px; }
}

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

@media print {
  .site-header, .whatsapp-fab, .hero-visual, .contact-form { display: none; }
  body { font-size: 12pt; }
  .reveal { opacity: 1; transform: none; }
}
