/* ============================================
   ON Technologies — Stylesheet
   ============================================ */

:root {
  --bg:          #080c14;
  --bg-2:        #0d1220;
  --bg-3:        #111827;
  --surface:     #161d2e;
  --border:      rgba(255,255,255,0.07);
  --teal:        #00D4B4;
  --teal-dim:    rgba(0,212,180,0.12);
  --teal-glow:   rgba(0,212,180,0.25);
  --purple:      #7c6dff;
  --purple-dim:  rgba(124,109,255,0.12);
  --white:       #ffffff;
  --grey-1:      rgba(255,255,255,0.75);
  --grey-2:      rgba(255,255,255,0.45);
  --grey-3:      rgba(255,255,255,0.2);
  --font:        'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--grey-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--grey-2);
  max-width: 560px;
  margin-bottom: 56px;
  font-weight: 300;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  font-weight: 300;
  color: var(--grey-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-link-quiet {
  font-size: 12px !important;
  color: var(--grey-3) !important;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--grey-2);
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(8,12,20,0.98);
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
  gap: 20px;
}

.nav-mobile a {
  font-size: 15px;
  color: var(--grey-2);
  text-decoration: none;
}

.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero-accent {
  color: var(--teal);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--grey-2);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #080c14;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--grey-3), transparent);
  animation: scrollPulse 2s infinite;
}

/* ---- MISSION ---- */
.mission { background: var(--bg); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 72px;
  align-items: start;
}

.mission-left h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

.mission-left h2 em {
  font-style: italic;
  color: var(--teal);
}

.mission-right p {
  font-size: 16px;
  color: var(--grey-2);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.8;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pillar {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}

.pillar:hover { background: rgba(22,29,46,0.9); }

.pillar-icon {
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14px;
  color: var(--grey-2);
  font-weight: 300;
  line-height: 1.7;
}

/* ---- APPS ---- */
.apps { background: var(--bg-2); }

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  transition: border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.app-card--featured {
  border-color: rgba(124,109,255,0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(124,109,255,0.06) 100%);
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.app-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.app-badge--new {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(124,109,255,0.25);
}

.app-badge--soon {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(0,212,180,0.25);
}

.app-platform {
  font-size: 11px;
  color: var(--grey-3);
}

.app-card-icon {
  margin-bottom: 20px;
}

.app-name {
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.app-desc {
  font-size: 14px;
  color: var(--grey-2);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 24px;
}

.app-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.app-tags span {
  font-size: 11px;
  color: var(--grey-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--grey-3);
}

.app-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s infinite;
}

.app-status-dot--soon {
  background: var(--teal);
}

.app-status--soon { color: var(--teal); }

/* ---- APPROACH ---- */
.approach { background: var(--bg); }

.approach-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.approach-text p {
  font-size: 15px;
  color: var(--grey-2);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}

.approach-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
}

.stat-num {
  font-size: 52px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--grey-2);
  font-weight: 300;
}

/* ---- TEAM ---- */
.team { background: var(--bg-2); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.team-card:hover { border-color: rgba(255,255,255,0.14); }

.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dim), var(--purple-dim));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-2);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.team-info h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-info p {
  font-size: 14px;
  color: var(--grey-2);
  font-weight: 300;
  line-height: 1.7;
}

/* ---- CONTACT ---- */
.contact { background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 15px;
  color: var(--grey-2);
  font-weight: 300;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.contact-item {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
}

.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: rgba(22,29,46,0.9); }

.contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  line-height: 1.5;
}

a.contact-value:hover { color: var(--teal); }

.contact-subtle {
  font-size: 12px;
  color: var(--grey-3);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-logo span {
  font-weight: 300;
  color: var(--grey-3);
}

.footer-tagline {
  font-size: 13px;
  color: var(--grey-3);
  font-weight: 300;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 12px;
  color: var(--grey-3);
  font-weight: 300;
}

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

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

.footer-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--grey-2);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-headline { letter-spacing: -0.02em; }

  .mission-grid,
  .approach-inner,
  .contact-inner,
  .team-grid,
  .app-cards { grid-template-columns: 1fr; gap: 40px; }

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

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }

  .approach-stats { flex-direction: row; overflow-x: auto; }
  .stat { min-width: 160px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 38px; }
  .stat-num { font-size: 40px; }
  .team-card { flex-direction: column; }
}
