/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: #ffffff;
  background: #081a2f;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}

a,
button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(46, 177, 207, 0.45);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 1.5rem;
  color: #081a2f;
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 1rem;
  color: #1a3a52;
}

p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem clamp(20px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: #081a2f;
  font-weight: 800;
  align-items: center;
  min-width: 210px;
}

.logo-text {
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo-subtext {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.085em;
  color: #1e78b5;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  color: #1e78b5;
  border-bottom-color: #1e78b5;
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 20px;
  }

  .logo {
    min-width: 0;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    max-width: calc(100vw - 40px);
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 0.45rem 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #071b32;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(30, 120, 181, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(7, 20, 38, 0.82) 0%, rgba(10, 58, 91, 0.62) 58%, rgba(7, 20, 38, 0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  padding: clamp(32px, 5vw, 72px);
  border-radius: 8px;
  background: rgba(7, 20, 38, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(2px);
}

.hero-title {
  font-weight: 800;
  line-height: 0.98;
  margin-bottom: 1.15rem;
  letter-spacing: 0;
}

.hero-title-primary,
.hero-title-secondary {
  display: block;
}

.hero-title-primary {
  font-size: clamp(54px, 7vw, 96px);
  white-space: nowrap;
}

.hero-title-secondary {
  font-size: clamp(42px, 5.2vw, 72px);
  max-width: 860px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #76d6ed;
}

.hero-description {
  font-size: clamp(18px, 2vw, 23px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  color: #e0e8f0;
}

.hero-tagline {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: #76d6ed;
  margin-bottom: 2rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  width: min(560px, 100%);
  margin: 0 auto;
}

.hero-actions .cta-primary,
.hero-actions .cta-secondary {
  width: 100%;
  min-height: 58px;
  margin: 0;
}

.hero-actions .cta-secondary {
  background: linear-gradient(135deg, #1e78b5, #2eb1cf);
  border-color: transparent;
  color: white;
}

.hero-actions .cta-secondary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #17679c, #269fba);
  box-shadow: 0 8px 24px rgba(30, 120, 181, 0.4);
}

.cta-primary,
.cta-secondary,
.cta-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  min-height: 48px;
}

.cta-primary,
.cta-primary-large {
  background: linear-gradient(135deg, #1e78b5, #2eb1cf);
  color: white;
  margin: 0 0.5rem 0.5rem 0;
}

.cta-primary:hover,
.cta-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 120, 181, 0.4);
}

.cta-secondary {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

.cta-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.section-back-to-home .cta-secondary,
.coming-soon-card .cta-secondary,
.page-surface .cta-secondary {
  color: #1e78b5;
  border-color: rgba(30, 120, 181, 0.35);
  background: white;
}

.section-back-to-home .cta-secondary:hover,
.coming-soon-card .cta-secondary:hover,
.page-surface .cta-secondary:hover {
  color: #081a2f;
  border-color: #1e78b5;
  background: #f0f7fb;
}

.cta-primary-large {
  font-size: 16px;
  padding: 16px 48px;
}

/* Sections */
section {
  padding: clamp(60px, 10vw, 100px) 0;
}

.section-what,
.section-dimensions,
.section-sectors,
.section-how,
.section-why {
  background: white;
}

.section-privacy,
.section-institutions {
  background: #f8fafc;
}

.section-cta-final {
  background: linear-gradient(135deg, #081a2f 0%, #1a3a52 100%);
  color: white;
  text-align: center;
}

.section-cta-final h2,
.section-cta-final p {
  color: white;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: #666;
  margin-bottom: 3rem;
}

/* Dimensions Grid */
.section-dimensions .container {
  max-width: 1360px;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2rem;
}

.dimension-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(8, 26, 47, 0.06);
}

.dimension-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.dimension-card img {
  width: 100%;
  height: clamp(150px, 12vw, 178px);
  object-fit: cover;
  object-position: 78% center;
  display: block;
  background: #071b32;
}

.dimension-card:nth-child(10) img {
  object-position: 50% center;
}

.dimension-card h3 {
  padding: 1.15rem 1.15rem 0.4rem;
  color: #081a2f;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.15;
}

.dimension-card p {
  padding: 0 1.15rem 1.25rem;
  color: #666;
  font-size: 14px;
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  min-height: 220px;
  background: #f0f7fb;
  box-shadow: 0 10px 28px rgba(8, 26, 47, 0.06);
}

.sector-card-image {
  width: 100%;
  height: 142px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--sector-accent, var(--primary-blue));
}

.sector-card-body {
  padding: 1.5rem;
}

.sector-card.has-card-body {
  padding: 0;
  overflow: hidden;
  border-top-color: var(--sector-primary, var(--primary-blue));
}

.sector-card.has-card-body:hover,
.sector-card.has-card-body:focus-visible {
  border-color: var(--sector-accent, var(--primary-blue));
}

.sector-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #0b3657;
  font-weight: 700;
  font-size: 0.92rem;
}

