/* Hidden Insights Digital Shared site stylesheet */

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

/* Base */
html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", sans-serif;
  background: #00172d;
  color: #e9eff9;
}

html.home-page,
body.home-page {
  overflow: hidden;
}

/* Background */
.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #00172d 0%, #001a35 50%, #00142a 100%);
  filter: saturate(1.1);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(200, 255, 255, 0.05) 25%,
      rgba(200, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(200, 255, 255, 0.05) 75%,
      rgba(200, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(200, 255, 255, 0.05) 25%,
      rgba(200, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(200, 255, 255, 0.05) 75%,
      rgba(200, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    );
  background-size: 80px 80px;
  opacity: 0.3;
  pointer-events: none;
}

.atmospheric-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1200px;
  height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 200, 255, 0.15) 0%, rgba(0, 200, 255, 0.05) 30%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* Header */
.site-header {
  position: relative;
  width: 100%;
  margin: 60px 0 22px;
  z-index: 20;
}

.home-page .site-header {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  margin: 0;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: #f4fbff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.brand-link:hover {
  color: #00d4ff;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: max(0px, calc(100% - 960px));
  flex-shrink: 0;
}

.header-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8c5d6;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.header-link:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
}

.header-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(1, 9, 19, 0.6);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  color: #a9bcd4;
  font-size: 0.85rem;
}

.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #b8c5d6;
}

.footer-meta a {
  color: #b8c5d6;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #00d4ff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #00a8ff 100%);
  color: #00172d;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #00e6ff 0%, #00baff 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #00d4ff;
  border: 2px solid #00d4ff;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Contact page button variant */
.contact-page .btn-primary {
  background: linear-gradient(135deg, #ffd176 0%, #ffb044 100%);
  color: #00172d;
  box-shadow: 0 8px 24px rgba(255, 176, 36, 0.3);
}

.contact-page .btn-primary:hover {
  background: linear-gradient(135deg, #ffe09a 0%, #ffc060 100%);
  box-shadow: 0 12px 30px rgba(255, 176, 36, 0.45);
}

.contact-page .btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Utility */
.inline-link {
  color: #00d4ff;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.meta-note {
  margin-top: 28px;
  color: #8899aa;
  font-size: 0.9rem;
}

.honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* Home */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #00172d 0%, #001a35 50%, #00142a 100%);
}

.content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.hero-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-text {
  max-width: 650px;
  pointer-events: auto;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

.hero-subtext {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: #b8c5d6;
  margin-bottom: 36px;
  font-weight: 400;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Shared internal pages */
.page-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 60px 64px;
  position: relative;
  z-index: 10;
}

.content-card {
  width: min(100%, 960px);
  background: rgba(9, 18, 34, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  padding: 36px 40px;
}

.content-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #f4fbff;
  margin-bottom: 10px;
}

.page-intro {
  color: #cfd8e8;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.page-text {
  margin-bottom: 16px;
  color: #d0d9e8;
  line-height: 1.65;
  font-size: 1.02rem;
}

.page-text strong {
  color: #ffffff;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #00d4ff;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-title::before {
  content: "";
  width: 24px;
  height: 2px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.9), rgba(129, 233, 255, 0.8));
}

.legal-page .page-intro {
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-page .page-text {
  font-size: 0.875rem;
}

.legal-page .section-title {
  font-size: 1.00rem;
}
/* Contact */
.contact-card {
  width: min(100%, 960px);
  background: rgba(8, 20, 40, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  padding: 36px;
}

.contact-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
  color: #ffffff;
}

.contact-intro {
  color: #b8c5d6;
  margin-bottom: 28px;
  line-height: 1.6;
}

.success-message {
  text-align: center;
  padding: 40px;
}

.success-message h2 {
  color: #ffb044;
  margin-bottom: 12px;
}

.success-message p {
  color: #b8c5d6;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.92rem;
  color: #b8c5d6;
  font-weight: 500;
}

input,
textarea,
select {
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(9, 18, 36, 0.84);
  color: #f4f8ff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.35);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card .submit-row {
  justify-content: space-between;
}

.action-row {
  justify-content: flex-start;
}

/* Responsive */
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container,
  .hero-content,
  .page-wrap {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-content {
    justify-content: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .cta-group {
    justify-content: center;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .content-card,
  .contact-card {
    padding: 28px 22px;
  }

  .content-card h1 {
    font-size: 1.8rem;
  }

  .page-intro,
  .page-text {
    font-size: 0.98rem;
  }

  .legal-page .page-intro {
    font-size: 0.92rem;
  }

  .legal-page .page-text {
    font-size: 0.84rem;
  }

  .contact-card .submit-row,
  .action-row {
    justify-content: flex-start;
  }
}