/* ═══════════════════════════════════════════════
   TECHNICAL CREATIONS LLC — GLOBAL DESIGN SYSTEM
   Warm Greige + Navy Accent Redesign
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg: #ad9e8d;
  --bg-solid: #ad9e8d;
  --bg-dark: #1D3557;
  --bg-dark-alt: #254B6E;
  --surface: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.28);
  --border-h: rgba(255, 255, 255, 0.35);

  --navy: #1D3557;
  --accent-blue: #457B9D;
  --gold-star: #F4A400;

  --text: #1A1A18;
  --text-dim: #6B6560;
  --text-dimmer: #9A948E;

  --radius: 16px;
  --radius-sm: 4px;
  --radius-lg: 20px;

  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.07);
  --shadow-glass-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.22s ease;
  --font-body: 'Space Grotesk', sans-serif;
  --font-head: 'Syne', sans-serif;

  /* noise texture overlay */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: var(--noise);
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 3px;
}

/* ── ACCENT TEXT (replaces grad-text) ──────── */
.grad-text {
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* ── GLASSMORPHISM ──────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass-hover);
}

/* glass on dark backgrounds */
.glass-card-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #254B6E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 53, 87, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-ghost:hover {
  background: rgba(29, 53, 87, 0.06);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── PHOSPHOR ICON INLINE ──────────────────── */
.ph-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ph-icon svg {
  fill: currentColor;
}

/* ── NAVIGATION ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(232, 227, 221, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(232, 227, 221, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img:hover {
  filter: brightness(0.9);
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.nav-link.cta-link {
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-link.cta-link::after {
  display: none;
}

.nav-link.cta-link:hover {
  background: #254B6E;
  box-shadow: 0 4px 16px rgba(29, 53, 87, 0.25);
  transform: translateY(-1px);
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── LAYOUT ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
}

/* ── SECTION HEADER ─────────────────────────── */
.section-header {
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.75;
}

/* ── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-hero .section-tag {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: #fff;
}

.page-hero h1 .grad-text {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 540px;
  line-height: 1.75;
}

/* ghost gear outlines on dark hero */
.page-hero .bg-gears .gear-icon {
  opacity: 0.04;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ── CTA BANNER ─────────────────────────────── */
.cta-banner {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-dark-alt) 100%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.cta-gear-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLL REVEAL SYSTEM ─────────────────── */
.reveal {
  opacity: 0.01;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

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

@keyframes fadePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gearSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ── CENTER CTA ─────────────────────────────── */
.center-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── BACKGROUND GEARS SYSTEM ───────────────── */
.bg-gears {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
}

.gear-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gear-col.left {
  align-items: flex-start;
}

.gear-col.right {
  align-items: flex-end;
}

.gear-icon {
  width: 80px;
  height: 80px;
  opacity: 0.06;
}

.gear-icon.scroll-gear {
  will-change: transform;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(232, 227, 221, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

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

  .hamburger {
    display: flex;
  }

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

  .container {
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

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

/* ══════════════════════
   INTRO CONTAINER
   ══════════════════════ */
#intro-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
  cursor: pointer;
}

#intro-instruction {
  position: absolute;
  bottom: 12%;
  color: #f5c518;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  pointer-events: none;
  animation: none;
  z-index: 1000000;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}