:root {
  --bg: #0b1316;
  --surface: #111c20;
  --surface-2: #16252a;
  --line: rgba(255, 255, 255, .08);
  --text: #eef3f1;
  --muted: #94a5a8;
  --blue: #92aebe;
  --sage: #7fc4a4;
  --olive: #c2bb6a;
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --r: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
em { font-style: italic; color: var(--sage); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform; }
.g1 { width: 520px; height: 520px; background: #1f5a52; opacity: .45; top: -160px; right: -100px; animation: gl1 20s ease-in-out infinite; }
.g2 { width: 460px; height: 460px; background: #3a4d6b; opacity: .35; bottom: -180px; left: -120px; animation: gl2 24s ease-in-out infinite; }
@keyframes gl1 { 50% { transform: translate(-80px, 60px); } }
@keyframes gl2 { 50% { transform: translate(70px, -50px); } }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 19, 22, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand img { display: block; height: 46px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.btn) { padding: 8px 14px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--text); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 700 .94rem var(--sans); border: 1px solid transparent; cursor: pointer; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .86rem; margin-left: 8px; }
.btn-sage { background: var(--sage); color: #07211a; }
.btn-sage:hover { box-shadow: 0 10px 30px rgba(127, 196, 164, .3); background: #93d3b5; }
.btn-line { border-color: rgba(255, 255, 255, .22); color: var(--text); }
.btn-line:hover { border-color: var(--sage); color: var(--sage); }
.btn-ink { background: var(--bg); color: var(--text); }
.btn-ink:hover { background: #000; }
.arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 160px 0 70px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--muted); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 196, 164, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(127, 196, 164, 0); } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 24px 0; }
.lead { max-width: 520px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-board { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 14px; }
.tile { position: relative; overflow: hidden; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .35s, border-color .35s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(127, 196, 164, .4); }
.tile .lbl { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tile b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1.1; margin-top: 6px; }
.t-big { grid-column: span 2; background: linear-gradient(135deg, #14302f, var(--surface)); }
.t-big svg { width: 100%; height: 60px; margin-top: 12px; overflow: visible; }
.spark { fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.4s .6s ease forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.t-c { grid-column: span 2; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-top: 14px; }
.bars i { flex: 1; border-radius: 4px; background: var(--blue); animation: bar 2.6s ease-in-out infinite; }
.bars i:nth-child(1) { height: 50%; animation-delay: 0s; } .bars i:nth-child(2) { height: 80%; animation-delay: .2s; }
.bars i:nth-child(3) { height: 60%; animation-delay: .4s; } .bars i:nth-child(4) { height: 95%; animation-delay: .6s; }
.bars i:nth-child(5) { height: 70%; animation-delay: .8s; } .bars i:nth-child(6) { height: 85%; animation-delay: 1s; }
@keyframes bar { 50% { transform: scaleY(.6); transform-origin: bottom; opacity: .65; } }

/* sections */
.section { padding: 90px 0 10px; }
.head { max-width: 680px; margin-bottom: 44px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .35s, border-color .35s, background .35s; }
.cell:hover { transform: translateY(-5px); border-color: rgba(146, 174, 190, .4); background: var(--surface-2); }
.cell h3 { font-size: 1.25rem; margin-bottom: 10px; }
.cell p { color: var(--muted); font-size: .95rem; }
.meta { font-size: .74rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue) !important; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.tags li { padding: 3px 12px; font-size: .76rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #15302f 0%, var(--surface) 60%); }
.feature h3 { font-size: 1.7rem; }
.feature p { max-width: 520px; }
.cta-cell { justify-content: center; align-items: flex-start; gap: 14px; background: linear-gradient(135deg, var(--sage), #a9d8b8 60%, var(--olive)); border: 0; color: #07211a; }
.cta-cell:hover { background: linear-gradient(135deg, var(--sage), #a9d8b8 60%, var(--olive)); }
.cta-cell h3 { font-size: 1.6rem; margin: 0; }
.cta-cell p { color: #1c4235; }

/* CSS-drawn app mock in feature card */
.mock { margin: -4px 0 26px; border: 1px solid var(--line); border-radius: 14px; background: #0a1417; overflow: hidden; }
.m-top { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.m-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.m-body { display: grid; grid-template-columns: 56px 1fr; min-height: 190px; }
.m-side { display: grid; align-content: start; gap: 10px; padding: 16px 12px; border-right: 1px solid var(--line); }
.m-side u { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.m-side u:first-child { background: var(--sage); }
.m-main { padding: 16px; display: grid; gap: 14px; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-row s { height: 44px; border-radius: 10px; background: rgba(146, 174, 190, .14); }
.m-chart { display: flex; align-items: flex-end; gap: 10px; height: 80px; }
.m-chart span { flex: 1; height: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--sage), rgba(127, 196, 164, .2)); transform-origin: bottom; transform: scaleY(.15); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.feature.in .m-chart span:nth-child(1) { transform: scaleY(.45); transition-delay: .2s; }
.feature.in .m-chart span:nth-child(2) { transform: scaleY(.7); transition-delay: .3s; }
.feature.in .m-chart span:nth-child(3) { transform: scaleY(.55); transition-delay: .4s; }
.feature.in .m-chart span:nth-child(4) { transform: scaleY(.9); transition-delay: .5s; }
.feature.in .m-chart span:nth-child(5) { transform: scaleY(.65); transition-delay: .6s; }
.feature.in .m-chart span:nth-child(6) { transform: scaleY(1); transition-delay: .7s; }
.feature.in .m-chart span:nth-child(7) { transform: scaleY(.8); transition-delay: .8s; }

/* service rows */
.rows { border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 70px 1fr 1.2fr; gap: 20px; align-items: baseline; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; position: relative; }
.rows li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--sage); transition: width .5s; }
.rows li:hover { background: rgba(255, 255, 255, .025); padding-left: 20px; }
.rows li:hover::before { width: 100%; }
.n { font-family: var(--serif); color: var(--olive); font-size: 1.05rem; }
.rows h3 { font-size: 1.35rem; }
.rows p { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .35s; }
.plan:hover { transform: translateY(-5px); }
.plan h3 { font-size: 1.3rem; }
.for { color: var(--muted); margin: 4px 0 22px; font-size: .94rem; }
.amt { font-family: var(--serif); font-size: 3rem; line-height: 1; margin-bottom: 24px; }
.amt small { font: 500 .9rem var(--sans); color: var(--muted); margin-right: 6px; }
.plan ul { display: grid; gap: 12px; flex: 1; margin-bottom: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan li { position: relative; padding-left: 26px; font-size: .94rem; color: #d3dedb; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 11px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.hot { isolation: isolate; background: transparent; border-color: transparent; }
.hot::before { content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; background: conic-gradient(from var(--ang, 0deg), var(--sage), var(--blue), var(--olive), var(--sage)); animation: spin 6s linear infinite; }
.hot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, #17332f, var(--surface)); }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.flag { position: absolute; top: -13px; left: 30px; padding: 5px 14px; border-radius: 999px; background: var(--sage); color: #07211a; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before { content: ""; position: absolute; top: 21px; left: 21px; right: 21px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 62px; }
.timeline li::before { content: ""; position: absolute; top: 21px; left: 21px; height: 2px; width: calc(100% + 24px); background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .9s ease .3s; }
.timeline li:last-child::before { display: none; }
.timeline li.in::before { transform: scaleX(1); }
.node { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sage); font-family: var(--serif); font-size: 1.1rem; color: var(--sage); }
.timeline h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: clamp(28px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.direct { margin-top: 28px; font-family: var(--serif); font-size: 1.3rem; }
.direct a { border-bottom: 1px solid var(--sage); }
.social { margin-top: 10px; color: var(--muted); }
.social a:hover { color: var(--text); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; padding: 14px 16px; font: 500 .95rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
select option { background: var(--bg); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(127, 196, 164, .15); }
input.err, textarea.err { border-color: #e58f8f; }
form .btn { justify-self: start; }
.form-note { min-height: 1.4em; font-size: .9rem; color: var(--sage); }

.footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .88rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { height: 20px; width: auto; opacity: .85; }
.footer a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.cell.reveal.in:hover, .plan.reveal.in:hover { transition-delay: 0s; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .feature { grid-column: span 2; grid-row: auto; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .rows li { grid-template-columns: 50px 1fr; }
  .rows li p { grid-column: 2; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before, .timeline li::before { display: none; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-in { flex-wrap: wrap; }
  .nav.menu-open { background: rgba(11, 19, 22, .96); }
  .nav nav { order: 3; display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 13px 4px !important; border-top: 1px solid var(--line); }
  .nav .btn-sm { margin: 12px 0 0; padding: 13px; border-top: 0 !important; }
}
@media (max-width: 560px) {
  .bento, .timeline { grid-template-columns: 1fr; }
  .feature { grid-column: auto; }
  .section { padding-top: 70px; }
  .cta { flex-direction: column; }
  .btn { width: 100%; }
  form .btn { justify-self: stretch; }
  .tile b { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .spark { stroke-dashoffset: 0; }
  .m-chart span { transform: scaleY(.7); }
}

/* Project links in the Work cards */
.proj-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .9rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.proj-link:hover { text-decoration: underline; }
.proj-link .arr { transition: transform .25s; }
.proj-link:hover .arr { transform: translateX(3px); }

/* Six project cards: the call-to-action takes the full last row on wide screens */
.cta-cell { grid-column: 1 / -1; }
@media (max-width: 960px) { .cta-cell { grid-column: auto; } }

/* Pricing: four plans + care plan strip */
.plans { grid-template-columns: repeat(4, 1fr); }
.plan { padding: 32px 26px; }
.amt { font-size: 2.6rem; }
.care { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.care h3 { font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.care p { color: var(--muted); font-size: .94rem; max-width: 720px; }
.care-amt { font-family: var(--serif); font-size: 1.5rem; color: var(--sage); }
.care-amt small { font: 500 .85rem var(--sans); color: var(--muted); margin-left: 2px; }
.care .btn { flex-shrink: 0; }
.plans-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .care { flex-direction: column; align-items: flex-start; padding: 24px; }
}
