/* ==========================================================================
   BLACKWING TECHNOLOGIES - BRAND DESIGN SYSTEM
   Official Brand Palette: #0B0C0E, #1B1D21, #55585F, #E6E8EB, #7C7FA6
   Official Fonts: Sora (Headings) & Inter (Body)
   ========================================================================== */

:root {
  /* Official Brand Colors */
  --bg-dark: #0B0C0E;
  --bg-dark-card: #1B1D21;
  --bg-dark-border: #2A2D34;

  --bg-light: #E6E8EB;
  --bg-light-card: #ffffff;
  --bg-light-border: #D1D5DB;

  --text-dark-primary: #ffffff;
  --text-dark-secondary: #A0A4B0;
  --text-dark-muted: #55585F;

  --text-light-primary: #0B0C0E;
  --text-light-secondary: #4B505E;
  --text-light-muted: #6B7280;

  /* Official Brand Periwinkle Accent */
  --brand-purple: #7C7FA6;
  --brand-purple-light: #9B9ECA;
  --brand-purple-soft: #C6C8E3;

  /* Typography */
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

  /* Dimensions */
  --max-width: 1240px;
  --header-height: 84px;
  --radius: 4px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand-purple);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
  outline: 3px solid #ffffff;
}

:focus-visible {
  outline: 3px solid var(--brand-purple) !important;
  outline-offset: 3px !important;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.font-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.text-purple {
  color: var(--brand-purple-light);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light-muted);
  margin-bottom: 24px;
}

.section-label.dark-label {
  color: var(--text-dark-muted);
}

.label-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: currentColor;
  opacity: 0.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-hero-primary {
  background-color: var(--brand-purple-soft);
  color: #0B0C0E;
  border-color: var(--brand-purple-soft);
}
.btn-hero-primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0B0C0E;
}

.btn-hero-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: transparent;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}
.btn-hero-secondary:hover {
  color: var(--brand-purple-light);
}

.btn-outline-dark {
  background-color: transparent;
  color: #0B0C0E;
  border-color: #0B0C0E;
}
.btn-outline-dark:hover {
  background-color: #0B0C0E;
  color: #ffffff;
}

.btn-header-cta {
  padding: 10px 16px;
  font-size: 0.75rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-header-cta:hover {
  background-color: #ffffff;
  color: #0B0C0E;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background-color: #0B0C0E;
  color: #ffffff;
}
.btn-submit:hover {
  background-color: var(--brand-purple);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(11, 12, 14, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-dark-border);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
}

.brand-svg {
  width: 32px;
  height: 26px;
  color: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.6rem;
  color: var(--text-dark-secondary);
  letter-spacing: 0.25em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 36px;
}

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

.nav-link {
  color: var(--text-dark-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #ffffff;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
  background-color: var(--bg-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--bg-dark-border);
}

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.hero-watermark-img {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  opacity: 0.14;
  filter: invert(1);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-dark-secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-dark-secondary);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-right-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.pillar-line {
  width: 40px;
  height: 1px;
  background-color: var(--text-dark-muted);
}

.pillar-words {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-dark-secondary);
  line-height: 1.8;
}

/* ==========================================================================
   SECTION 1: WHY BLACKWING (LIGHT BG)
   ========================================================================== */
.section-why {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  padding: 100px 0;
  border-bottom: 1px solid var(--bg-light-border);
}

.why-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: start;
}

.why-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-light-primary);
}

.why-intro {
  font-size: 1.1rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
}

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

.stat-card {
  background-color: var(--bg-light-card);
  border: 1px solid var(--bg-light-border);
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stat-icon {
  width: 36px;
  height: 36px;
  color: var(--text-light-primary);
  margin-bottom: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-light-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}
.stat-number span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light-muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 2: SELECTED WORK (DARK BG)
   ========================================================================== */
.section-work {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  padding: 100px 0;
  border-bottom: 1px solid var(--bg-dark-border);
}

.work-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.work-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.view-all-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}
.view-all-link:hover {
  color: var(--brand-purple-light);
  border-bottom-color: var(--brand-purple-light);
}

.work-intro {
  font-size: 1.08rem;
  color: var(--text-dark-secondary);
  max-width: 700px;
  margin-bottom: 64px;
  line-height: 1.7;
}

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

.project-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #15171C;
  border-bottom: 1px solid var(--bg-dark-border);
  overflow: hidden;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.img-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.ph-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--brand-purple-light);
  letter-spacing: 0.15em;
}

.ph-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark-muted);
}

.project-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dark-muted);
  margin-bottom: 8px;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.7rem;
  color: var(--text-dark-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   SECTION 3: SERVICES (LIGHT BG)
   ========================================================================== */
.section-services {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  padding: 100px 0;
  border-bottom: 1px solid var(--bg-light-border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.service-box {
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-box-dark {
  background-color: #0B0C0E;
  color: #ffffff;
  border: 1px solid #2A2D34;
}

.service-box-light {
  background-color: #ffffff;
  color: var(--text-light-primary);
  border: 1px solid var(--bg-light-border);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.box-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.box-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-purple-light);
  margin-bottom: 20px;
}

.box-price.light-price {
  color: var(--brand-purple);
}

.box-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.service-box-dark .box-desc {
  color: var(--text-dark-secondary);
}

.service-box-light .box-desc {
  color: var(--text-light-secondary);
}

.box-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.box-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.service-box-dark .box-checklist li {
  color: #e2e8f0;
}

.service-box-light .box-checklist li {
  color: var(--text-light-secondary);
}

.chk-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-purple-light);
}

.chk-icon.light-chk {
  color: var(--brand-purple);
}

/* ==========================================================================
   SECTION 4: HOW I WORK (DARK BG)
   ========================================================================== */
.section-how {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  padding: 100px 0;
  border-bottom: 1px solid var(--bg-dark-border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.how-step {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  position: relative;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-purple-light);
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark-muted);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark-muted);
  font-size: 1.2rem;
  z-index: 5;
}

/* ==========================================================================
   SECTION 5: LET'S WORK TOGETHER (LIGHT BG)
   ========================================================================== */
.section-contact {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-light-primary);
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius);
  color: var(--text-light-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.badge-link:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.contact-form-box {
  background-color: #ffffff;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-light-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-width {
  margin-top: 20px;
  margin-bottom: 24px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #f8f9fc;
  border: 1px solid #d8dce8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  background-color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  padding: 56px 0 40px;
  border-top: 1px solid var(--bg-dark-border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copyright-info {
  font-size: 0.82rem;
  color: var(--text-dark-secondary);
}
.copyright-info .sub-info {
  color: var(--text-dark-muted);
  margin-top: 4px;
}

.footer-center-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-center-links a {
  color: var(--text-dark-secondary);
  text-decoration: none;
}
.footer-center-links a:hover {
  color: #ffffff;
}

.footer-center-links .sep {
  color: var(--text-dark-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  color: #ffffff;
  border-radius: var(--radius);
  text-decoration: none;
}
.back-top-btn:hover {
  border-color: var(--brand-purple-light);
  color: var(--brand-purple-light);
}

.footer-motto {
  display: flex;
  flex-direction: column;
  font-size: 0.65rem;
  color: var(--text-dark-muted);
  letter-spacing: 0.2em;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; }
  .primary-navigation { display: none; }
  .why-header-grid,
  .services-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-right-pillar { display: none; }
}

@media (max-width: 480px) {
  .stats-grid,
  .work-grid,
  .how-grid,
  .form-row { grid-template-columns: 1fr; }
  .service-box, .contact-form-box { padding: 28px 20px; }
}

/* Parallax & Scroll Reveal Effects */
.will-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
