@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #0B0E14;
  --bg-soft: #11151F;
  --bg-card: #141925;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text: #EDEEF2;
  --text-dim: #9AA3B2;
  --text-faint: #5C6573;
  --accent: #3B82F6;
  --accent-hover: #2F6FE0;
  --accent-soft: rgba(59,130,246,0.12);
  --accent-glow: rgba(59,130,246,0.35);
  --light-bg: #F4F2EC;
  --light-card: #FFFFFF;
  --light-line: rgba(15,18,26,0.10);
  --light-text: #14171F;
  --light-dim: #5A626E;
  --light-faint: #9098A2;
  --display: 'Sora', sans-serif;
  --body: 'Outfit', sans-serif;
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.h-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead { color: var(--text-dim); font-size: 1rem; }

.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px var(--accent-glow);
  animation: btnPop 0.4s var(--ease);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost-dark {
  background: transparent;
  color: var(--light-text);
  border-color: var(--light-line);
}
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.94); }
.btn-lg { font-size: 0.95rem; padding: 13px 26px; }

@keyframes btnPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  70% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,14,20,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.logo .mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { display: none; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 62px 0 32px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 320px;
  margin-bottom: 16px;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
}
.footer-mail:hover { color: var(--accent); }
.footer-col h4 {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.84rem;
}

.hero {
  position: relative;
  padding: 110px 0 96px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 25%, transparent 72%);
  opacity: 0.5;
}
.hero .glow-1 {
  width: 760px; height: 600px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 68%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(20,25,37,0.85);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin: 0 auto 20px;
}
.hero h1 .blue { color: var(--accent); }
.hero p {
  color: var(--text-dim);
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
  max-width: 54ch;
  margin: 0 auto 30px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text);
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section-light .eyebrow { color: var(--accent); }
.section-light .h-section { color: var(--light-text); }
.section-light .lead { color: var(--light-dim); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .h-section { max-width: 20ch; margin: 0 auto; }
.section-head .lead { max-width: 52ch; margin: 14px auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(15,18,26,0.28);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.22);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.service-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 9px;
  color: var(--light-text);
}
.service-card p { color: var(--light-dim); font-size: 0.92rem; }
.service-no {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--light-faint);
}
.service-feats {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--light-dim);
}
.service-feats svg { width: 14px; height: 14px; stroke: var(--accent); flex-shrink: 0; }

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #1A2030, #0E1119);
  overflow: hidden;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
.thumb-placeholder {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.78rem;
  text-align: center;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}
.thumb-placeholder .ph-icon { width: 30px; height: 30px; stroke: var(--text-faint); }
.thumb-placeholder code {
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 5px;
}
.project-body { padding: 22px; }
.project-tag {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.project-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 7px;
}
.project-body p {
  color: var(--text-dim);
  font-size: 0.89rem;
  margin-bottom: 15px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.project-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.project-link:hover { color: var(--accent); }
.project-link:hover svg { transform: translate(3px,-3px); }
.section-light .project-link { color: var(--light-text); }
.section-light .project-link:hover { color: var(--accent); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  background: var(--light-card);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(15,18,26,0.28);
}
.step-no {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--light-line);
  line-height: 1;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.04rem;
  margin-bottom: 7px;
  color: var(--light-text);
}
.step p { color: var(--light-dim); font-size: 0.87rem; }

.why {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.why h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.why h2 .blue { color: var(--accent); }
.why-right p { color: var(--text-dim); margin-bottom: 20px; font-size: 0.96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
}
.chip svg { width: 13px; height: 13px; stroke: var(--accent); }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.why-list .ico {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-top: 2px;
}
.why-list .ico svg { width: 13px; height: 13px; stroke: var(--accent); }
.why-list strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
}
.why-list span { color: var(--text-dim); font-size: 0.89rem; }

.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tst-card {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.tst-stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; font-size: 0.9rem; }
.tst-card p {
  font-size: 0.96rem;
  color: var(--light-text);
  margin-bottom: 20px;
}
.tst-person { display: flex; align-items: center; gap: 12px; }
.tst-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.22);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}
.tst-name { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--light-text); }
.tst-role { color: var(--light-faint); font-size: 0.82rem; }

