@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* —— INDUSTRIAL LUXURY PROTOCOL —— */
:root {
  /* Colors - Titanium Deep Palette */
  --bg-dark: #080809;
  --bg-titanium: #0D0D0E;
  --bg-gunmetal: #1C1C1E;
  --bg-light: #FBFBFC;
  
  --text-dark: #FFFFFF;
  --text-light: #121213;
  --text-gray: #8E8E93;
  --text-dim: #636366;
  
  --accent-blue: #007AFF;
  --accent-cyan: #5AC8FA;
  --accent-purple: #AF52DE;
  
  --ui-border: rgba(255, 255, 255, 0.08);
  --ui-glass: rgba(13, 13, 14, 0.7);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-text: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Easings */
  --ease-cinematic: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.5, 1.5, 0.5, 1);
}

/* Noise Texture Animation */
.noise-overlay {
  position: fixed;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  width: 200%; height: 200%;
  background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat;
  background-repeat: repeat;
  animation: noise 0.2s infinite;
  opacity: .05;
  visibility: visible;
  z-index: 9999;
  pointer-events: none;
}

@keyframes noise {
  0% { transform: translate(0,0) }
  10% { transform: translate(-5%,-5%) }
  20% { transform: translate(-10%,5%) }
  30% { transform: translate(5%,-10%) }
  40% { transform: translate(-5%,15%) }
  50% { transform: translate(-10%,5%) }
  60% { transform: translate(15%,0) }
  70% { transform: translate(0,10%) }
  80% { transform: translate(-15%,0) }
  90% { transform: translate(10%,5%) }
  100% { transform: translate(5%,0) }
}

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

body, html {
  width: 100%;
  font-family: var(--font-text);
  background-color: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.022em;
}

/* —— TYPOGRAPHY SCALES (Optical Sizing Emulation) —— */
h1, h2, h3, h4 {
  font-family: var(--font-display);
}

.headline-hero {
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.headline-section {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.body-large {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-gray);
}

.body-standard {
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Industrial Telemetry Mono scale */
.telemetry-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-meta::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
}

.telemetry-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--ui-border);
  padding-top: 1.5rem;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* —— BINARY SECTIONS —— */
.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.section-pad {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* —— NAVIGATION —— */
.glass-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 8, 9, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}
  letter-spacing: 0.02em;
  color: #fff;
  border-bottom: 1px solid var(--ui-border);
  transition: all 0.4s var(--ease-cinematic);
}

.site-nav-links {
  display: flex;
  gap: 3rem;
  text-transform: uppercase;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.3s var(--ease-cinematic);
}

.site-nav a:hover { 
  opacity: 1;
  color: var(--accent-blue);
}

.btn-pill {
  display: inline-block;
  background-color: var(--accent-blue);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 980px;
  font-size: 17px;
  font-family: var(--font-text);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s var(--ease-cinematic);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 122, 255, 0.2);
}

.btn-pill:hover { 
  background-color: #0082FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.4);
}
.btn-pill:active { transform: scale(0.96); }

/* —— APPLE TEXT LINK CTA —— */
.apple-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}

.apple-text-link::after {
  content: " \203A";
  font-size: 1.3rem;
  margin-left: 0.3rem;
  line-height: 1;
  transition: transform 0.2s var(--ease-spring);
}

.apple-text-link:hover {
  text-decoration: underline;
}
.apple-text-link:hover::after {
  transform: translateX(3px);
}

/* —— HERO —— */
.hero-block {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 48px;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, var(--bg-dark) 70%);
}

.hero-text-content {
  z-index: 10;
  text-align: center;
  margin-top: -10vh;
}

.hero-image-wrap {
  position: absolute;
  bottom: -10vh;
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transform-origin: bottom center;
  filter: drop-shadow(0 20px 80px rgba(0,0,0,0.8));
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

.hero-image-wrap img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: contain;
}

/* —— GSAP PINNED MECHANISM GALLERY —— */
.mechanism-gallery {
  position: relative;
  width: 100%;
  background: var(--bg-light);
}

.pin-container {
  display: flex;
  width: 100%;
  background: var(--bg-titanium);
}

/* Left side text scrolling */
.scroll-text-track {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: 0 8%;
  z-index: 2;
  border-right: 1px solid var(--ui-border);
}

.scrolling-card {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.scrolling-card .body-large { 
  margin-top: 1rem; 
  color: var(--text-gray-dark); 
  max-width: 480px;
}

/* —— FOOTER BLOCK —— */
.footer-block {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* —— MODAL OVERLAY —— */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 650px;
  max-height: 80vh;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  overflow-y: auto;
  position: relative;
  border-radius: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 1;
}

.modal-body h3 {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  color: var(--accent-blue);
}

.modal-body p {
  color: #888;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .modal-content { padding: 2rem; }
}

/* Right side image sticky */
.sticky-image-container {
  width: 50%;
  height: 100vh;
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.sticky-image-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mechanism-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  max-width: 700px;
  max-height: 85vh;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.5));
  transform: translate(-50%, -50%) scale(0.8);
}

/* Scanner Beam Effect for Telemetry */
.telemetry-data-grid {
  position: relative;
  overflow: hidden;
}

.telemetry-data-grid::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation: scan 4s infinite linear;
}

@keyframes scan {
  0% { transform: translateY(0); top: 0; }
  100% { transform: translateY(100px); top: 100%; }
}

/* —— MOBILE INLINE IMAGES —— */
.mobile-mechanism-img {
  display: none; /* Hidden on desktop */
  width: 100%;
  max-width: 400px;
  margin: 3rem auto 0;
  object-fit: contain;
}

/* Mobile Fallback for Slider */
@media (max-width: 992px) {
  .pin-container { flex-direction: column; }
  .scroll-text-track { width: 100%; padding: 0 8%; }
  
  .sticky-image-container { display: none; }
  .mobile-mechanism-img { display: block; }

  .scrolling-card {
    height: auto;
    min-height: auto;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .telemetry-data-grid { max-width: 300px; }
}

/* Fix iOS offsets for nav anchors */
html { scroll-padding-top: 80px; }

/* —— BENTO GRID —— */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 5rem;
}

.bento-box {
  background: var(--bg-gunmetal);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 550px;
  border: 1px solid var(--ui-border);
  transition: all 0.6s var(--ease-cinematic);
}

.bento-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.bento-box img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(100%);
  transition: all 1.2s var(--ease-cinematic);
}

.bento-box:hover img {
  transform: scale(1.1);
  opacity: 0.5;
  filter: grayscale(0%);
}

.bento-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem;
  background: linear-gradient(0deg, rgba(8,8,9,1) 0%, rgba(8,8,9,0.5) 50%, rgba(8,8,9,0) 100%);
  backdrop-filter: blur(5px);
}

.bento-content h3 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: #fff;
}

/* —— FULL WIDTH SHOWCASE —— */
.showcase-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  color: #000;
  padding: 10rem 2rem;
}

.showcase-block .telemetry-meta {
  color: #888;
}

.showcase-block h2 {
  color: #000;
}

.showcase-block p {
  color: #333;
}

.showcase-block img {
  width: 100%;
  max-width: 900px;
  margin-top: 3rem;
  object-fit: contain;
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 15rem 2rem 8rem 2rem;
  background: radial-gradient(circle at top, #111 0%, var(--bg-dark) 100%);
}

.footer-cta .headline-section {
  margin-bottom: 2rem;
}
