/* ============================================================
   iomi — main.css  |  Design System v1.0
   ============================================================ */

/* ─── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --navy:        #0F222D;
  --navy-dark:   #060E1A;
  --navy-mid:    #1A2F3D;
  --teal:        #3AB5B5;
  --teal-dim:    rgba(58,181,181,0.10);
  --teal-glow:   rgba(58,181,181,0.20);
  --warm-white:  #FAF8F7;
  --white:       #FFFFFF;
  --text-dark:   #01171F;
  --text-body:   #4A5568;
  --text-muted:  rgba(255,255,255,0.55);
  --border:      rgba(255,255,255,0.07);
  --border-light:#E8EDEF;
  --nav-h:       72px;
  --section-pad: 100px;
  --container:   1280px;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: 'Inter', sans-serif; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  vertical-align: middle;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
}

h1 {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

h3 {
  font-size: 28px;
  line-height: 1.2;
}

.label-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-label span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
}

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── NAVIGATION ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(15,34,45,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner,
.site-nav .nav-inner {
  display: grid;
  grid-template-columns: 160px auto 160px;
  align-items: center;
  width: 100%;
  gap: 0;
}

.nav-logo {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.nav-logo:hover { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-contact {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 22px;
  transition: background 0.15s ease, border-color 0.15s ease;
  justify-self: end;
  white-space: nowrap;
}

.nav-contact:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--navy-dark);
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2da0a0;
  transform: translateY(-1px);
  color: var(--navy-dark);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-navy:hover {
  background: var(--teal);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.25s cubic-bezier(0.25,0.88,0.54,0.98),
              box-shadow 0.4s ease,
              border-color 0.15s ease;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 20px 60px rgba(58,181,181,0.12);
  transform: translateY(-4px);
}

.sector-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--teal-dim);
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 4px 0 0 0;
  margin-bottom: 16px;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1),
              transform 0.6s cubic-bezier(0.23,1,0.32,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ─── GRID OVERLAY ──────────────────────────────────────────── */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,181,181,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,181,181,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
  pointer-events: none;
}

/* ─── ICON BOX ──────────────────────────────────────────────── */
.icon-box {
  width: 48px;
  height: 48px;
  background: var(--teal-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.icon-box .material-symbols-outlined { font-size: 22px; }

/* ─── SLIDER ────────────────────────────────────────────────── */
.slider-viewport {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.slider-viewport:active { cursor: grabbing; }

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25,0.88,0.54,0.98);
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slider-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.dot-indicator {
  width: 24px;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.dot-indicator.active {
  background: var(--teal);
}

/* ─── PROGRESS BAR ──────────────────────────────────────────── */
.bar-track {
  width: 60px;
  height: 3px;
  background: var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 10px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.23,1,0.32,1);
}

/* ─── TICKER ────────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--teal);
  padding: 18px 0;
}

.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-dark);
  padding: 0 32px;
  flex-shrink: 0;
}

.ticker-sep {
  color: rgba(6,14,26,0.3);
  padding: 0 8px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.6fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-logo {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--teal);
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.badge-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(58,181,181,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.badge-icon .material-symbols-outlined { font-size: 14px; }

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.social-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--teal); }

.footer-contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(58,181,181,0.15);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-row .material-symbols-outlined {
  color: var(--teal);
  font-size: 18px;
}

.footer-contact-row-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.footer-contact-row-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}

.footer-newsletter-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
}

.footer-email-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
  outline: none;
}

.footer-email-input::placeholder { color: rgba(255,255,255,0.3); }
.footer-email-input:focus { border-color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

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

.footer-legal a {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s ease;
}

.footer-legal a:hover { color: var(--teal); }

/* ─── FULL-WIDTH BTN IN FOOTER ──────────────────────────────── */
.btn-teal-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--teal);
  color: var(--navy-dark);
  border-radius: 8px;
  padding: 11px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.15s ease;
}

.btn-teal-full:hover { background: #2da0a0; }

/* ─── UTILS ─────────────────────────────────────────────────── */
.text-teal  { color: var(--teal) !important; }
.text-navy  { color: var(--navy) !important; }
.text-white { color: var(--white) !important; }
.text-muted-dark { color: rgba(255,255,255,0.55); }
.font-archivo { font-family: 'Archivo Narrow', sans-serif; font-weight: 700; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 24px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  h1 { letter-spacing: -1px; }
  h2 { letter-spacing: -1px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── XP BAR (PM-Game) ──────────────────────────────────────── */
.xp-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 6px;
}

.xp-bar-fill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width 1s cubic-bezier(0.23,1,0.32,1);
}

/* ─── PULSE DOT ─────────────────────────────────────────────── */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── FILTER PILLS (AppsGallery) ────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy-dark);
}

/* ─── APP CARD (AppsGallery) ────────────────────────────────── */
.app-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.25,0.88,0.54,0.98),
              box-shadow 0.4s ease,
              border-color 0.15s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.5s cubic-bezier(0.23,1,0.32,1) forwards;
}

.app-card:hover {
  border-color: var(--teal);
  box-shadow: 0 20px 60px rgba(58,181,181,0.15);
  transform: translateY(-4px);
}

@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

.app-card:nth-child(1) { animation-delay: 0.05s; }
.app-card:nth-child(2) { animation-delay: 0.10s; }
.app-card:nth-child(3) { animation-delay: 0.15s; }
.app-card:nth-child(4) { animation-delay: 0.20s; }
.app-card:nth-child(5) { animation-delay: 0.25s; }
.app-card:nth-child(6) { animation-delay: 0.30s; }
.app-card:nth-child(7) { animation-delay: 0.35s; }
.app-card:nth-child(8) { animation-delay: 0.40s; }

.app-icon-area {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-dim), rgba(58,181,181,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-icon-area .material-symbols-outlined {
  font-size: 64px;
  color: var(--teal);
  opacity: 0.8;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}

.status-live     { background: rgba(58,181,181,0.15); color: var(--teal); }
.status-dev      { background: rgba(245,158,11,0.15); color: #F59E0B; }
.status-beta     { background: rgba(59,130,246,0.15); color: #3B82F6; }

.app-card-body { padding: 20px 20px 24px; }

.app-name {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
  margin-top: 8px;
}

.app-category-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-body);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.app-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.app-link:hover { gap: 8px; color: var(--teal); }

.app-version {
  font-size: 10px;
  font-weight: 600;
  color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.04);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ─── HIDDEN (filter) ───────────────────────────────────────── */
.app-card.hidden {
  display: none;
}
