/* Sky High Enterprises — Royal static site */

:root {
  --navy: #0f172a;
  --royal: #1e3a8a;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-light: #fde68a;
  --white: #ffffff;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-body: #334155;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo-section {
  background: transparent;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-bottom: none;
  position: relative;
  z-index: 3;
}

.crest-svg {
  width: 88px;
  height: auto;
  margin: 0 auto;
}

.crest-canvas {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.scene-hero-wrap {
  position: relative;
  overflow: hidden;
  background: #0a1628;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  min-height: 520px;
}

@media (min-width: 768px) {
  .scene-hero-wrap { min-height: 620px; }
}

.himalaya-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

body.webgl-ready .himalaya-fallback {
  opacity: 0;
  visibility: hidden;
}

.himalaya-svg {
  display: none;
}

.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

.section-3d {
  position: relative;
  overflow: hidden;
}

.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.section-content {
  position: relative;
  z-index: 1;
}

.perspective-grid {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.wordmark {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.wordmark-sky {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
}

.wordmark-line {
  display: block;
  width: 4rem;
  height: 2px;
  background: var(--gold);
}

.wordmark-ent {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--gold);
}

.logo-tagline {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hero {
  background: transparent;
  padding: 2rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.hero-sub {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn-3d {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.btn-full { width: 100%; }

.section { padding: 3.5rem 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--royal);
  text-align: center;
  margin-bottom: 2rem;
}

.section-title-light { color: var(--white); }

.products { background: #f1f5f9; }

.tilt-3d {
  transform-style: preserve-3d;
  transition: box-shadow 0.2s ease;
}

.tilt-inner {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  height: 100%;
}

.product-card {
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
}

.product-card .tilt-inner {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--accent, var(--royal));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.product-card:hover .tilt-inner {
  border-color: var(--accent, var(--royal));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.product-blue { --accent: #2563eb; }
.product-green { --accent: #16a34a; }
.product-purple { --accent: #7c3aed; }
.product-gold { --accent: #f59e0b; }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.product-icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
}

.product-icon svg { width: 100%; height: 100%; }

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.tag-live { background: #dcfce7; color: #166534; }
.tag-active { background: #ede9fe; color: #5b21b6; }
.tag-soon { background: #fef3c7; color: #92400e; }

.product-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.product-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

.product-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.values { background: var(--navy); }

.value-card {
  text-align: center;
  padding: 0;
}

.value-inner {
  padding: 1.5rem;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

.value-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about { background: var(--white); }

.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .about-text { grid-column: 1; }
  .about-visual { grid-column: 2; grid-row: 1 / 3; }
  .stats-3d { grid-column: 1; }
}

.about-text { text-align: center; }

@media (min-width: 768px) {
  .about-text { text-align: left; }
}

.about-visual {
  text-align: center;
}

.about-canvas {
  width: 100%;
  max-width: 360px;
  height: 280px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  background: linear-gradient(145deg, #0f172a, #1e3a8a);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.about-visual-caption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-inner { text-align: center; max-width: 640px; margin: 0 auto; }

.about-founder,
.about-location,
.about-desc {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.about-founder strong,
.about-location strong { color: var(--royal); }

.stats-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.stats-3d {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.stat-cube {
  position: relative;
  width: 140px;
  height: 56px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  cursor: default;
  perspective: 600px;
}

.stat-cube.is-flipped {
  transform: rotateX(180deg);
}

.stat-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 2px solid var(--gold);
  border-radius: 8px;
  backface-visibility: hidden;
  text-align: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.stat-back {
  transform: rotateX(180deg);
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: var(--gold);
  font-size: 0.65rem;
}

.stats-row li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.contact { background: var(--royal); color: var(--text); }

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.contact-info .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.contact-info p { margin-bottom: 1.25rem; font-size: 0.95rem; }

.contact-info a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.contact-form-inner {
  background: rgba(15, 23, 42, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid #334155;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  text-align: center;
}

.footer {
  background: var(--navy);
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo svg { width: 40px; height: auto; }

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy,
.footer-gst {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 3D scroll reveal */
.reveal-3d {
  opacity: 0;
  transform: perspective(900px) translateY(28px) rotateX(8deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-3d.is-visible {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0);
}

.values-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-card { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-3d {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tilt-inner { transition: none !important; }
  .stat-cube { transition: none; }
}
