:root {
  --soft-navy: #3d4f61;
  --deep-navy: #1f2d3a;
  --slate: #2a3a4a;
  --warm-cream: #f0ece8;
  --warm-gold: #d4af82;
}

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

html {
  background: #3d4f61;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(160deg, #3d4f61 0%, #2a3a4a 50%, #1f2d3a 100%);
  color: var(--warm-cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== */
/* Navigation - Global  */
/* ==================== */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(61, 79, 97, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--warm-cream);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--warm-cream);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.8;
}

/* ==================== */
/* Landing Split Layout */
/* ==================== */

.landing-container {
  display: flex;
  min-height: calc(100vh - 96px);
  border-radius: 24px;
  margin: 16px auto 0;
  max-width: calc(100% - 48px);
  overflow: hidden;
}

.landing-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 16px;
}

.landing-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a3a4a 0%, #1f2d3a 100%);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* Hero Content */
.hero-content {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.headline {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 40px;
}

.headline em {
  font-style: italic;
  color: var(--warm-gold);
  font-weight: 400;
}

/* Hero Login Section */
.hero-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: rgba(240, 236, 232, 0.08);
  border: 1px solid rgba(240, 236, 232, 0.2);
  color: var(--warm-cream);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: rgba(240, 236, 232, 0.12);
  border-color: rgba(240, 236, 232, 0.35);
}

.microsoft-icon {
  width: 20px;
  height: 20px;
}

.hero-login-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  opacity: 0.4;
}

.hero-login-divider::before,
.hero-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--warm-cream);
  opacity: 0.3;
}

.hero-login-divider span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta {
  display: inline-block;
  width: 100%;
  padding: 12px 28px;
  border: 1px solid rgba(240, 236, 232, 0.25);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--warm-cream);
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta:hover {
  background: rgba(240, 236, 232, 0.05);
  border-color: rgba(240, 236, 232, 0.4);
}

/* Brand Visual - Right side */
.landing-brand-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brand-logo-large {
  width: 300px;
  height: 300px;
  opacity: 0.9;
}

/* Core glow breathing animation */
.core-glow {
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Node pulse animations with staggered delays */
.node {
  animation: pulse 6s ease-in-out infinite;
}

.node-1 {
  animation-delay: 0s;
}

.node-2 {
  animation-delay: 0.8s;
}

.node-3 {
  animation-delay: 1.6s;
}

.node-4 {
  animation-delay: 2.4s;
}

.node-5 {
  animation-delay: 3.2s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

@media (max-width: 900px) {
  .nav {
    padding: 24px;
  }

  .landing-container {
    flex-direction: column;
    min-height: calc(100vh - 72px);
    margin: 12px 16px 0;
    border-radius: 20px;
  }

  .landing-left {
    padding: 24px;
    order: 1;
  }

  .landing-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero-content {
    max-width: 100%;
  }

  .headline {
    font-size: 26px;
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 16px;
  }

  .nav.scrolled {
    padding: 12px 16px;
  }

  .landing-container {
    margin: 8px 12px 0;
    border-radius: 16px;
  }

  .landing-left {
    padding: 16px;
  }

  .headline {
    font-size: 24px;
  }

  .login-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* ==================== */
/* Accessibility        */
/* ==================== */

@media (prefers-reduced-motion: reduce) {
  .core-glow,
  .node {
    animation: none;
  }

  .cta,
  .login-btn,
  .nav-links a,
  .logo {
    transition: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible {
  outline: 2px solid var(--warm-gold);
  outline-offset: 4px;
}

/* ==================== */
/* What We Do Section   */
/* ==================== */

.what-we-do-section {
  padding: 120px 40px;
  background: var(--slate);
  scroll-margin-top: 40px;
}

.what-we-do-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.what-we-do-header .section-headline {
  margin-bottom: 16px;
}

.what-we-do-intro {
  font-size: 16px;
  color: rgba(240, 236, 232, 0.8);
  line-height: 1.6;
  text-align: center;
}

.what-we-do-intro em {
  font-style: italic;
  color: var(--warm-gold);
}

.what-we-do-container {
  display: flex;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.capabilities-list {
  flex: 0 0 320px;
}

.section-headline {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 48px;
  color: var(--warm-cream);
}

.section-headline em {
  font-style: italic;
  color: var(--warm-gold);
}

.capability-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  font-family: "DM Sans", sans-serif;
  color: var(--warm-cream);
  opacity: 0.5;
  position: relative;
}

.capability-item:hover {
  opacity: 0.8;
  background: rgba(240, 236, 232, 0.03);
}

.capability-item.active {
  opacity: 1;
  background: rgba(240, 236, 232, 0.05);
  border-color: rgba(212, 175, 130, 0.3);
}

.capability-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--warm-cream);
  transition: color 0.3s ease;
}

.capability-item.active .capability-icon {
  color: var(--warm-gold);
}

.capability-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex: 1;
}

.capability-line {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--warm-gold);
  transition: width 0.3s ease;
}

.capability-item.active .capability-line {
  width: 40px;
}

/* Detail Panel - Right Side */
.capability-detail-wrapper {
  flex: 1;
  position: relative;
  align-self: stretch;
}

.capability-detail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.capability-detail.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  height: 100%;
}

