:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-hover: #f4f4f8;
  --border: rgba(20, 20, 40, 0.08);
  --border-hover: rgba(20, 20, 40, 0.18);
  --text: #16161d;
  --text-muted: #6b6b76;
  --accent: #6d4aff;
  --accent-2: #0a84ff;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.05), 0 4px 14px rgba(20, 20, 40, 0.05);
  --shadow-hover: 0 4px 10px rgba(20, 20, 40, 0.08), 0 12px 28px rgba(20, 20, 40, 0.1);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(109, 74, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 90% 110%, rgba(10, 132, 255, 0.12), transparent 60%),
    radial-gradient(circle, rgba(20, 20, 40, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  max-width: 580px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- Profile ---------- */

.profile {
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
  outline: 3px solid rgba(109, 74, 255, 0.25);
  outline-offset: 3px;
}

.profile h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bio {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42ch;
  margin-inline: auto;
}

.bio a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(20, 20, 40, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.bio a:hover {
  text-decoration-color: var(--accent-2);
}

/* ---------- Link cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.link-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.link-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.12), rgba(10, 132, 255, 0.1));
  color: var(--text);
}

.icon svg {
  width: 20px;
  height: 20px;
}

.text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.title {
  font-weight: 600;
  font-size: 0.98rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ---------- Hire me ---------- */

.hire,
.products {
  margin-top: 12px;
}

.hire h2,
.products h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cta-btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.cta-mark {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.cta-mark svg {
  width: 18px;
  height: 18px;
}

.mark-toptal {
  background: rgba(32, 78, 207, 0.1);
  color: #204ecf;
}

.mark-upwork {
  background: rgba(20, 168, 0, 0.12);
  color: #14a800;
}

.cta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cta-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cta-book {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6d4aff, #4f8bff);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 8px 24px rgba(109, 74, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(109, 74, 255, 0.38);
  filter: brightness(1.05);
}

.cta-book:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.cta-book svg {
  width: 18px;
  height: 18px;
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.product-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.product-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.mark-acf {
  background: rgba(109, 74, 255, 0.12);
  color: #5a37f0;
}

.mark-inspect {
  background: rgba(10, 132, 255, 0.12);
  color: #0a6fd6;
}

.mark-flowcart {
  background: rgba(149, 191, 71, 0.18);
  color: #4f8f2a;
}

.mark-flowplugins {
  background: rgba(255, 130, 60, 0.14);
  color: #e06a1f;
}

.mark-storewc {
  background: rgba(127, 84, 179, 0.14);
  color: #7f54b3;
}

.mark-inspect svg,
.mark-flowcart svg,
.mark-flowplugins svg {
  width: 18px;
  height: 18px;
}

.product-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-grow: 1;
}

.product-url {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent-2);
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(20, 20, 40, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.site-footer a:hover {
  text-decoration-color: var(--accent-2);
}

.dot {
  margin: 0 6px;
  opacity: 0.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 420px) {
  .cta-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
