/* MSK Trading Studio — minimalist studio site */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0e1116;
  --ink-soft: #4a5261;
  --line: #e6e8ec;
  --accent: #2f5bea;
  --accent-ink: #1b2a54;
  --radius: 16px;
  --maxw: 1080px;
  --font: -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;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #6f8dff);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
}
.nav-cta:hover { text-decoration: none; opacity: 0.9; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; font-weight: 700; }
p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 620px; margin: 0 0 32px; }
.muted { color: var(--ink-soft); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 88px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { text-decoration: none; border-color: var(--ink); }

/* Grid cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 22px;
}

/* Projects */
.project { display: flex; flex-direction: column; height: 100%; }
.tag {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-ink); background: #e9eefc; border: 1px solid #d5e0fb;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.project h3 { font-size: 22px; }
.project .cat { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.status { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #f0a020; box-shadow: 0 0 0 3px #f8e6c4; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .k { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.contact-item .v { font-size: 17px; font-weight: 600; }

/* Footer */
footer { padding: 48px 0; color: var(--ink-soft); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink-soft); }
.legal { margin-top: 20px; font-size: 12.5px; color: var(--ink-soft); max-width: 720px; }

/* Legal page */
.doc { padding: 64px 0 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 20px; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 14px; }