.detail-split {
  display: flex;
  gap: 0;
  background: rgba(31, 45, 58, 0.6);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 236, 232, 0.08);
  height: 100%;
}

.detail-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(42, 58, 74, 0.8) 0%, rgba(31, 45, 58, 0.8) 100%);
  padding: 40px;
}

.detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  border: 2px dashed rgba(240, 236, 232, 0.1);
  border-radius: 12px;
  color: var(--warm-cream);
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  opacity: 0.4;
}

.detail-image-container {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.detail-image-container:hover .detail-image {
  transform: scale(1);
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background: rgba(240, 236, 232, 0.02);
}

.detail-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--warm-cream);
  opacity: 0.8;
}

.detail-text em {
  font-style: italic;
  color: var(--warm-gold);
}

/* Responsive - What We Do */
@media (max-width: 900px) {
  .what-we-do-section {
    padding: 80px 24px;
  }

  .what-we-do-header {
    margin-bottom: 48px;
  }

  .what-we-do-header .section-headline {
    font-size: 32px;
  }

  .what-we-do-intro {
    font-size: 15px;
  }

  .what-we-do-container {
    flex-direction: column;
    gap: 48px;
  }

  .capabilities-list {
    flex: none;
    width: 100%;
  }

  .section-headline {
    font-size: 32px;
    text-align: center;
    margin-bottom: 32px;
  }

  .capability-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .capability-item {
    width: auto;
    padding: 12px 20px;
  }

  .capability-line {
    display: none;
  }

  .capability-detail-wrapper {
    min-height: auto;
  }

  .detail-split {
    flex-direction: column;
  }

  .detail-visual {
    min-height: 200px;
    padding: 32px;
  }

  .detail-content {
    padding: 32px 24px;
  }

  .detail-text {
    font-size: 16px;
  }

  .capability-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .capability-items {
    flex-direction: column;
  }

  .capability-item {
    width: 100%;
  }
}

/* ==================== */
/* Team Section          */
/* ==================== */

.team-section {
  padding: 120px 40px;
  background: var(--deep-navy);
}

.team-headline {
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 24px;
  color: var(--warm-cream);
}

.team-intro {
  font-size: 16px;
  text-align: center;
  color: rgba(240, 236, 232, 0.7);
  margin-bottom: 64px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.team-headline em,
.team-intro em {
  font-style: italic;
  color: var(--warm-gold);
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  text-align: left;
}

.team-photo-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
}

.team-photo-bg {
  position: absolute;
  inset: 0;
  background: var(--warm-cream);
  border-radius: 16px;
}