.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.cta .glow-2 {
  width: 700px; height: 520px;
  bottom: -260px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 68%);
  opacity: 0.4;
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 14px;
}
.cta h2 .blue { color: var(--accent); }
.cta p {
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 0.98rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.blog-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1A2030, #0E1119);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb svg {
  width: 34px;
  height: 34px;
  stroke: var(--text-faint);
}
.blog-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
}
.blog-tag.free {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.25);
}
.blog-tag.premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  right: 0; left: auto;
  padding: 7px 14px;
  background: linear-gradient(135deg, #F5C454, #E0A93B);
  color: #1A1303;
  border: 1px solid #F5C454;
  box-shadow: 0 4px 16px -4px rgba(245,196,84,0.55);
}
.blog-tag.premium svg {
  width: 12px;
  height: 12px;
  stroke: #1A1303;
  position: static;
}
.blog-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 11px;
}
.blog-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 9px;
}
.blog-body p {
  color: var(--text-dim);
  font-size: 0.89rem;
  margin-bottom: 16px;
  flex: 1;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.blog-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.blog-link:hover { color: var(--accent); }
.blog-link:hover svg { transform: translateX(3px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.footer-socials a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.footer-socials svg { width: 16px; height: 16px; stroke: var(--text-dim); }
.footer-socials a:hover svg { stroke: var(--accent); }
.footer-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.footer-cta-box h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.footer-cta-box p {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-bottom: 16px;
}
.footer-cta-box .btn {
  width: 100%;
  justify-content: center;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 14px;
}
.footer-status .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse 2.2s infinite;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: var(--text-faint);
  font-size: 0.84rem;
  transition: color 0.2s var(--ease);
}
.footer-bottom-links a:hover { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-46px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

.reveal-left img {
  height: auto;
}

.reveal-right {
  opacity: 0;
  transform: translateX(46px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

.reveal-left.d1, .reveal-right.d1, .reveal-scale.d1 { transition-delay: 0.08s; }
.reveal-left.d2, .reveal-right.d2, .reveal-scale.d2 { transition-delay: 0.16s; }
.reveal-left.d3, .reveal-right.d3, .reveal-scale.d3 { transition-delay: 0.24s; }
.reveal-left.d4, .reveal-right.d4, .reveal-scale.d4 { transition-delay: 0.32s; }

@keyframes heroWordUp {
  from { opacity: 0; transform: translateY(120%) rotate(4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero-line { display: block; overflow: hidden; }
.hero-line span {
  display: inline-block;
  animation: heroWordUp 0.9s var(--ease) both;
}
.hero-line:nth-child(1) span { animation-delay: 0.15s; }
.hero-line:nth-child(2) span { animation-delay: 0.30s; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-intro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  animation: fadeDown 0.7s var(--ease) both;
  animation-delay: 0.05s;
}
.hero-intro .wave {
  display: inline-block;
  animation: waveHand 2.4s var(--ease) infinite;
  transform-origin: 70% 70%;
}
@keyframes waveHand {
  0%,60%,100% { transform: rotate(0); }
  10%,30%     { transform: rotate(14deg); }
  20%,40%     { transform: rotate(-8deg); }
}
.hero-intro .hi-text {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--text-dim);
}
.hero-intro .hi-name { color: var(--text); font-weight: 600; }
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 5px 13px;
  border-radius: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .hero-line span, .hero-intro {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11,14,20,0.98);
    border-bottom: 1px solid var(--line);
    padding: 22px;
    gap: 16px;
  }
  .nav-links.mobile-open .btn { display: inline-flex; }
  .services-grid, .work-grid, .process-grid, .tst-grid, .blog-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 66px 0; }
  .hero { padding: 100px 0 74px; }
  .hero-stats { gap: 28px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tpl-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tpl-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.tpl-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1A2030, #0E1119);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tpl-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.tpl-card:hover .tpl-thumb img { transform: scale(1.05); }
.tpl-thumb .ph-icon { width: 34px; height: 34px; stroke: var(--text-faint); }
.tpl-ribbon {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.25);
}
.tpl-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tpl-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.16rem;
  margin-bottom: 8px;
}
.tpl-body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}
.tpl-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.tpl-feats span {
  font-size: 0.76rem;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
}
.tpl-actions {
  display: flex;
  gap: 10px;
}
.tpl-actions .btn { flex: 1; justify-content: center; }
.tpl-seeall {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.audit {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.audit-left h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.audit-left h2 .blue { color: var(--accent); }
.audit-left p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 22px; }
.audit-points { display: flex; flex-direction: column; gap: 12px; }
.audit-points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.audit-points .ico {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-top: 1px;
}
.audit-points .ico svg { width: 13px; height: 13px; stroke: var(--accent); }
.audit-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.audit-form h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.audit-form .sub {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-bottom: 22px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus { border-color: var(--accent); }
.audit-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.audit-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 14px;
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.host-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.host-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.host-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
.host-logo {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.22);
  display: grid; place-items: center;
}
.host-logo svg { width: 24px; height: 24px; stroke: var(--accent); }
.host-top h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--text);
}
.host-top .tag {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.host-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.host-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.host-code .label {
  font-size: 0.76rem;
  color: var(--text-faint);
}
.host-code .code {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.host-card .btn { width: 100%; justify-content: center; }
.host-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 32px;
}

@media (max-width: 900px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .audit-inner { grid-template-columns: 1fr; gap: 32px; }
  .host-grid { grid-template-columns: 1fr; }
}

.page-hero {
  position: relative;
  padding: 158px 0 70px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.page-hero .glow {
  width: 760px; height: 520px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 68%);
  opacity: 0.45;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { justify-content: center; display: inline-block; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 auto 18px;
}
.page-hero h1 .blue { color: var(--accent); }
.page-hero p {
  color: var(--text-dim);
  font-size: clamp(0.96rem, 1.05vw, 1.05rem);
  max-width: 58ch;
  margin: 0 auto;
}

.tpl-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.tpl-filter button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tpl-filter button:hover { color: var(--text); border-color: var(--accent); }
.tpl-filter button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tpl-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
.tpl-preview {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16/11;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tpl-preview svg { width: 50px; height: 50px; stroke: var(--text-faint); }
.tpl-info h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tpl-info .ribbon {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.25);
  margin-bottom: 16px;
}
.tpl-info .desc { color: var(--text-dim); font-size: 1rem; margin-bottom: 22px; }
.tpl-info ul.checklist {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}
.tpl-info ul.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text);
}
.tpl-info ul.checklist .ico {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-top: 2px;
}
.tpl-info ul.checklist .ico svg { width: 13px; height: 13px; stroke: var(--accent); }
.tpl-buy {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.tpl-buy .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tpl-buy .label { color: var(--text-faint); font-size: 0.84rem; }
.tpl-buy .price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text);
}
.tpl-buy .price .currency { font-size: 1rem; color: var(--text-dim); font-weight: 600; }
.tpl-buy .buttons { display: flex; gap: 10px; }
.tpl-buy .buttons .btn { flex: 1; justify-content: center; }

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.2s var(--ease);
}
.field textarea::placeholder { color: var(--text-faint); }
.field textarea:focus { border-color: var(--accent); }
.field input[type="color"] {
  width: 56px; height: 42px;
  padding: 0; border-radius: 8px;
  cursor: pointer;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img, .about-grid .ph {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.about-grid h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-grid h2 .blue { color: var(--accent); }
.about-grid p { color: var(--text-dim); margin-bottom: 14px; font-size: 0.96rem; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.about-tags .tag {
  font-size: 0.82rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--text-dim);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 90px;
}
.service-block:last-child { margin-bottom: 0; }
.service-block.reverse > div:first-child { order: 2; }
.service-block .meta {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.service-block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin-bottom: 14px;
}
.service-block p { color: var(--text-dim); margin-bottom: 18px; font-size: 0.96rem; }
.service-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.service-block ul li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.93rem;
}
.service-block ul .ico {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-top: 2px;
}
.service-block ul .ico svg { width: 13px; height: 13px; stroke: var(--accent); }
.service-block .visual {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.service-block .visual::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.35;
}
.service-block .visual svg { width: 80px; height: 80px; stroke: var(--accent); position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: flex-start;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}
.contact-channel {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-channel:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.contact-channel .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-channel .ico svg { width: 20px; height: 20px; stroke: var(--accent); }
.contact-channel strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
}
.contact-channel span { color: var(--text-dim); font-size: 0.86rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.contact-form .sub {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.notfound {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}
.notfound .glow {
  width: 700px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 68%);
  opacity: 0.35;
}
.notfound-inner { position: relative; z-index: 2; }
.notfound h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}
.notfound h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 14px;
}
.notfound p { color: var(--text-dim); max-width: 44ch; margin: 0 auto 26px; }

.blog-head-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 540px;
  margin: 30px auto 0;
}
.blog-head-search input {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.92rem;
  outline: none;
}
.blog-head-search input:focus { border-color: var(--accent); }

@media (max-width: 900px) {
  .tpl-detail, .about-grid, .contact-grid, .service-block { grid-template-columns: 1fr; gap: 30px; }
  .service-block.reverse > div:first-child { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
}