/* css/index.css */

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,200,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  margin-bottom: 1.5rem;
  animation: fadein-up 0.6s ease both;
}

.badge-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  animation: fadein-up 0.7s 0.1s ease both;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 520px;
  animation: fadein-up 0.7s 0.2s ease both;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadein-up 0.7s 0.3s ease both;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadein-up 0.7s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-n { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat-l { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.05em; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ─── CODE WINDOW ────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein-up 0.8s 0.2s ease both;
}

.code-window {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}

.cw-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.cw-dot { width: 12px; height: 12px; border-radius: 50%; }
.cw-title { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); font-family: monospace; }

.cw-body { padding: 1.5rem; }
.cw-code {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-soft);
  white-space: pre;
  min-height: 220px;
}

.cw-code .kw { color: #7b5fff; }
.cw-code .fn { color: #3bc8ff; }
.cw-code .str { color: #a8ff78; }
.cw-code .cm { color: #4b5563; }
.cw-code .num { color: #febc2e; }
.cw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── ABOUT ──────────────────────────────────────────── */
.about { max-width: 1200px; margin: 0 auto; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 { margin: 0.5rem 0 1rem; }
.about-text p { margin-bottom: 1.5rem; }

.about-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.about-list li { display: flex; align-items: flex-start; gap: 1rem; }
.about-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.about-list strong { display: block; color: var(--text); margin-bottom: 2px; }
.about-list small { color: var(--text-muted); font-size: 0.85rem; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  box-shadow: 0 0 60px rgba(59,200,255,0.06);
}

.ac-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.ac-info strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--text); }
.ac-info small { color: var(--text-muted); font-size: 0.83rem; }

.ac-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.ac-location { display: flex; align-items: center; gap: 6px; font-size: 0.83rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ─── SERVICES ───────────────────────────────────────── */
.services { max-width: 1200px; margin: 0 auto; }
.services-head { text-align: center; margin-bottom: 3rem; }
.services-head h2 { margin: 0.5rem 0 0.75rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.svc-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.svc-icon { font-size: 2rem; }
.svc-card h3 { color: var(--text); }
.svc-card p { font-size: 0.9rem; flex: 1; }
.svc-price {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
}

.svc-custom { border-style: dashed; border-color: rgba(123,95,255,0.3); }
.svc-custom:hover { border-color: var(--accent2); box-shadow: 0 12px 40px rgba(123,95,255,0.12); }

/* ─── CTA BAND ───────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(59,200,255,0.06), rgba(123,95,255,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
}

.cta-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-inner h2 { margin-bottom: 0.35rem; }

/* ─── KEYFRAMES ──────────────────────────────────────── */
@keyframes fadein-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}
