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

:root {
  --bg: #181D27;
  --bg-2: #1C2130;
  --bg-3: #212733;
  --border: rgba(255,255,255,0.07);
  --text: #E8EDF5;
  --text-muted: #8A96AD;
  --accent: #6C63FF;
  --accent-2: #A78BFA;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

/* ── UTILS ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.gradient-text {
  background: linear-gradient(135deg, #6C63FF 0%, #A78BFA 50%, #60D0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.solid-text {
  color: #B8B0F0;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-header h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.section-header p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-primary {
  background: #3D3680;
  color: rgba(255,255,255,0.9);
  box-shadow: none;
}
.btn-primary:hover { background: #4A4299; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.09);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.14); }
.btn-full { width: 100%; justify-content: center; font-size: 16px; padding: 16px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(24, 29, 39, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.1);
}
.logo-text { font-weight: 600; font-size: 16px; }
.nav-login {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 16px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

/* Canvas sits behind everything */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(108, 99, 255, 0.15);
  top: -120px; left: -80px;
  animation: drift1 18s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(96, 208, 255, 0.08);
  bottom: -80px; right: -60px;
  animation: drift2 22s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: rgba(167, 139, 250, 0.1);
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  animation: drift3 15s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(60px, 40px); }
  66% { transform: translate(-30px, 80px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -60px); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%); }
  40% { transform: translate(-40%, -60%); }
  70% { transform: translate(-60%, -45%); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 24px 100px;
}
.hero-content h1 {
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator - bottom left */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
  opacity: 0.4;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

/* ── SERVICES ── */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.05) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover { border-color: rgba(108,99,255,0.35); transform: translateY(-2px); }
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  border-color: rgba(108,99,255,0.25);
  background: linear-gradient(135deg, rgba(108,99,255,0.07) 0%, var(--bg-3) 55%);
}
.service-icon {
  width: 46px; height: 46px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.18);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-2);
}
.service-icon svg { width: 22px; height: 22px; }
.service-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.service-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; font-size: 15px; }
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-features li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.8;
}
.service-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.service-link:hover { color: #fff; }

/* ── ABOUT ── */
.about { background: var(--bg-2); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 20px; letter-spacing: -0.01em; }
.about-text > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-values { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  font-size: 18px;
  width: 40px; height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value strong { display: block; font-size: 15px; margin-bottom: 3px; }
.value p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* terminal card */
.about-card {
  background: #141923;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.about-card-header {
  background: #1A1F2C;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: filter 0.15s;
}
.terminal-dots span:hover { filter: brightness(1.25); }
.terminal-dots span:nth-child(1) { background: #FF5F57; }
.terminal-dots span:nth-child(2) { background: #FFBD2E; }
.terminal-dots span:nth-child(3) { background: #28CA41; }

.about-card {
  transition: opacity 0.3s, transform 0.3s;
}
.about-card.closed {
  opacity: 0;
  transform: scale(0.95) translateY(-8px);
  pointer-events: none;
}
.terminal-body {
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  max-height: 600px;
  overflow: hidden;
}
.about-card.minimized .terminal-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.terminal-title { font-size: 12px; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.terminal-body { padding: 22px 24px; line-height: 2.1; }
.t-dim { color: #3D4A5C; }
.t-key { color: #A78BFA; }
.t-var { color: #60D0FF; }
.t-op { color: #E8EDF5; }
.t-str { color: #4ADE80; }
.cursor-blink {
  display: inline-block;
  color: var(--accent-2);
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── PROCESS ── */
.process { background: var(--bg); }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 175px;
  max-width: 215px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-2px); }
.step-num {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.step-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.15);
  padding-top: 44px;
  flex-shrink: 0;
}

/* ── CONTACT ── */
.contact { background: var(--bg-2); }
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138, 150, 173, 0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(108,99,255,0.5);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.08);
}
.form-group select option { background: var(--bg-3); }
.form-note { text-align: center; font-size: 13px; color: var(--text-muted); opacity: 0.6; }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; opacity: 0.7; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
  opacity: 0.7;
}
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }
  .step { max-width: 100%; width: 100%; }
  .scroll-hint { left: 20px; }
  .hero-content { padding: 100px 24px 80px; }
}
