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

:root {
  --purple:        #7C3AED;
  --purple-light:  #9F67FF;
  --purple-dim:    rgba(124, 58, 237, 0.15);
  --purple-border: rgba(124, 58, 237, 0.3);
  --bg:            #09090F;
  --bg-2:          #0F0F1A;
  --bg-card:       #12121F;
  --bg-card-hover: #16162A;
  --border:        rgba(255,255,255,0.07);
  --text:          #F0F0FF;
  --text-muted:    #8A8AB0;
  --text-dim:      #5A5A7A;
  --radius:        12px;
  --radius-lg:     18px;
}

html { scroll-behavior: smooth; }

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

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

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

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

.section { padding: 100px 0; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--purple-border);
  color: var(--text);
  background: var(--purple-dim);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── SECTION LABELS & HEADERS ─────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-label { display: block; }
.section-header .section-sub { margin: 0 auto; }

/* ─── TAGS ─────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  color: var(--purple-light);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.logo-dot { color: var(--purple-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--purple-light) !important;
  box-shadow: 0 0 20px rgba(124,58,237,0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 60% 20%, rgba(124,58,237,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text); }
.stat-label { font-size: 0.78rem; color: var(--text-dim); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

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

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

.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-text em { color: var(--text); font-style: normal; font-weight: 500; }

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ─── SERVICES ──────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--purple-border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; color: var(--purple-light); }

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card--cta {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.05));
  border-color: var(--purple-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card--cta .service-title { color: var(--text); margin-bottom: 12px; }
.service-card--cta .service-desc { margin-bottom: 20px; }

/* ─── BEFORE / AFTER ────────────────────────────────────────────── */
.before-after { background: var(--bg); }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  align-items: stretch;
}

.ba-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.ba-card--before {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.18);
}
.ba-card--after {
  background: rgba(124, 58, 237, 0.06);
  border-color: var(--purple-border);
}

.ba-card-header { margin-bottom: 28px; }

.ba-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ba-badge--before {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.ba-badge--after {
  background: var(--purple-dim);
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
}

.ba-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ba-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ba-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ba-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ba-icon svg { width: 12px; height: 12px; }

.ba-icon--before {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
}
.ba-icon--after {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
}

.ba-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.ba-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
}
.ba-arrow svg { width: 18px; height: 18px; }

.ba-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.ba-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── FEATURED WORK ─────────────────────────────────────────────── */
.work { background: var(--bg-2); }

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  align-items: center;
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.work-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.work-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.work-problem, .work-solution {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.work-problem-label, .work-solution-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.work-problem-label { color: #F97316; }
.work-solution-label { color: var(--purple-light); }

.work-problem p, .work-solution p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.work-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Live App Card */
.work-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-live-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--purple-border);
  background: #0C0C1A;
  overflow: hidden;
}

.work-live-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 300px 200px at 50% 0%, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.work-live-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.work-live-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.work-live-icon svg { width: 26px; height: 26px; color: var(--purple-light); }

.work-live-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.work-live-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.work-live-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ─── OUTCOMES ──────────────────────────────────────────────────── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.outcome-item {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}
.outcome-item:hover {
  border-color: var(--purple-border);
  transform: translateY(-3px);
}

.outcome-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple-dim);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.6;
}

.outcome-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.outcome-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover {
  border-color: var(--purple-border);
  background: var(--bg-card-hover);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  background: var(--purple-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-link-icon svg { width: 18px; height: 18px; color: var(--purple-light); }

.contact-link-label { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 2px; }
.contact-link-val { font-size: 0.875rem; color: var(--text); font-weight: 500; }

/* Form */
.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: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-tagline { font-size: 0.875rem; color: var(--text-dim); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); opacity: 0.6; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(9,9,15,0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    backdrop-filter: blur(16px);
  }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-divider { transform: rotate(90deg); margin: 8px 0; }
  .work-card { grid-template-columns: 1fr; gap: 40px; padding: 36px 28px; }
  .work-card-right { order: -1; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}
