/* =========================================
   TELEOCEAN — Home Page Styles
   ========================================= */

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 920px;
  overflow: hidden;
  background: var(--space);
  display: flex;
  align-items: center;
}

/* Starfield canvas */
#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* SVG scene */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.scene-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero overlay gradient */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(2,11,24,0.92) 0%,
    rgba(2,11,24,0.7) 40%,
    rgba(2,11,24,0.15) 100%
  );
  z-index: 2;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--signal);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.35s both;
}
.hero-title em {
  color: var(--signal);
  font-style: normal;
  display: block;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.5s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.65s both;
}

/* Credentials row */
.hero-creds {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 56px;
  animation: fadeUp 0.8s ease 0.8s both;
}
.cred-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}
.cred-item:first-child { padding-left: 0; }
.cred-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cred-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.cred-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 1.2s both;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  width: 1px;
  height: 16px;
  background: var(--signal);
  position: absolute;
  top: 0;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Crew Banner ── */
.crew-banner {
  background: linear-gradient(90deg, var(--deep) 0%, var(--mid) 100%);
  border-top: 1px solid rgba(0,212,255,0.2);
  border-bottom: 1px solid rgba(0,212,255,0.2);
  padding: 16px 32px;
}
.crew-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.crew-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* ── Services Section ── */
.section-head {
  margin-bottom: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  color: var(--signal);
}
.service-icon svg { width: 100%; height: 100%; }
/* Force all icon SVG strokes/fills to use signal color */
.service-icon svg circle,
.service-icon svg path,
.service-icon svg ellipse {
  stroke: var(--signal);
}
.service-icon svg circle[fill="#00D4FF"],
.service-icon svg path[fill="#00D4FF"] {
  fill: var(--signal);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.service-features li {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.service-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.05em;
  transition: letter-spacing var(--transition);
}
.service-link:hover { letter-spacing: 0.1em; }

/* ── About Strip ── */
.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--signal);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Qualifications card */
.qual-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  backdrop-filter: blur(8px);
}
.qual-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.qual-item-lg {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.qual-item-lg:last-of-type { border-bottom: none; }
.qual-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 18px;
  flex-shrink: 0;
}
.qual-name {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.qual-code {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.qual-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.qual-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ── Partners ── */
.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.partner-logo {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.partner-logo:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
}
.partner-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}
.partner-type {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .hero-content { padding: 0 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-creds { gap: 0; }
  .cred-item { padding: 0 16px; }
  .about-stats { gap: 32px; }
}