.team-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.05);
  mix-blend-mode: multiply;
  border-radius: 16px;
}

.team-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-name {
  font-size: 28px;
  font-weight: 400;
  color: var(--warm-cream);
  margin-bottom: 8px;
}

.team-role {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--warm-cream);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--warm-cream);
  opacity: 0.7;
  max-width: 280px;
}

@media (max-width: 768px) {
  .team-section {
    padding: 80px 24px;
  }

  .team-headline {
    font-size: 32px;
    margin-bottom: 48px;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .team-card {
    text-align: center;
  }

  .team-photo-container {
    width: 240px;
    height: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  .team-bio {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================== */
/* Pricing Section (Landing Page) */
/* ==================== */

.pricing-section {
  padding: 120px 40px;
  background: var(--soft-navy);
  max-width: 100%;
}

.pricing-section .pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-section .pricing-card {
  background: rgba(240, 236, 232, 0.05);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(240, 236, 232, 0.15);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-section .pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.pricing-section .pricing-card.featured {
  border: 2px solid var(--warm-gold);
  box-shadow: 0 4px 24px rgba(212, 175, 130, 0.3);
  background: rgba(240, 236, 232, 0.08);
}

.pricing-section .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-gold);
  color: var(--deep-navy);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
}

.pricing-section .card-header {
  margin-bottom: 24px;
}

.pricing-section .tier-name {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--warm-cream);
}

.pricing-section .tier-best-for {
  font-size: 14px;
  color: var(--warm-cream);
  opacity: 0.7;
  line-height: 1.5;
}

.pricing-section .card-pricing {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(240, 236, 232, 0.15);
}

.pricing-section .price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-section .price-amount {
  font-size: 36px;
  font-weight: 400;
  color: var(--warm-cream);
}

.pricing-section .price-period {
  font-size: 16px;
  color: var(--warm-cream);
  opacity: 0.6;
}

.pricing-section .card-includes {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 24px;
}

.pricing-section .card-includes li {
  font-size: 14px;
  color: var(--warm-cream);
  opacity: 0.8;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-section .card-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--warm-gold);
  font-weight: 400;
}

.pricing-section .card-cta {
  display: block;
  text-align: center;
  padding: 12px 28px;
  border: 1px solid rgba(240, 236, 232, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--warm-cream);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pricing-section .card-cta:hover {
  background: rgba(240, 236, 232, 0.05);
  border-color: rgba(240, 236, 232, 0.4);
}

.pricing-section .pricing-card.featured .card-cta {
  background: rgba(240, 236, 232, 0.1);
  border-color: rgba(240, 236, 232, 0.4);
}

.pricing-section .pricing-card.featured .card-cta:hover {
  background: rgba(240, 236, 232, 0.15);
  border-color: var(--warm-gold);
}

.pricing-headline {
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
  color: var(--warm-cream);
}

.pricing-headline em {
  font-style: italic;
  color: var(--warm-gold);
}

.pricing-intro {
  font-size: 16px;
  text-align: center;
  color: rgba(240, 236, 232, 0.7);
  margin-bottom: 64px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive - Pricing Section */
@media (max-width: 900px) {
  .pricing-section {
    padding: 80px 24px;
  }

  .pricing-section .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-section .pricing-card.featured {
    order: -1;
  }

  .pricing-headline {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .pricing-section {
    padding: 64px 16px;
  }

  .pricing-headline {
    font-size: 28px;
  }

  .pricing-intro {
    font-size: 14px;
    margin-bottom: 48px;
  }
}

/* ==================== */
/* Footer - Global      */
/* ==================== */

.footer {
  padding: 40px;
  background: var(--deep-navy);
  border-top: 1px solid rgba(240, 236, 232, 0.08);
}

.copyright {
  font-size: 13px;
  color: var(--warm-cream);
  opacity: 0.5;
  text-align: left;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 24px;
  }

  .copyright {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 24px 16px;
  }
}
