/* ============================================================
   Ice Media Technology — Glacial Ice-Cyan Dark Theme
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #EAF4F8;
  background-color: #0E161E;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #5AC8D8;
  text-decoration: none;
}

a:hover {
  color: #C9EDF2;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5AC8D8;
  margin-bottom: 12px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D7E5EA;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: #EAF4F8;
  font-weight: 700;
}

h2 {
  font-size: 34px;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

p {
  color: #B8CDD8;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-solid {
  background-color: #5AC8D8;
  color: #08131A;
  border-color: #5AC8D8;
}

.btn-solid:hover {
  background-color: #C9EDF2;
  border-color: #C9EDF2;
  color: #08131A;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: #EAF4F8;
  border-color: #3E5966;
}

.btn-ghost:hover {
  border-color: #5AC8D8;
  color: #5AC8D8;
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION — .aurora-nav
   ============================================================ */
.aurora-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0A1319;
  border-bottom: 1px solid #1C2B35;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #EAF4F8;
}

.brand:hover {
  color: #C9EDF2;
}

.brand-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Aurora arcs mark — three thin stacked arcs */
.aurora-mark {
  position: relative;
  width: 30px;
  height: 22px;
  display: inline-block;
}

.aurora-mark .arc {
  position: absolute;
  left: 0;
  width: 30px;
  border-top: 3px solid;
  border-radius: 50%;
}

.aurora-mark .arc:nth-child(1) {
  top: 0;
  height: 22px;
  border-color: #5AC8D8;
}

.aurora-mark .arc:nth-child(2) {
  top: 5px;
  height: 15px;
  border-color: #C9EDF2;
}

.aurora-mark .arc:nth-child(3) {
  top: 10px;
  height: 9px;
  border-color: #D7E5EA;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  color: #D7E5EA;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #EAF4F8;
}

.nav-links a.active {
  color: #EAF4F8;
  border-bottom-color: #5AC8D8;
}

.nav-cta {
  padding: 11px 22px;
  border-radius: 6px;
  background-color: #5AC8D8;
  color: #08131A;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: #C9EDF2;
  color: #08131A;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #EAF4F8;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO — .iceberg-hero (split with CSS iceberg scene)
   ============================================================ */
.iceberg-hero {
  background-color: #0E161E;
  border-bottom: 1px solid #1C2B35;
  padding: 72px 0 64px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1 1 52%;
}

.hero-copy h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #5AC8D8;
}

.hero-stat-label {
  font-size: 14px;
  color: #B8CDD8;
}

