:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #101114;
  --muted: #666b78;
  --soft: #f1f2f6;
  --line: #e6e8ef;
  --accent: #635bff;
  --accent-2: #17c3b2;
  --dark: #0d0f17;
  --radius-lg: 34px;
  --radius-md: 24px;
  --shadow: 0 24px 80px rgba(16, 17, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(99, 91, 255, 0.10), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(23, 195, 178, 0.10), transparent 24%),
    var(--bg);
  color: var(--ink);
}

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

.cursor-glow {
  position: fixed;
  inset: auto auto 8% 4%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.10);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(230, 232, 239, 0.9);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand { font-weight: 800; letter-spacing: -0.04em; font-size: 20px; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
}
.nav a:hover { background: var(--soft); color: var(--ink); }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 54px;
  padding: 80px 0 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin-bottom: 26px;
  max-width: 850px;
}
.hero-text {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 34px;
}

.hero-actions, .contact-actions, .project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 14px 40px rgba(16,17,20,.16); }
.btn-secondary { background: white; border: 1px solid var(--line); color: var(--ink); }

.hero-panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  transform: rotate(2deg);
}
.panel-topline { color: var(--muted); font-weight: 800; font-size: 13px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .1em; }
.mini-product {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #f8f8fb;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.featured-mini { background: var(--dark); color: white; }
.mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--ink);
  font-size: 21px;
}
.mini-product strong { display: block; font-size: 15px; margin-bottom: 5px; }
.mini-product small { color: #8d93a1; font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 88px;
}
.stats div {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}
.stats strong { display: block; font-size: 28px; letter-spacing: -0.04em; margin-bottom: 7px; }
.stats span { color: var(--muted); font-weight: 600; font-size: 14px; }

.section-block { padding: 90px 0; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 0; }
h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.065em;
  margin-bottom: 18px;
}
.section-heading p:not(.eyebrow), .contact-section p { color: var(--muted); font-size: 18px; line-height: 1.75; }

.case-study {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.case-copy h3, .project-card h3, .stack-box h3, .timeline-item h3 {
  letter-spacing: -0.045em;
}
.case-copy h3 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 18px; }
.case-copy p, .project-card p, .stack-box p, .timeline-item p {
  color: var(--muted);
  line-height: 1.75;
}
.case-copy ul { padding-left: 18px; color: var(--ink); line-height: 1.9; margin: 24px 0; }
.project-labels { display: flex; gap: 8px; flex-wrap: wrap; }
.project-labels span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #4d5260;
}
.project-links a, .project-card a {
  font-weight: 800;
  color: var(--accent);
}

.project-preview {
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(145deg, #11131f, #242842);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.project-preview:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: rgba(99,91,255,.45);
  filter: blur(35px);
  border-radius: 999px;
  top: -70px;
  right: -60px;
}
.browser-bar { display: flex; gap: 8px; margin-bottom: 50px; position: relative; z-index: 1; }
.browser-bar span { width: 12px; height: 12px; border-radius: 99px; background: rgba(255,255,255,.35); }
.checkout-card {
  position: relative;
  z-index: 1;
  width: min(320px, 90%);
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.checkout-card small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.checkout-card h4 { font-size: 26px; letter-spacing: -.05em; margin: 10px 0 18px; }
.coin-row { display: flex; justify-content: space-between; padding: 14px; border-radius: 16px; background: #f2f3f8; margin-bottom: 18px; }
.qr-box { width: 126px; height: 126px; margin: 0 auto 16px; border-radius: 18px; background: repeating-linear-gradient(45deg, #111 0 8px, #fff 8px 16px); opacity: .86; }
.checkout-card p { text-align: center; color: var(--muted); font-weight: 700; font-size: 13px; margin: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.project-card, .stack-box, .timeline-item {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.project-card { transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { font-size: 30px; margin-bottom: 20px; }
.project-card h3 { font-size: 24px; margin: 18px 0 12px; }

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
  align-items: start;
}
.stack-grid { display: grid; gap: 16px; }
.stack-box h3 { font-size: 22px; margin-bottom: 10px; }
.stack-box p { margin-bottom: 0; }

.experience-block {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
}
.timeline { display: grid; gap: 16px; }
.timeline-item span { color: var(--accent); font-weight: 800; font-size: 13px; }
.timeline-item h3 { margin: 10px 0; font-size: 22px; }
.timeline-item p { margin-bottom: 0; }

.cv-section {
  padding: 70px 0 20px;
}
.cv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow);
}
.cv-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}
.cv-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 0;
}

.contact-section {
  margin-top: 60px;
  margin-bottom: 80px;
  text-align: center;
  background: var(--dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 76px 34px;
  box-shadow: var(--shadow);
}
.contact-section h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.contact-section p:not(.eyebrow) { max-width: 680px; margin-left: auto; margin-right: auto; color: #b8becc; }
.contact-actions { justify-content: center; margin-top: 30px; }
.contact-section .btn-primary { background: white; color: var(--ink); }
.contact-section .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,.18); }
.footer { color: var(--muted); padding-bottom: 36px; font-size: 14px; }

@media (max-width: 920px) {
  .hero, .case-study, .split-section, .experience-block { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-panel { transform: none; }
  .stats, .project-grid { grid-template-columns: 1fr 1fr; }
  .cv-card { align-items: flex-start; flex-direction: column; }
  .section-heading.compact { margin-bottom: 24px; }
}

@media (max-width: 640px) {
  .section-shell, .site-header { width: min(100% - 28px, 1160px); }
  .site-header { align-items: flex-start; border-radius: 24px; }
  .nav { display: none; }
  .hero { padding-top: 56px; gap: 34px; }
  h1 { font-size: 48px; }
  .hero-text { font-size: 17px; }
  .stats, .project-grid { grid-template-columns: 1fr; }
  .case-study { padding: 24px; border-radius: 26px; }
  .project-preview { min-height: 340px; }
  .section-block { padding: 58px 0; }
  .contact-section { padding: 54px 22px; }
}

/* Eskaptical featured preview */
.uploader-preview {
  background:
    radial-gradient(circle at 80% 20%, rgba(23,195,178,.45), transparent 26%),
    linear-gradient(145deg, #101114, #22263a);
}
.upload-card {
  position: relative;
  z-index: 1;
  width: min(340px, 92%);
  margin: 0 auto;
  background: rgba(255,255,255,.94);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.upload-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.upload-card h4 {
  font-size: 26px;
  letter-spacing: -.05em;
  margin: 10px 0 18px;
}
.upload-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f2f3f8;
  margin-bottom: 18px;
  font-weight: 800;
}
.upload-row strong { color: var(--accent); }
.progress-line {
  height: 12px;
  border-radius: 999px;
  background: #e9ebf3;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-line i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.import-list {
  display: grid;
  gap: 12px;
}
.import-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.import-list span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}
