:root {
  --ink: #14181f;
  --ink-soft: #4a5260;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --brand: #2f6df6;
  --brand-deep: #1f4fd0;
  --accent: #16c79a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 24, 31, .08);
  --shadow-lg: 0 20px 50px rgba(20, 24, 31, .14);
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 92px 24px 100px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  color: var(--brand); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
.accent { color: var(--brand); background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 33rem; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47, 109, 246, .32); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; margin-top: 24px; }

/* Hero art */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.blob {
  position: absolute; width: 360px; height: 360px; border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%;
  background: linear-gradient(135deg, var(--brand), var(--accent)); filter: blur(2px); opacity: .92;
  animation: float 8s ease-in-out infinite;
}
.card-float {
  position: relative; z-index: 2; width: 250px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px;
  animation: float 6s ease-in-out infinite;
}
.cf-row { height: 12px; border-radius: 6px; background: var(--line); }
.cf-row.short { width: 60%; }
.cf-bar { height: 30px; border-radius: 8px; background: var(--bg-soft); overflow: hidden; }
.cf-bar span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 38rem; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }

/* App grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.app-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4ddf7; }
.app-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand-deep); background: #eaf1ff; padding: 5px 11px;
  border-radius: 999px; margin-bottom: 16px;
}
.app-card h3 { font-size: 1.22rem; font-weight: 700; }
.app-card p { margin-top: 10px; color: var(--ink-soft); font-size: .98rem; flex-grow: 1; }
.app-link { margin-top: 18px; font-weight: 700; color: var(--brand); font-size: .95rem; }
.app-card:hover .app-link { color: var(--brand-deep); }

/* Single featured app */
.feature-app {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-app:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4ddf7; }
.feature-app h3 { font-size: 1.5rem; font-weight: 700; }
.feature-lede { margin-top: 12px; color: var(--ink-soft); font-size: 1.04rem; max-width: 66ch; }
.feature-list { margin-top: 20px; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.feature-app .app-link { display: inline-block; margin-top: 22px; }
.feature-app:hover .app-link { color: var(--brand-deep); }

/* Featured client cards */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.client-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.client-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4ddf7; }
.client-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.client-head h3 { font-size: 1.5rem; font-weight: 800; }
.client-loc { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.client-tag {
  flex-shrink: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-deep); background: #eaf1ff; padding: 6px 12px; border-radius: 999px;
}
.client-lede { color: var(--ink-soft); font-size: 1rem; }
.client-block { margin-top: 22px; }
.client-block h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 12px; }
.ph-flag { text-transform: none; letter-spacing: 0; font-weight: 600; color: #c0392b; }

.link-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.link-list li { display: flex; flex-direction: column; }
.link-list a { font-weight: 700; color: var(--brand); font-size: 1.02rem; }
.link-list a:hover { color: var(--brand-deep); }
.link-list span { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .96rem; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* Services */
.svc-grid { grid-template-columns: repeat(2, 1fr); }
.svc-note { margin-top: 26px; text-align: center; color: var(--ink-soft); font-size: .98rem; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.svc-icon { font-size: 1.7rem; width: 52px; height: 52px; display: grid; place-items: center; background: #eaf1ff; border-radius: 12px; margin-bottom: 16px; }
.svc-card h3 { font-size: 1.12rem; font-weight: 700; }
.svc-card p { margin-top: 10px; color: var(--ink-soft); font-size: .96rem; }

/* Why work with me (values) */
.section-tight { padding: 56px 0; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { text-align: left; }
.value-icon { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; background: #eaf1ff; border-radius: 12px; margin-bottom: 14px; }
.value h3 { font-size: 1.04rem; font-weight: 700; }
.value p { margin-top: 8px; color: var(--ink-soft); font-size: .94rem; }

/* How I work (steps) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.step-num {
  color: var(--brand); font-weight: 800; font-size: 1.08rem; line-height: 1.2; flex: none;
}
.step h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: .94rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.about-main h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.about-main > p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.ph-block { color: #c0392b !important; font-style: italic; }
.about-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.about-side h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-k { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.fact-v { font-size: .98rem; color: var(--ink); }
.facts-note { font-size: .8rem; margin-top: 16px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: 16px; font-weight: 700; color: var(--brand-deep); font-size: .95rem; }

/* Experience */
.experience { margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.exp-title { font-size: 1.3rem; font-weight: 800; }
.exp-note { font-size: .82rem; font-weight: 600; color: #c0392b; letter-spacing: 0; }
.exp-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.exp-list > li { position: relative; padding-left: 22px; }
.exp-list > li::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px;
  border-radius: 3px; background: linear-gradient(var(--brand), var(--accent));
}
.exp-role { font-size: 1.05rem; font-weight: 700; }
.exp-meta { font-size: .88rem; color: var(--ink-soft); margin: 2px 0 8px; }
.exp-list p { color: var(--ink-soft); font-size: .96rem; }
.exp-list .exp-venture { margin: 16px 0 2px; color: var(--ink); font-weight: 700; font-size: .98rem; }
.exp-bullets, .exp-bullets ul { margin: 8px 0 0; padding-left: 4px; list-style: none; }
.exp-bullets li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .96rem; margin-top: 7px; }
.exp-bullets > li:first-child { margin-top: 0; }
.exp-bullets li::before {
  content: "\25B8"; position: absolute; left: 4px; top: 0; color: var(--brand); font-weight: 800;
}
.exp-bullets ul { margin-top: 7px; padding-left: 10px; }
.exp-bullets ul li::before { content: "\2726"; color: var(--accent); font-size: .82em; top: .12em; }

/* Contact */
.contact { text-align: center; max-width: 40rem; }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.contact p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }

/* Contact form */
.contact-form { margin: 30px auto 0; max-width: 34rem; text-align: left; }
/* Honeypot — kept out of view and out of the tab order */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.contact-form input,
.contact-form textarea {
  font: inherit; width: 100%; padding: 11px 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 109, 246, .15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
/* Fixed-height slot toggled by opacity: revealing the error never reflows. */
.contact-form .field-error {
  opacity: 0; margin-top: 6px; height: 1.2em; line-height: 1.2; overflow: hidden;
  font-size: .85rem; color: #c0392b; transition: opacity .12s ease;
}
.contact-form .field-error.show { opacity: 1; }
.contact-form .btn { margin-top: 4px; }
.form-status {
  visibility: hidden; margin-top: 16px; min-height: 1.3em;
  font-size: .98rem; font-weight: 600;
}
.form-status.show { visibility: visible; }
.form-status.ok { color: var(--brand-deep); }
.form-status.bad { color: #c0392b; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.footer-muted { color: #9aa3b2; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 72px; }
  .hero-art { order: -1; min-height: 220px; }
  .blob { width: 240px; height: 240px; }
  .grid, .grid-3, .clients, .values, .steps, .quotes, .about-grid, .feature-list, .field-row { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: .9rem; }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .grid, .grid-3, .values, .steps { grid-template-columns: repeat(2, 1fr); }
}
