/* ============================================
   CODEENSIS — Global Stylesheet
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0C1220;
  background: #FFFFFF;
  line-height: 1.5;
}

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

ul, ol {
  list-style: none;
}

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

/* --- Typography --- */
.label {
  font-size: 11px;
  letter-spacing: 4px;
  color: #9CA3AF;
  text-transform: uppercase;
  font-weight: 400;
}

.page-title {
  font-size: 42px;
  font-weight: 300;
  color: #0C1220;
  line-height: 1.2;
}

.section-title {
  font-size: 32px;
  font-weight: 300;
  color: #0C1220;
  line-height: 1.2;
}

.body-text {
  font-size: 16px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
}

.small-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #9CA3AF;
  text-transform: uppercase;
  font-weight: 400;
}

/* --- Layout --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 160px;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: #E5E7EB;
  border: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 160px;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 14px;
  letter-spacing: 10px;
  color: #0C1220;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 3px;
  color: #6B7280;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0C1220;
  font-weight: 500;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #0C1220;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */

/* Homepage hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 160px;
  gap: 40px;
  text-align: center;
}

.hero-logo {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 20px;
  color: #0C1220;
}

.hero-line {
  width: 80px;
  height: 1px;
  background: #CBD5E1;
}

.hero-desc {
  max-width: 600px;
  font-size: 18px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 100px 160px;
}

.page-hero .label {
  margin-bottom: 16px;
}

.page-hero .page-title {
  margin-bottom: 0;
}

.page-hero-desc {
  margin-top: 16px;
  max-width: 680px;
  font-size: 16px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
}

/* Page hero with reduced bottom */
.page-hero--compact {
  padding-bottom: 60px;
}

/* Legal hero */
.page-hero--legal {
  padding: 80px 160px 40px;
}

.page-hero--legal .page-title {
  margin-bottom: 12px;
}

