/* ============================================
   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
   ============================================ */

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 40px 160px;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 48px;
  white-space: nowrap;
}

.stat-item:not(:last-child) {
  border-right: 1px solid #E5E7EB;
}

.stat-number {
  font-size: 28px;
  font-weight: 300;
  color: #0C1220;
}

.stat-label {
  font-size: 14px;
  font-weight: 300;
  color: #6B7280;
}

/* Featured products */
.featured-section {
  padding: 80px 160px;
}

.featured-section .label {
  margin-bottom: 40px;
  display: block;
}

.featured-grid {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.featured-card {
  flex: 1;
  background: #0D0D0D;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow: hidden;
  min-height: 320px;
  min-width: 0;
}

.featured-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.featured-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.featured-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.featured-card-icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  color: #FFFFFF;
  flex-shrink: 0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.category-badge--dark {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.category-badge--finance { background: #F5F0FF; color: #5B3A9E; }
.category-badge--health { background: #F0FFF4; color: #0D6E4F; }
.category-badge--lifestyle { background: #FFF8F0; color: #9E5B1A; }
.category-badge--utility { background: #F0F4FF; color: #1A3A5C; }

.featured-card h3 {
  font-size: 22px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.featured-card .tagline {
  font-size: 14px;
  font-weight: 300;
  color: #9CA3AF;
  margin-bottom: 20px;
}

.featured-card .capabilities {
  list-style: none;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.featured-card .capabilities li {
  font-size: 13px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.8;
  padding-left: 14px;
  position: relative;
}

.featured-card .capabilities li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #475569;
}

.featured-card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost .arrow {
  font-size: 12px;
  opacity: 0.6;
}

.featured-card-screenshot {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.featured-card-screenshot img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* All products grid */
.all-products-section {
  padding: 80px 160px;
  background: #F9FAFB;
}

.all-products-section .label {
  margin-bottom: 40px;
}

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

.product-card {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
}

.product-card-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: #FFFFFF;
  flex-shrink: 0;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: #0C1220;
}

.product-card .desc {
  font-size: 13px;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.6;
}

.product-card-platforms {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: #F5F5F5;
  font-size: 11px;
  font-weight: 400;
  color: #6B7280;
  text-decoration: none;
}

a.platform-badge {
  background: #0C1220;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
}

a.platform-badge:hover {
  opacity: 0.8;
}

/* CryptoLens detail section */
.product-detail {
  padding: 80px 160px;
}

.product-detail-inner {
  display: flex;
  gap: 80px;
}

.product-detail-left {
  flex: 6;
}

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

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

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

.product-detail-right {
  flex: 4;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.product-detail-right img {
  max-width: 160px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
}

/* ============================================
   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;
  }

  .stats-bar {
    padding: 32px 40px;
  }

  .stat-item {
    padding: 0 32px;
  }

  .featured-section {
    padding: 60px 40px;
  }

  .featured-grid {
    flex-direction: column;
    gap: 24px;
  }

  .all-products-section {
    padding: 60px 40px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    padding: 60px 40px;
  }

  .product-detail-inner {
    flex-direction: column;
    gap: 40px;
  }

  .product-detail-right img {
    max-width: 140px;
  }

  .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%;
  }

  .stats-bar {
    flex-wrap: wrap;
    padding: 24px;
    gap: 16px;
    justify-content: flex-start;
  }

  .stat-item {
    padding: 0;
    border: none !important;
  }

  .stat-item:not(:last-child) {
    border-right: none;
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid #E5E7EB !important;
  }

  .stat-number {
    font-size: 22px;
  }

  .featured-section {
    padding: 48px 24px;
  }

  .featured-grid {
    flex-direction: column;
    gap: 20px;
  }

  .featured-card {
    padding: 24px;
    min-height: auto;
  }

  .featured-card-screenshot {
    display: none;
  }

  .featured-card h3 {
    font-size: 20px;
  }

  .all-products-section {
    padding: 48px 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 48px 24px;
  }

  .product-detail-inner {
    flex-direction: column;
    gap: 32px;
  }

  .product-detail-right {
    justify-content: flex-start;
  }

  .product-detail-right img {
    max-width: 130px;
  }

  .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;
  }
}
