/* ============================================================
   Skynet IT — 3D Homepage
   Self-contained stylesheet: design-system tokens + keyframes
   + page component styles. Ported from the Claude Design
   "Skynet 3D Homepage.dc.html" prototype.
   ============================================================ */

/* ---------- Colors (light theme, logo-derived) ---------- */
:root {
  --bg-deep: #f2f7fc;
  --bg-primary: #ffffff;
  --bg-surface: #f6f9fc;
  --bg-surface-light: #e9f0f7;
  --bg-card: #ffffff;
  --bg-footer: #0d2947;

  --glow-blue: #1f5aa8;
  --glow-green: #6ba32c;
  --glow-cyan: #2f86c9;
  --glow-violet: #f47b20;

  --btn-blue: #1f5aa8;
  --btn-green: #6ba32c;
  --btn-cyan: #2f86c9;

  --text-heading: #14284a;
  --text-primary: #2d3f57;
  --text-secondary: #5a6b82;
  --text-muted: #8493a6;

  --border: rgba(20, 40, 74, 0.10);
  --border-glow: rgba(31, 90, 168, 0.28);

  --logo-blue: #2156a5;
  --logo-green: #8cb83c;
  --logo-red: #e8392b;
  --logo-orange: #f47b20;
  --logo-yellow: #f9b414;
  --logo-gray: #6d6e71;

  --grad-eyebrow: linear-gradient(135deg, var(--glow-blue), var(--glow-green));
  --grad-btn-primary: linear-gradient(135deg, #1f5aa8, #2f86c9, #6ba32c, #1f5aa8);
  --grad-btn-green: linear-gradient(135deg, #6ba32c, #2f86c9, #1f5aa8, #6ba32c);
  --grad-stat: linear-gradient(90deg, #6ba32c, #1f5aa8, #f47b20, #6ba32c, #1f5aa8);

  --selection-bg: rgba(31, 90, 168, 0.18);

  /* ---------- Typography ---------- */
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero: clamp(2.8rem, 5.5vw, 4.5rem);
  --fs-section: clamp(2rem, 4vw, 3rem);
  --fs-h2-sm: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-card: 1.2rem;
  --fs-card-sm: 1.1rem;
  --fs-body-lg: 1.05rem;
  --fs-body: 1rem;
  --fs-small: 0.92rem;
  --fs-caption: 0.85rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.08;
  --lh-heading: 1.15;
  --lh-body: 1.6;
  --lh-relaxed: 1.7;

  --ls-hero: -0.04em;
  --ls-heading: -0.03em;
  --ls-tight: -0.01em;
  --ls-eyebrow: 0.15em;

  /* ---------- Spacing & radii ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --container: 1200px;
  --section-padding: clamp(80px, 10vw, 140px);
  --side-padding: clamp(20px, 5vw, 80px);
  --breakpoint: 900px;

  /* ---------- Effects ---------- */
  --shadow-glow-sm: 0 1px 3px rgba(20, 40, 74, 0.06), 0 2px 8px rgba(20, 40, 74, 0.05);
  --shadow-glow-md: 0 4px 12px rgba(20, 40, 74, 0.08), 0 12px 28px rgba(20, 40, 74, 0.07);
  --shadow-glow-lg: 0 8px 20px rgba(20, 40, 74, 0.10), 0 20px 44px rgba(20, 40, 74, 0.10);
  --shadow-glow-xl: 0 12px 28px rgba(20, 40, 74, 0.12), 0 28px 64px rgba(20, 40, 74, 0.12);
  --shadow-btn-blue: 0 6px 16px rgba(31, 90, 168, 0.28);
  --shadow-btn-green: 0 6px 16px rgba(107, 163, 44, 0.28);
  --shadow-nav: 0 4px 24px rgba(20, 40, 74, 0.08);
  --shadow-product: drop-shadow(0 18px 36px rgba(20, 40, 74, 0.16));
  --blur-nav: 20px;
  --blur-badge: 12px;
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-default: ease;
}

::selection { background: var(--selection-bg); color: var(--text-heading); }

/* ---------- Base reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-deep); color: var(--text-primary); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

/* ---------- Keyframes ---------- */
@keyframes glow-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes gradient-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes meteor-fall {
  0% { transform: rotate(215deg) translateX(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(215deg) translateX(-780px); opacity: 0; }
}

/* ---------- Partner grid cells ---------- */
.partner-cell { transition: background .3s, transform .3s, border-color .3s; border: 1px solid transparent; }
.partner-cell img { transition: transform .3s; }
.partner-cell:hover { background: var(--bg-surface); border-color: var(--border); transform: translateY(-3px); }
.partner-cell:hover img { transform: scale(1.05); }

/* ---------- Brand accordion strip ---------- */
.brand-strip { display: flex; gap: 0; height: clamp(380px, 44vw, 520px); overflow: hidden; }
.brand-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; text-decoration: none; cursor: pointer; transition: flex-grow .6s cubic-bezier(.22,1,.36,1); }
.brand-strip:hover .brand-panel { flex-grow: .62; }
.brand-panel:hover { flex-grow: 4; }
.brand-vert { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease; }
.brand-vert span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand-panel:hover .brand-vert { opacity: 0; }
.brand-expand { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 36px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity .45s ease .08s, transform .55s cubic-bezier(.22,1,.36,1) .08s; }
.brand-panel:hover .brand-expand { opacity: 1; transform: none; }
.brand-expand .b-name { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.5rem, 2.1vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.05; margin: 0; white-space: normal; overflow-wrap: break-word; }
.brand-expand .b-tag { font-size: 0.98rem; line-height: 1.5; margin: 0; opacity: .9; }
.brand-expand .b-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

/* ---------- Meteors (CTA) ---------- */
.meteor { position: absolute; top: -5%; width: 2px; height: 2px; border-radius: 9999px; background: #1f5aa8; box-shadow: 0 0 0 1px rgba(31,90,168,0.15); transform: rotate(215deg); animation: meteor-fall linear infinite; }
.meteor::before { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 80px; height: 1px; background: linear-gradient(90deg, #1f5aa8, transparent); }
.meteor.g { background: #6ba32c; box-shadow: 0 0 0 1px rgba(107,163,44,0.15); }
.meteor.g::before { background: linear-gradient(90deg, #6ba32c, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav .nav-links { display: none !important; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-grid > div { grid-column: 1 !important; }
  .services-grid, .products-grid { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .brand-strip { flex-direction: column; height: auto; }
  .brand-panel { min-height: 120px; }
}
