/* ==========================================================================
   Aster Studio — global stylesheet
   ========================================================================== */

:root {
  --ink:        #101728;
  --ink-soft:   #2b3446;
  --muted:      #667085;
  --line:       #e6e8ec;
  --bg:         #ffffff;
  --bg-soft:    #f7f8fa;
  --accent:     #4f46e5;
  --accent-dk:  #3f37c9;
  --accent-bg:  #eef0fe;
  --radius:     14px;
  --shadow-sm:  0 1px 2px rgba(16, 23, 40, .06);
  --shadow-md:  0 8px 28px rgba(16, 23, 40, .08);
  --shadow-lg:  0 22px 60px rgba(16, 23, 40, .12);
  --wrap:       1120px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.021em;
  margin: 0 0 .5em;
  font-weight: 650;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1.1em; }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand img { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff !important;
  font-size: .92rem;
  font-weight: 560;
  border: 0;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 580;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd4dc; color: var(--ink); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(900px 420px at 78% -8%, #eef0fe 0%, rgba(238, 240, 254, 0) 62%),
    radial-gradient(700px 380px at 6% 8%, #f4f6f8 0%, rgba(244, 246, 248, 0) 58%);
}
.hero h1 { max-width: 17ch; }
.hero .lede { font-size: clamp(1.06rem, 1.7vw, 1.24rem); margin-top: 20px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 96px; }
.hero-meta strong { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.hero-meta span { font-size: .86rem; color: var(--muted); }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 44px; }

/* ---------- grids / cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #d6dae2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }

/* ---------- work ---------- */

.work-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }

.work-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.work-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d6dae2; color: inherit; }
.work-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.work-body { padding: 20px 22px 24px; }
.work-body h3 { font-size: 1.04rem; margin-bottom: 6px; }
.work-body p { margin: 0; font-size: .9rem; color: var(--muted); }
.work-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- split (about / services detail) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  font-size: .96rem;
}
.list-clean li:last-child { border-bottom: 0; }
.list-clean .dot {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: .68rem;
  font-weight: 700;
}

/* ---------- team ---------- */

.team-item { text-align: left; }
.avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--accent);
  background: var(--accent-bg);
  margin-bottom: 15px;
  letter-spacing: .01em;
}
.team-item h3 { font-size: 1rem; margin-bottom: 3px; }
.team-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- process steps ---------- */

.steps { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 42px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
}
.step h3 { font-size: 1rem; margin-bottom: .4em; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #cfd6e4;
  border-radius: 18px;
  padding: clamp(38px, 5vw, 58px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #a9b3c6; margin: 0; max-width: 46ch; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #eef0f6; color: var(--ink); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .87rem;
  font-weight: 560;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}
.field textarea { min-height: 132px; resize: vertical; }

.form-note { font-size: .84rem; color: var(--muted); margin-top: 14px; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #ecfdf3;
  border: 1px solid #b7ebc9;
  color: #14713a;
  font-size: .92rem;
}
.form-status.show { display: block; }

.contact-line { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line span { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-line strong { font-weight: 560; color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 34px;
  background: var(--bg-soft);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 34ch; }
.footer-brand p { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-soft); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: .86rem;
  color: var(--muted);
}

/* ---------- misc ---------- */

.page-head {
  padding: clamp(52px, 7vw, 84px) 0 clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 22ch; }

.notfound { max-width: 520px; margin: 0 auto; text-align: center; padding: clamp(70px, 12vw, 130px) 0; }
.notfound .code { font-size: clamp(3.4rem, 11vw, 5.4rem); font-weight: 700; color: #d8dce4; letter-spacing: .02em; line-height: 1; margin-bottom: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4, .work-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav { height: 62px; }
  .grid-2, .grid-3, .grid-4, .work-grid, .steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .hero-meta div { min-width: 84px; }
  .cta-band { border-radius: 14px; }
  .footer-cols { gap: 36px; }
  .card { padding: 24px; }
}
