/* ============================================================
   websrvrs — web services and AI automation.
   Light, professional, calm. Two practice accents: blue for web,
   teal for automation. Flat fills, soft borders, system fonts.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-sink: #f1f3f7;
  --line: #e3e7ee;
  --line-strong: #cbd3e0;

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --web: #1d4ed8;
  --web-soft: #eef2ff;
  --ai: #0d9488;
  --ai-soft: #effbf8;
  --warn: #b45309;

  --r: 8px;
  --r-sm: 5px;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --sect: clamp(56px, 8vw, 88px);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--web); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.mast { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.mast-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mk { width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--web); display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.mast nav { display: flex; gap: 24px; }
.mast nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.mast nav a:hover { color: var(--web); text-decoration: none; }
.mast .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.telhdr { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.telhdr:hover { color: var(--web); text-decoration: none; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 6px 8px; cursor: pointer; }
.burger span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 3px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid transparent; background: var(--bg-sink); color: var(--ink);
  transition: background .14s, border-color .14s, color .14s;
}
.btn:hover { text-decoration: none; background: #e6eaf2; }
.btn-primary { background: var(--web); color: #fff; }
.btn-primary:hover { background: #1b43bd; color: #fff; }
.btn-ai { background: var(--ai); color: #fff; }
.btn-ai:hover { background: #0b7f75; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--muted); }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 80px); background: #0f172a; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(46px, 9vw, 92px); letter-spacing: -0.045em; max-width: 13ch; margin-top: 18px; }
.hero .kick { color: rgba(255,255,255,.62); }
.hero .kick i { background: #60a5fa; }
.btn-ondark { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn-ondark:hover { background: rgba(255,255,255,.09); border-color: #fff; color: #fff; }
.stats { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.stats div { padding: 20px 20px 0 0; border-right: 1px solid rgba(255,255,255,.1); }
.stats div:last-child { border-right: 0; }
.stats dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.stats dd { margin: 9px 0 0; font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.045em; color: #fff; line-height: 1; }
.kick { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kick i { width: 7px; height: 7px; border-radius: 50%; background: var(--web); display: block; }
.hero h1 { margin-top: 16px; max-width: 17ch; }
.hero .sub { margin-top: 20px; max-width: 58ch; font-size: clamp(17px, 1.7vw, 21px); color: rgba(255,255,255,.74); }
.hero .acts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sections ---------- */
.sect { padding-block: var(--sect); }
.sect.sink { background: var(--bg-soft); border-block: 1px solid var(--line); }
.shead { max-width: 64ch; margin-bottom: 30px; }
.lbl { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lbl.web { color: var(--web); }
.lbl.ai { color: var(--ai); }
.shead h2 { margin-top: 10px; }
.shead p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }

/* ---------- Practice cards ---------- */
.practices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prac { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--bg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prac .tag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.prac.web .tag { background: var(--web-soft); color: var(--web); }
.prac.ai .tag { background: var(--ai-soft); color: var(--ai); }
.prac h3 { margin: 16px 0 8px; font-size: 21px; }
.prac > p { color: var(--muted); font-size: 15.5px; }
.prac ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.prac li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.prac li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; flex: none; }
.prac.web li::before { background: var(--web); }
.prac.ai li::before { background: var(--ai); }
.prac .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Tables ---------- */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 13px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 17px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-soft); }
td.svc { font-weight: 600; color: var(--ink); white-space: nowrap; }
td.svc small { display: block; font-weight: 400; font-size: 13px; color: var(--faint); margin-top: 3px; }
td.turn { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
td.from { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
td.from small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--faint); margin-top: 3px; }
.tbl-note { margin-top: 12px; font-size: 13.5px; color: var(--faint); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.step { display: grid; grid-template-columns: 56px 190px 1fr; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.step:last-child { border-bottom: 0; }
.step .n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--web); }
.step .t { font-weight: 600; color: var(--ink); }
.step .d { color: var(--muted); font-size: 15px; }

/* ---------- Why grid ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why .c { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg); }
.why .c h3 { font-size: 16px; margin-bottom: 7px; }
.why .c p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Work ---------- */
.cara-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cara-head .hint { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.cara-head .navs { margin-left: auto; display: flex; gap: 8px; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 14px; }
.track::-webkit-scrollbar { height: 7px; }
.track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.card {
  flex: 0 0 auto; width: 348px; scroll-snap-align: start; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--web); transform: translateY(-3px); box-shadow: 0 6px 22px rgba(15,23,42,.1); text-decoration: none; }
.card-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.card-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); display: block; }
.card-bar .u { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-left: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-view { height: 236px; overflow: hidden; background: #fff; position: relative; }
.card-view iframe { width: 1280px; height: 870px; border: 0; transform: scale(.2719); transform-origin: 0 0; pointer-events: none; }
.card-cap { padding: 15px 16px; border-top: 1px solid var(--line); }
.card-cap b { display: block; font-size: 15.5px; color: var(--ink); }
.card-cap span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { list-style: none; cursor: pointer; padding: 17px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-weight: 600; font-size: 16px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--web); }
summary .pl { font-family: var(--mono); color: var(--faint); transition: transform .15s; flex: none; }
details[open] summary .pl { transform: rotate(45deg); color: var(--web); }
details .ans { padding: 0 22px 18px; color: var(--muted); font-size: 15px; max-width: 80ch; }

/* ---------- Contact ---------- */
.cta { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 44px); }
.cta h2 { max-width: 20ch; }
.cta p { margin-top: 14px; color: var(--muted); max-width: 58ch; font-size: 16.5px; }
.cta .acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.cta .mailto { margin-top: 20px; font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 30px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 13.5px; color: var(--muted); }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
.foot-in nav a { color: var(--muted); }

/* ---------- Motion ---------- */
.js .rise { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .track { scroll-behavior: auto; }
  .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .practices, .why { grid-template-columns: 1fr; }
  .mast nav { display: none; }
  .burger { display: block; }
  .mast.open nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px var(--pad) 16px; }
  .mast.open nav a { padding: 11px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .telhdr { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div { padding-bottom: 18px; }
  .step { grid-template-columns: 44px 1fr; }
  .step .d { grid-column: 2; }
}
@media (max-width: 600px) {
  .card { width: 282px; }
  .card-view { height: 192px; }
  .card-view iframe { transform: scale(.2203); }
  .hero .acts .btn, .cta .acts .btn { width: 100%; }
}