.hero-scene {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

/* Iceberg scene — pure CSS */
.iceberg-scene {
  position: relative;
  width: 440px;
  height: 400px;
}

.iceberg-scene .waterline {
  position: absolute;
  top: 170px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #C9EDF2;
}

.iceberg-peak {
  position: absolute;
  top: 30px;
  left: 130px;
}

.iceberg-peak .peak-outer {
  display: block;
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 140px solid #C9EDF2;
}

.iceberg-peak .peak-inner {
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  width: 0;
  height: 0;
  border-left: 87px solid transparent;
  border-right: 87px solid transparent;
  border-bottom: 134px solid #0E161E;
}

.iceberg-below {
  position: absolute;
  top: 170px;
  left: 90px;
  width: 0;
  height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-top: 170px solid #1E4A5C;
}

.iceberg-below .below-facet {
  position: absolute;
  top: 4px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
  border-top: 78px solid #5AC8D8;
}

.ice-square {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #C9EDF2;
  background-color: transparent;
}

.ice-square.square-1 {
  top: 156px;
  left: 48px;
  animation: floaty 5s ease-in-out infinite;
}

.ice-square.square-2 {
  top: 150px;
  left: 352px;
  animation: floaty 6s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   STATEMENT BAND
   ============================================================ */
.statement-band {
  background-color: #111D26;
  padding: 80px 0;
  border-bottom: 1px solid #1C2B35;
}

.statement-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.statement-title {
  flex: 1 1 40%;
}

.statement-title h2 {
  font-size: 32px;
}

.statement-text {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.statement-text p {
  font-size: 17px;
}

/* ============================================================
   STREAM ROWS
   ============================================================ */
.stream-rows {
  background-color: #0E161E;
  padding: 80px 0;
  border-bottom: 1px solid #1C2B35;
}

.stream-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 30px 0;
  border-top: 1px solid #1C2B35;
}

.stream-row:last-child {
  border-bottom: 1px solid #1C2B35;
}

.stream-marker {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #5AC8D8;
  color: #08131A;
  font-weight: 800;
  font-size: 16px;
  border-radius: 6px;
}

.stream-body {
  flex: 1 1 auto;
}

.stream-body h3 {
  margin-bottom: 8px;
}

.stream-body p {
  font-size: 16px;
}

/* ============================================================
   CHANNEL GRID
   ============================================================ */
.channel-grid {
  background-color: #111D26;
  padding: 80px 0;
  border-bottom: 1px solid #1C2B35;
}

.channel-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.channel-card {
  background-color: #16242E;
  border-top: 3px solid #5AC8D8;
  border-radius: 8px;
  padding: 30px;
}

.channel-card h3 {
  color: #C9EDF2;
  margin-bottom: 10px;
}

.channel-card p {
  font-size: 16px;
}

/* ============================================================
   PLAYBACK BAND
   ============================================================ */
.playback-band {
  background-color: #0E161E;
  padding: 80px 0;
  border-bottom: 1px solid #1C2B35;
}

.playback-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.playback-stat {
  flex: 1 1 200px;
}

.playback-num {
  font-size: 52px;
  font-weight: 800;
  color: #EAF4F8;
  border-bottom: 3px solid #5AC8D8;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 12px;
  line-height: 1;
}

.playback-label {
  font-size: 16px;
  color: #B8CDD8;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background-color: #111D26;
  padding: 80px 0;
  border-bottom: 1px solid #1C2B35;
}

.faq-inner {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #16242E;
  border: 1px solid #1C2B35;
  border-radius: 8px;
  padding: 0 22px;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17px;
  color: #EAF4F8;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #5AC8D8;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 16px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background-color: #0E161E;
  padding: 80px 0;
}

.cta-inner {
  background-color: #1E4A5C;
  border-radius: 12px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-copy {
  flex: 1 1 60%;
}

.cta-copy h2 {
  color: #EAF4F8;
  font-size: 30px;
  margin-bottom: 12px;
}

.cta-copy p {
  color: #C9EDF2;
  font-size: 16px;
}

.cta-inner .btn-solid {
  background-color: #5AC8D8;
  color: #08131A;
}

/* ============================================================
   FOOTER — .icecap-footer
   ============================================================ */
.icecap-footer {
  background-color: #0A1319;
  border-top: 1px solid #1C2B35;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand-row {
  margin-bottom: 16px;
}

.icecap-mark {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #5AC8D8;
}

.footer-brand p {
  font-size: 15px;
}

.footer-col h4 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D7E5EA;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: #B8CDD8;
  font-size: 15px;
}

.footer-col ul a:hover {
  color: #5AC8D8;
}

.footer-col ul li {
  color: #B8CDD8;
  font-size: 15px;
}

.footer-legal {
  border-top: 1px solid #1C2B35;
  padding: 20px 0;
}

.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #B8CDD8;
}

.footer-legal-links {
  display: flex;
  gap: 22px;
}

.footer-legal-links a {
  color: #D7E5EA;
}

.footer-legal-links a:hover {
  color: #5AC8D8;
}

/* ============================================================
   INTERIOR PAGES (services.html / contact.html)
   ============================================================ */
.page-hero {
  background-color: #0E161E;
  border-bottom: 1px solid #1C2B35;
  padding: 72px 0 56px;
}

.page-hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.page-hero .hero-sub {
  max-width: 680px;
  margin-bottom: 0;
}

.service-section {
  background-color: #111D26;
  padding: 72px 0;
  border-bottom: 1px solid #1C2B35;
}

.service-section.alt {
  background-color: #0E161E;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 24px;
}

.service-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.service-item .stream-marker {
  flex: 0 0 52px;
}

.service-item h3 {
  margin-bottom: 8px;
}

.service-item p {
  font-size: 16px;
}

.process-overview {
  background-color: #0E161E;
  padding: 72px 0;
  border-bottom: 1px solid #1C2B35;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.process-step {
  background-color: #16242E;
  border-top: 3px solid #5AC8D8;
  border-radius: 8px;
  padding: 26px;
}

.process-step .step-num {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: #5AC8D8;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 15px;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background-color: #16242E;
  border-top: 3px solid #5AC8D8;
  border-radius: 8px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #EAF4F8;
  margin-bottom: 6px;
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #2C414E;
  border-radius: 6px;
  background-color: #0E161E;
  color: #EAF4F8;
  font-size: 16px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5AC8D8;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: #5AC8D8;
  min-height: 24px;
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background-color: #16242E;
  border-left: 3px solid #5AC8D8;
  border-radius: 8px;
  padding: 22px 24px;
}

.info-card h3 {
  color: #C9EDF2;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 15px;
}

.mini-faq {
  background-color: #0E161E;
  padding: 72px 0;
}

.mini-faq .faq-item {
  background-color: #16242E;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade-up {
  opacity: 1;
  transform: none;
}

html.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .statement-inner {
    flex-direction: column;
    gap: 24px;
  }

  .channel-grid-wrap {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .aurora-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: #0A1319;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid #1C2B35;
  }

  .aurora-nav.open .nav-cta {
    display: inline-block;
    margin: 8px 24px 24px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 27px;
  }

  .iceberg-scene {
    width: 100%;
    max-width: 340px;
    height: 320px;
    transform: scale(0.8);
  }

  .playback-row {
    flex-direction: column;
    gap: 28px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-inner {
    padding: 32px 24px;
  }
}
