/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #020617;
  color: #f1f5f9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   Utility
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #3b82f6;
  color: #fff;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  line-height: 24px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 8px;
  line-height: 28px;
}

.btn-xl {
  padding: 20px 48px;
  font-size: 20px;
  border-radius: 12px;
  line-height: 28px;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 0 4px 6px -4px rgba(59, 130, 246, 0.2);
}

.btn-arrow {
  margin-left: 12px;
  width: 16px;
  height: 18px;
}

.btn-xl .btn-arrow {
  margin-left: 16px;
  width: 17.5px;
  height: 20px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 112px 0 104px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   Logo
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-diamond {
  width: 56.57px;
  height: 56.57px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-diamond-outer {
  width: 40px;
  height: 40px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-diamond-inner {
  width: 16px;
  height: 16px;
  background: #020617;
  transform: rotate(0deg);
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.5px;
  line-height: 28px;
}

.logo-text-lg {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 32px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg, #020617 0%, #0f172a 50%, #172554 100%);
}

.hero-blur {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 9999px;
  filter: blur(32px);
}

.hero-blur-right {
  top: 80px;
  right: 40px;
  background: rgba(59, 130, 246, 0.2);
}

.hero-blur-left {
  bottom: 80px;
  left: 40px;
  background: rgba(168, 85, 247, 0.2);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero-text {
  max-width: 896px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.badge {
  display: inline-block;
  padding: 9px 17px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 9999px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 20px;
  backdrop-filter: blur(2px);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-line {
  font-size: 72px;
  font-weight: 700;
  line-height: 72px;
}

.hero-sub {
  font-size: 24px;
  color: #94a3b8;
  line-height: 32px;
  padding-top: 8px;
  padding-bottom: 24px;
  max-width: 768px;
}

/* ============================================
   Services (What We Build)
   ============================================ */
.services {
  position: relative;
  background: #020617;
  padding: 128px 80px;
}

.services-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 37, 84, 0) 0%, rgba(23, 37, 84, 0.05) 50%, rgba(23, 37, 84, 0) 100%);
  pointer-events: none;
}

.services-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  color: #f1f5f9;
}

.section-sub {
  font-size: 20px;
  color: #94a3b8;
  line-height: 28px;
}

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

.card {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon img {
  width: 34px;
  height: 30px;
}

.card-icon-blue { background: rgba(59, 130, 246, 0.1); }
.card-icon-purple { background: rgba(168, 85, 247, 0.1); }
.card-icon-cyan { background: rgba(6, 182, 212, 0.1); }

.card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 32px;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 26px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  margin-top: 24px;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.8;
}

.card-link img {
  margin-left: 8px;
  width: 14px;
  height: 16px;
}

.card-link-blue { color: #60a5fa; }
.card-link-purple { color: #c084fc; }
.card-link-cyan { color: #22d3ee; }

/* ============================================
   Mission
   ============================================ */
.mission {
  position: relative;
  padding: 128px 240px;
  background: linear-gradient(155deg, #020617 0%, rgba(23, 37, 84, 0.2) 50%, #020617 100%);
  overflow: hidden;
}

.mission-lines {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.mission-line {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
}

.mission-line img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-line-left { left: 360px; }
.mission-line-right { right: 360px; }

.mission-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.mission-bar {
  width: 80px;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(to right, #3b82f6, #a855f7);
}

.mission-heading {
  font-size: 60px;
  font-weight: 700;
  line-height: 60px;
  text-align: center;
  color: #f1f5f9;
}

.mission-sub {
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
  text-align: center;
  color: #cbd5e1;
}

.mission-tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 48px;
  font-size: 18px;
  color: #94a3b8;
}

.mission-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #60a5fa;
}

/* ============================================
   Select Work
   ============================================ */
.work {
  position: relative;
  background: #020617;
  padding: 128px 80px;
}

.work-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.7);
}

.project-card-disabled {
  cursor: default;
  opacity: 0.7;
}

.project-card-disabled:hover {
  transform: none;
  background: rgba(15, 23, 42, 0.5);
}

.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.85) 100%);
}

.project-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 9999px;
  font-size: 13px;
  line-height: 20px;
}

.project-tag-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.project-tag-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: #c084fc;
}

.project-tag-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.project-tag-coming-soon {
  left: auto;
  right: 18px;
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.project-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 28px;
}

.project-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon img {
  width: 16px;
  height: 16px;
}

.project-icon-blue { background: rgba(59, 130, 246, 0.12); }
.project-icon-purple { background: rgba(168, 85, 247, 0.12); }
.project-icon-cyan { background: rgba(6, 182, 212, 0.12); }

.project-info p {
  font-size: 15px;
  color: #64748b;
  line-height: 24px;
}

.project-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  pointer-events: none;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  padding: 128px 272px;
  background: linear-gradient(148deg, rgba(23, 37, 84, 0.3) 0%, #020617 50%, rgba(59, 7, 100, 0.3) 100%);
  overflow: hidden;
}

.cta-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 384px;
  height: 384px;
  border-radius: 9999px;
  background: #3b82f6;
  filter: blur(32px);
  opacity: 0.2;
}

.cta-inner {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 60px;
  color: #f1f5f9;
  margin-bottom: 32px;
}

.cta-sub {
  font-size: 24px;
  color: #94a3b8;
  line-height: 32px;
  margin-bottom: 32px;
}

.cta-divider {
  width: 100%;
  height: 1px;
  background: rgba(30, 41, 59, 0.5);
  margin-top: 76px;
}

.cta-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
}

.cta-brand .logo {
  justify-content: center;
}

.cta-tagline {
  font-size: 16px;
  color: #64748b;
  line-height: 24px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #020617;
  border-top: 1px solid rgba(30, 41, 59, 0.5);
  padding: 33px 112px 32px;
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: #64748b;
  line-height: 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .header-inner {
    padding: 0 48px;
  }

  .hero-content {
    padding: 0 48px;
  }

  .hero-line {
    font-size: 56px;
    line-height: 56px;
  }

  .services {
    padding: 96px 48px;
  }

  .mission {
    padding: 96px 80px;
  }

  .mission-line-left { left: 120px; }
  .mission-line-right { right: 120px; }

  .mission-heading {
    font-size: 48px;
    line-height: 52px;
  }

  .mission-sub {
    font-size: 24px;
    line-height: 32px;
  }

  .work {
    padding: 96px 48px;
  }

  .cta {
    padding: 96px 80px;
  }

  .cta h2 {
    font-size: 48px;
    line-height: 52px;
  }
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .card {
    min-height: auto;
  }

  .projects {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-line {
    font-size: 40px;
    line-height: 44px;
  }

  .hero-sub {
    font-size: 18px;
    line-height: 28px;
  }

  .services {
    padding: 80px 24px;
  }

  .section-header h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .mission {
    padding: 80px 24px;
  }

  .mission-lines {
    display: none;
  }

  .mission-heading {
    font-size: 36px;
    line-height: 40px;
  }

  .mission-sub {
    font-size: 20px;
    line-height: 28px;
  }

  .work {
    padding: 80px 24px;
  }

  .cta {
    padding: 80px 24px;
  }

  .cta h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .cta-sub {
    font-size: 18px;
  }

  .footer {
    padding: 24px;
  }
}
