/* ============================================
   Structura Capital — Premium Stylesheet
   Deep navy + warm off-white, minimal
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a1628;
  --navy-light: #162240;
  --white: #fff;
  --offwhite: #f8f7f5;
  --gray-100: #f0efed;
  --gray-200: #e0dfdb;
  --gray-400: #8a8a8a;
  --gray-600: #555;
  --max-width: 1080px;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  background: var(--offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent state (over hero) */
.nav--transparent {
  background: transparent;
}

/* Solid state (after scroll) */
.nav--solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color 0.4s ease;
}

.nav--transparent .nav-logo { color: var(--white); }
.nav--solid .nav-logo { color: var(--navy); }

.nav-icon {
  height: 36px;
  width: 36px;
}

.nav-wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: none;
  border: 1px solid;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav--transparent .lang-toggle {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}
.nav--transparent .lang-toggle:hover {
  color: var(--white);
  border-color: var(--white);
}
.nav--solid .lang-toggle {
  color: var(--gray-400);
  border-color: var(--gray-200);
}
.nav--solid .lang-toggle:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.nav-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 22px;
  border: 1.5px solid;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav--transparent .nav-btn {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.nav--transparent .nav-btn:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.nav--solid .nav-btn {
  color: var(--navy);
  border-color: var(--navy);
}
.nav--solid .nav-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(10, 22, 40, 0.55) 40%,
    rgba(10, 22, 40, 0.25) 70%,
    rgba(10, 22, 40, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 100px;
  max-width: var(--max-width);
  color: var(--white);
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 680px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.3s, border-color 0.3s;
}

.hero-cta:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---- Stats ---- */

.stats {
  background: var(--navy);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ---- Section label ---- */

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-400);
  margin-bottom: 56px;
}

/* ---- About ---- */

.about {
  padding: 100px 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
}

.about-block h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.about-block p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.85;
}

/* ---- Sectors ---- */

.sectors {
  background: var(--white);
  padding: 100px 0 120px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.sector-card {
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
}

.sector-icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  margin-bottom: 24px;
}

.sector-icon svg {
  width: 100%;
  height: 100%;
}

.sector-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.sector-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ---- Footer ---- */

.footer {
  background: var(--navy);
  padding: 48px 0;
  color: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  color: rgba(255,255,255,0.4);
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}

.footer-email {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.3s;
}

.footer-email:hover {
  border-color: var(--white);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .nav-wordmark {
    display: none;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-bottom: 60px;
  }

  .hero-tagline {
    font-size: 28px;
  }

  .stats {
    padding: 48px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .about {
    padding: 64px 0 80px;
  }

  .sectors {
    padding: 64px 0 80px;
  }

  .sector-card {
    padding: 28px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Login Page ---- */

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--offwhite);
}

.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  color: var(--navy);
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.login-subtitle {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 40px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 6px;
  display: block;
}

.login-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
}

.login-input:focus {
  border-color: var(--navy);
}

.login-submit {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
}

.login-submit:hover {
  opacity: 0.88;
}

.login-message {
  margin-top: 28px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  display: none;
}

.login-message.visible {
  display: block;
}

.login-back {
  display: inline-block;
  margin-top: 36px;
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.login-back:hover {
  color: var(--navy);
}