.page-hero--legal .meta {
  font-size: 14px;
  font-weight: 300;
  color: #9CA3AF;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Products preview */
.home-section {
  padding: 100px 160px;
}

.home-section--alt {
  background: #F9FAFB;
}

.section-header {
  margin-bottom: 60px;
}

.section-header .label {
  margin-bottom: 16px;
}

.home-grid {
  display: flex;
  gap: 40px;
}

.home-grid-item {
  flex: 1;
  padding-top: 32px;
}

.home-grid-item h3 {
  font-size: 20px;
  font-weight: 500;
  color: #0C1220;
  margin-bottom: 16px;
}

.home-grid-item p {
  font-size: 15px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
}

/* Homepage contact preview */
.home-contact {
  padding: 100px 160px;
}

.home-contact .section-header {
  margin-bottom: 40px;
}

.home-contact-body {
  display: flex;
  gap: 80px;
}

.home-contact-left {
  flex: 1;
}

.home-contact-left .body-text {
  margin-bottom: 24px;
}

.home-contact-right {
  flex: 1;
}

.contact-info-group {
  margin-bottom: 24px;
}

.contact-info-group .small-label {
  margin-bottom: 6px;
}

.contact-info-group .value {
  font-size: 16px;
  color: #0C1220;
}

.contact-info-group .value--secondary {
  font-size: 16px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
}

.contact-info-group .value--small {
  font-size: 14px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
}

/* ============================================
   COMPANY / ABOUT
   ============================================ */
.about-body {
  padding: 80px 160px;
}

.about-intro {
  display: flex;
  gap: 80px;
}

.about-intro-col {
  flex: 1;
}

.about-intro-col h2 {
  font-size: 24px;
  font-weight: 400;
  color: #0C1220;
  margin-bottom: 20px;
}

.about-intro-col p {
  font-size: 16px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
}

.principles {
  padding: 80px 160px;
  background: #F9FAFB;
}

.principles .label {
  margin-bottom: 48px;
}

.principles-grid {
  display: flex;
  gap: 48px;
}

.principle {
  flex: 1;
}

.principle h3 {
  font-size: 18px;
  font-weight: 500;
  color: #0C1220;
  margin-bottom: 12px;
}

.principle p {
  font-size: 15px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.product-block {
  display: flex;
  gap: 80px;
  padding: 60px 160px;
}

.product-block--alt {
  background: #F9FAFB;
}

.product-left {
  flex: 1;
}

.product-left h2 {
  font-size: 28px;
  font-weight: 400;
  color: #0C1220;
  margin-bottom: 8px;
}

.product-subtitle {
  font-size: 14px;
  letter-spacing: 1px;
  color: #9CA3AF;
  margin-bottom: 20px;
}

.product-left .body-text {
  white-space: pre-line;
}

.product-right {
  width: 320px;
  flex-shrink: 0;
  padding-top: 24px;
}

.capabilities-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #9CA3AF;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.capabilities-list {
  font-size: 14px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-block {
  display: flex;
  gap: 80px;
  padding: 60px 160px;
}

.service-block--alt {
  background: #F9FAFB;
}

.service-left {
  width: 200px;
  flex-shrink: 0;
}

.service-number {
  font-size: 13px;
  letter-spacing: 2px;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.service-left h2 {
  font-size: 22px;
  font-weight: 400;
  color: #0C1220;
}

.service-right {
  flex: 1;
}

.service-right .body-text {
  margin-bottom: 20px;
  white-space: pre-line;
}

.scope-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #9CA3AF;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.scope-list {
  font-size: 14px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-body {
  display: flex;
  gap: 120px;
  padding: 80px 160px;
}

.contact-left {
  flex: 1;
}

.contact-left .body-text {
  margin-bottom: 40px;
}

.contact-right {
  width: 360px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: #9CA3AF;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0 16px;
  height: 48px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #0C1220;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #CBD5E1;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #9CA3AF;
}

.form-group textarea {
  height: 140px;
  padding: 16px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: #0C1220;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-body {
  padding: 60px 160px 60px 160px;
  max-width: 880px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 500;
  color: #0C1220;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
  white-space: pre-line;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0C1220;
  padding: 48px 160px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 12px;
  letter-spacing: 8px;
  color: #FFFFFF;
  font-weight: 400;
}

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

.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: #6B7280;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #1E293B;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: #475569;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 300;
  color: #475569;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #FFFFFF;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .nav {
    padding: 0 40px;
  }

  .hero {
    padding: 100px 40px;
  }

  .page-hero,
  .page-hero--compact {
    padding-left: 40px;
    padding-right: 40px;
  }

  .page-hero--legal {
    padding-left: 40px;
    padding-right: 40px;
  }

  .home-section,
  .home-contact {
    padding: 80px 40px;
  }

  .about-body {
    padding: 60px 40px;
  }

  .principles {
    padding: 60px 40px;
  }

  .product-block {
    padding: 48px 40px;
    flex-direction: column;
    gap: 40px;
  }

  .product-right {
    width: 100%;
  }

  .service-block {
    padding: 48px 40px;
    flex-direction: column;
    gap: 24px;
  }

  .service-left {
    width: 100%;
  }

  .contact-body {
    padding: 60px 40px;
    flex-direction: column;
    gap: 60px;
  }

  .contact-right {
    width: 100%;
  }

  .legal-body {
    padding: 48px 40px;
    max-width: 100%;
  }

  .footer {
    padding: 48px 40px;
  }

  .section-padding {
    padding: 80px 40px;
  }

  .home-contact-body {
    flex-direction: column;
    gap: 40px;
  }

  .about-intro {
    flex-direction: column;
    gap: 48px;
  }

  .principles-grid {
    flex-wrap: wrap;
    gap: 32px;
  }

  .principles-grid .principle {
    flex: 1 1 calc(50% - 16px);
    min-width: 250px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: #FFFFFF;
    padding: 40px 24px;
    gap: 32px;
    z-index: 100;
    border-top: 1px solid #E5E7EB;
  }

  .nav-links.open {
    display: flex;
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 80px 24px;
    gap: 32px;
  }

  .hero-logo {
    font-size: 28px;
    letter-spacing: 12px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .page-hero,
  .page-hero--compact {
    padding: 60px 24px 40px;
  }

  .page-hero--legal {
    padding: 60px 24px 32px;
  }

  .page-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .home-section,
  .home-contact {
    padding: 60px 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .home-grid {
    flex-direction: column;
    gap: 32px;
  }

  .home-grid-item {
    padding-top: 0;
  }

  .about-body {
    padding: 48px 24px;
  }

  .about-intro {
    flex-direction: column;
    gap: 40px;
  }

  .principles {
    padding: 48px 24px;
  }

  .principles-grid {
    flex-direction: column;
    gap: 32px;
  }

  .principles-grid .principle {
    flex: 1 1 100%;
  }

  .product-block {
    padding: 40px 24px;
    flex-direction: column;
    gap: 32px;
  }

  .product-right {
    width: 100%;
  }

  .product-left h2 {
    font-size: 24px;
  }

  .service-block {
    padding: 40px 24px;
    flex-direction: column;
    gap: 20px;
  }

  .service-left {
    width: 100%;
  }

  .contact-body {
    padding: 48px 24px;
    flex-direction: column;
    gap: 48px;
  }

  .contact-right {
    width: 100%;
  }

  .legal-body {
    padding: 40px 24px;
  }

  .footer {
    padding: 40px 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* Small mobile */
@media (max-width: 390px) {
  .hero-logo {
    font-size: 22px;
    letter-spacing: 8px;
  }

  .page-title {
    font-size: 28px;
  }

  .nav-logo {
    font-size: 12px;
    letter-spacing: 6px;
  }
}
