:root {
  --bg: #0a0a12;
  --bg-soft: #10101c;
  --card: #14141f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7e9f2;
  --muted: #9aa0b5;
  --primary: #6d5cff;
  --accent: #22d3ee;
  --grad: linear-gradient(120deg, #6d5cff, #22d3ee);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.15; }

.container { width: min(1140px, 90%); margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 18, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.brand-mark {
  font-family: monospace;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  font-weight: 800;
}

.brand-name { font-size: 1.15rem; letter-spacing: 0.2px; }
.brand-name span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.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); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(109, 92, 255, 0.22), transparent 60%),
    radial-gradient(500px 300px at 85% 15%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(400px 300px at 60% 90%, rgba(109, 92, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }

.hero-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 54ch; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(109, 92, 255, 0.4); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }

/* Terminal */
.hero-visual { position: relative; }

.terminal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title { margin-left: 8px; font-family: monospace; font-size: 0.85rem; color: var(--muted); }

.terminal-body { padding: 22px; font-family: monospace; font-size: 0.92rem; line-height: 2; }
.t-green { color: #34d399; }
.t-blue { color: var(--accent); }
.t-dim { color: #6b7280; }
.cursor {
  display: inline-block;
  width: 9px; height: 17px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.fc-1 { top: 12%; left: -34px; }
.fc-2 { bottom: 8%; right: -26px; animation-delay: 2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- LOGOS ---------- */
.logos { padding: 46px 0; border-top: 1px solid var(--border); }
.logos-label { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 26px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 46px; }
.logo-item { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem; color: #3d4257; letter-spacing: 1px; transition: color 0.3s; }
.logo-item:hover { color: var(--muted); }

/* ---------- SECTIONS HEAD ---------- */
section { padding: 96px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 92, 255, 0.5);
  background: var(--bg-soft);
}
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.card-tag { font-family: monospace; font-size: 0.8rem; color: var(--accent); }

/* ---------- STATS ---------- */
.stats { background: var(--bg-soft); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- PROJECTS ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); }

.project-visual {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.project-body { padding: 24px; }
.project-body h3 { margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.project-meta { font-family: monospace; font-size: 0.8rem; color: var(--accent); }

/* ---------- PROCESS ---------- */
.process-list { display: grid; gap: 14px; max-width: 780px; margin: 0 auto; }

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s;
}
.step:hover { border-color: rgba(109, 92, 255, 0.5); }
.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: 6px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stars { color: #fbbf24; letter-spacing: 3px; }
.quote blockquote { color: var(--text); font-size: 0.98rem; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  font-weight: 700; font-size: 0.9rem;
}
.quote figcaption small { color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--border); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 12px 0 16px; }
.contact-copy > p { color: var(--muted); margin-bottom: 26px; }

.contact-list { list-style: none; display: grid; gap: 12px; color: var(--muted); }
.contact-list a { color: var(--text); border-bottom: 1px solid var(--border); }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 0.9rem; text-align: center; min-height: 22px; }
.form-note.ok { color: #34d399; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 140px 0 80px; }
  .float-card { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }
}