.sector-extended-page .sector-hero {
  background: linear-gradient(125deg, var(--sector-primary, #0b1f3a), color-mix(in srgb, var(--sector-primary, #0b1f3a) 72%, #000));
}

.sector-extended-page .sector-hero-with-image {
  position: relative;
  isolation: isolate;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--sector-primary, #0b1f3a) 94%, transparent), color-mix(in srgb, var(--sector-primary, #0b1f3a) 58%, transparent)), var(--sector-hero-image);
  background-size: cover;
  background-position: center;
}

.sector-action-panel {
  margin: 0 auto 2rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--sector-accent, #1677ff) 34%, #d8e1ea);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 26, 47, 0.08);
}

.sector-availability {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #0b3657;
  background: #eef4f8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sector-action-panel p {
  max-width: 58ch;
  margin: 0.9rem auto 0;
}

.sector-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.25);
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 330px;
  border-top: 4px solid var(--sector-accent, #1677ff);
}

.provider-logo-frame {
  width: 100%;
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 10px;
  background: var(--provider-logo-bg, #f7fafc);
}

.provider-logo {
  width: calc(100% - 0.75rem);
  max-width: 220px;
  height: 112px;
  object-fit: contain;
}

.provider-logo-fallback {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: #0b3657;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.provider-logo-fallback[hidden] {
  display: none;
}

.provider-card h3 {
  flex: 0 0 auto;
}

.provider-asset-note {
  min-height: 2.9em;
  margin: 0.55rem 0 0;
  color: #6b7280;
  font-size: 0.78rem;
}

.provider-asset-note-spacer {
  visibility: hidden;
}

.provider-cta {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--sector-primary, #0b1f3a);
  font-weight: 750;
  font-size: 0.88rem;
}

.provider-cta.is-disabled {
  color: #667585;
}

.sector-directory-error {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 640px) {
  .sector-card-image {
    height: 118px;
  }

  .provider-logo-frame {
    height: 146px;
  }

  .provider-logo {
    max-width: 260px;
    height: 124px;
  }

  .sector-action-row {
    flex-direction: column;
  }

  .sector-action-row > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.sector-card.active {
  border-color: #1e78b5;
  background: #f0f7fb;
}

.sector-card.coming-soon {
  opacity: 1;
  border-color: #1e78b5;
  cursor: pointer;
  background: #f0f7fb;
}

.sector-card:hover {
  border-color: #1e78b5;
  box-shadow: 0 8px 24px rgba(30, 120, 181, 0.15);
  transform: translateY(-2px);
}

.sector-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #081a2f;
  color: #76d6ed;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.sector-card h3 {
  color: #081a2f;
  margin-bottom: 0.5rem;
}

.sector-description {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 1rem;
}

.sector-status {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background: #e8f0ff;
  color: #155c8a;
}

.sector-status.coming-soon {
  background: #f0f0f0;
  color: #4b5563;
}

/* Steps */
.section-how {
  padding-bottom: clamp(16px, 2.4vw, 28px);
}

.section-why {
  padding-top: clamp(16px, 2.4vw, 28px);
}

.section-how h2,
.section-why h2 {
  margin-bottom: 1.25rem;
}

.section-why h2 {
  font-size: clamp(34px, 4.2vw, 52px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.75rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 0 0.75rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e78b5, #2eb1cf);
  color: white;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(30, 120, 181, 0.22);
}

.step h3 {
  color: #081a2f;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.18;
  margin-bottom: 0.65rem;
}

.step p {
  color: #666;
  font-size: 15px;
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto;
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.why-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: 8px;
  border: 1px solid #dce6ef;
  box-shadow: 0 12px 30px rgba(8, 26, 47, 0.06);
}

.why-card h3 {
  color: #081a2f;
  margin-bottom: 1.5rem;
}

.why-card ul {
  list-style: none;
}

.why-card li {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  line-height: 1.55;
  color: #3d4a57;
}

.why-card li:last-child {
  border-bottom: none;
}

.why-card strong {
  color: #1e78b5;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* Footer */
.footer {
  background: #081a2f;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px) 2rem;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 1rem;
  color: #76d6ed;
}

.footer-section p {
  font-size: 14px;
  color: #c8d6e5;
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #c8d6e5;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: block;
  padding: 0.4rem 0;
}

.footer-section a:hover {
  color: #76d6ed;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #999;
}

/* Responsive */
@media (max-width: 1180px) {
  .dimensions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .dimensions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  section {
    padding: clamp(40px, 8vw, 60px) 0;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    width: min(620px, calc(100% - 32px));
    padding: 1.5rem;
  }

  .hero-title-primary {
    font-size: clamp(38px, 11vw, 54px);
    white-space: normal;
  }

  .hero-title-secondary {
    font-size: clamp(30px, 8.8vw, 42px);
  }

  .hero-subtitle {
    font-size: clamp(21px, 6vw, 28px);
  }

  .hero-description,
  .hero-tagline {
    font-size: clamp(16px, 4.6vw, 19px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1rem;
  }

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

  .sectors-grid,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-how,
  .section-why {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .why-card li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 640px;
  }

  .hero-title-primary {
    font-size: clamp(36px, 10.4vw, 42px);
  }

  .hero-title-secondary {
    font-size: clamp(29px, 8.5vw, 34px);
  }

  .hero-subtitle {
    font-size: 23px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }

  h2 {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }
}
