/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f17;
  --surface: #15151f;
  --surface-hover: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.3);
  --text: #e4e4e7;
  --text-dim: #a1a1aa;
  --accent-1: #00d4ff;
  --accent-2: #b14aed;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #b14aed 100%);
  --radius: 20px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent-1); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo__mark {
  color: var(--accent-1);
  display: flex;
  align-items: center;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #0a0a0f;
  font-weight: 600;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}
.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}
.btn--ghost {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.btn--ghost:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}
.btn--full { width: 100%; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(177, 74, 237, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: glow 8s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.02);
  font-family: 'JetBrains Mono', monospace;
}
.dot {
  width: 8px;
  height: 8px;
  background: #06ffa5;
  border-radius: 50%;
  box-shadow: 0 0 10px #06ffa5;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat__num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ SECTIONS ============ */
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt {
  background: var(--bg-alt);
}
.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-1);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__desc {
  color: var(--text-dim);
  font-size: 1.05rem;
}
.section__foot {
  text-align: center;
  margin-top: 48px;
  color: var(--text-dim);
}
.section__foot a {
  color: var(--accent-1);
  border-bottom: 1px dashed var(--accent-1);
}

/* ============ CONFIGS ============ */
.configs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.config-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.config-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.config-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.config-card:hover::before {
  transform: scaleX(1);
}
.config-card--featured {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(177, 74, 237, 0.06));
  border-color: rgba(0, 212, 255, 0.25);
}
.config-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.config-card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-1);
  padding: 4px 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.config-card__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.config-card__name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.config-card__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.spec-list {
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.spec-list li span:first-child {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.spec-list li span:last-child {
  font-weight: 500;
  text-align: right;
}
.config-card__cta {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.config-card__cta:hover {
  background: var(--gradient);
  color: #0a0a0f;
  border-color: transparent;
}

/* ============ WORKS ============ */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.work {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.work:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.work--featured {
  grid-column: span 2;
}
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}
.work--featured .work__media {
  aspect-ratio: 16 / 7;
}
.work__media svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.work:hover .work__media svg {
  transform: scale(1.05);
}
.work__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-1);
}
.work__badge--featured {
  background: rgba(255, 214, 10, 0.15);
  border-color: rgba(255, 214, 10, 0.4);
  color: #ffd60a;
}
.work__body {
  padding: 24px;
}
.work__body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.work__body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.work__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work__specs span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
}

/* ============ PROCESS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--surface-hover);
}
.step__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============ CONTACT ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__info .section__head,
.contact__info .section__tag,
.contact__info .section__title {
  text-align: left;
  margin-left: 0;
}
.contact__info .section__title { margin-bottom: 16px; }
.contact__info > p {
  color: var(--text-dim);
  margin-bottom: 32px;
}
.contact__list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.contact__list li:last-child { border-bottom: 1px solid var(--border); }
.contact__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact__list a:hover { color: var(--accent-1); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
}
.form__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.footer__brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 12px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent-1); }
.footer__copy {
  text-align: right;
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .work--featured { grid-column: span 1; }
  .work--featured .work__media { aspect-ratio: 4 / 3; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .footer__copy { text-align: center; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .configs { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav__links.open { transform: translateY(0); }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
}