/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #111820;
  --surface: #151d26;
  --surface2: #1c2636;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.14);

  --primary: #00d4ff;
  --primary-dim: rgba(0,212,255,0.12);
  --primary-glow: rgba(0,212,255,0.3);
  --accent: #ff6b35;
  --accent-dim: rgba(255,107,53,0.1);

  --text: #e8f0fa;
  --text-muted: #7a8fa6;
  --text-faint: #3d5068;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8,12,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8,12,16,0.92);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--primary);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 8px;
}
.logo-text { color: var(--text); }
.logo-accent { color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--primary-dim) !important;
  color: var(--primary) !important;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0,212,255,0.25);
  transition: all var(--transition) !important;
}
.nav__cta:hover {
  background: rgba(0,212,255,0.2) !important;
  box-shadow: 0 0 20px var(--primary-glow);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: calc(var(--nav-h) + 60px) 80px 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}
.orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
  bottom: 0; right: 100px;
  animation-delay: -3s;
}
.orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 70%);
  top: 50%; right: 40%;
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero__content { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fade-up 0.6s ease both;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fade-up 0.6s 0.1s ease both;
}
.title-outline {
  -webkit-text-stroke: 2px var(--primary);
  color: transparent;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fade-up 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: fade-up 0.6s 0.3s ease both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fade-up 0.6s 0.4s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* TERMINAL */
.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fade-up 0.8s 0.3s ease both;
}

.terminal {
  width: 100%;
  max-width: 460px;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.05), inset 0 1px 0 rgba(255,255,255,0.05);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: 'Courier New', monospace;
}
.terminal__body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}
.terminal__line { margin-bottom: 2px; opacity: 0; animation: terminal-appear 0.3s ease forwards; }
.terminal__line:nth-child(1)  { animation-delay: 0.5s; }
.terminal__line:nth-child(2)  { animation-delay: 1.0s; }
.terminal__line:nth-child(3)  { animation-delay: 1.5s; }
.terminal__line:nth-child(4)  { animation-delay: 2.0s; }
.terminal__line:nth-child(5)  { animation-delay: 2.5s; }
.terminal__line:nth-child(6)  { animation-delay: 3.0s; }
.terminal__line:nth-child(7)  { animation-delay: 3.5s; }
.terminal__line:nth-child(8)  { animation-delay: 4.0s; }

@keyframes terminal-appear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.t-prompt { color: var(--primary); }
.t-cmd { color: #e8f0fa; }
.t-out { color: var(--text-muted); padding-left: 16px; }
.t-info { color: #7dcfff; padding-left: 16px; }
.t-success { color: #28c840; padding-left: 16px; }

.terminal__cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 1s step-end infinite;
  opacity: 0;
  animation-delay: 4.5s;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--bg);
}
.btn--primary:hover {
  background: #33ddff;
  box-shadow: 0 8px 30px var(--primary-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-dim);
}
.btn--full { width: 100%; justify-content: center; }

/* ─── SECTION COMMON ────────────────────────────────────────── */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services { background: var(--bg2); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  grid-column: span 1;
  background: linear-gradient(135deg, var(--surface), #162030);
  border-color: rgba(0,212,255,0.2);
}

.service-card__icon {
  width: 48px; height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}
.service-card__num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-faint);
  line-height: 1;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.service-card__tags li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 3px 10px;
  border-radius: 100px;
}
.service-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.service-card:hover .service-card__link { color: var(--primary); }

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about { background: var(--bg); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-tag { text-align: left; }
.about__text .section-title { text-align: left; margin-bottom: 20px; }

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.pillar:hover { border-color: var(--border-bright); }
.pillar__icon { font-size: 1.3rem; flex-shrink: 0; }
.pillar div { display: flex; flex-direction: column; gap: 2px; }
.pillar strong { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
.pillar span { font-size: 0.82rem; color: var(--text-muted); }

.about__visual {
  position: relative;
  height: 360px;
}
.about__card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.about__card--main {
  width: 240px; height: 240px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--surface), #162030);
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 0 80px rgba(0,212,255,0.08);
}
.about__card--sm {
  width: 140px; height: 110px;
}
.about__card--tl { top: 0; left: 0; }
.about__card--br { bottom: 0; right: 0; }

.metric-big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.metric-big.sm { font-size: 2.2rem; }
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── PROCESS ───────────────────────────────────────────────── */
.process { background: var(--bg2); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step__num {
  width: 56px; height: 56px;
  background: var(--primary-dim);
  border: 2px solid rgba(0,212,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step__line {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,0.4), rgba(0,212,255,0.1));
  z-index: 0;
}
.step__line.last { display: none; }

.step__content {
  margin-top: 24px;
  padding: 0 20px;
}
.step__content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step__content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── TECH ──────────────────────────────────────────────────── */
.tech { background: var(--bg); }

.tech__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tech__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: default;
}
.tech__item:hover {
  color: var(--primary);
  border-color: rgba(0,212,255,0.25);
  background: var(--primary-dim);
  transform: scale(1.04);
}

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact { background: var(--bg2); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section-tag { text-align: left; }
.contact__info .section-title { text-align: left; margin-bottom: 20px; }
.contact__info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact-item:hover { color: var(--text); }
.contact-item__icon {
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* FORM */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  resize: vertical;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.form-group select option { background: var(--surface); }

.form-success {
  display: none;
  text-align: center;
  color: #28c840;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  padding: 12px;
  background: rgba(40,200,64,0.08);
  border: 1px solid rgba(40,200,64,0.2);
  border-radius: 10px;
}
.form-success.visible { display: block; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer__logo { margin-bottom: 12px; }
.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 220px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}
.footer__grid strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}
.footer__grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a {
  font-size: 0.88rem;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer__grid a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── MOBILE MENU ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 40px) 20px 60px;
  }
  .hero__visual { display: none; }
  .hero__stats { gap: 16px; flex-wrap: wrap; }

  .services__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { display: none; }
  .process__steps { grid-template-columns: 1fr; gap: 32px; }
  .step__line { display: none; }
  .tech__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 1024px) {
  .hero { padding: calc(var(--nav-h) + 40px) 40px 60px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .tech__grid { grid-template-columns: repeat(4, 1fr); }
}
