/* =====================================================
   devtemdesign.css  —  v0.0.2
   Mobile nav + declarable footer additions
   ===================================================== */

/* ----- RESET + GLOBAL BASE ----- */
* {
  margin: 0; padding: 0; box-sizing: border-box; 
}
html { 
  scroll-behavior: smooth; 
}
body {
  background: var(--bg-deep, #060812);
  color: var(--text, #f0f4ff);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.3s;
  min-height: 100vh;
}

/* ----- CUSTOM CURSOR & RIPPLE LAYER ----- */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.2s, background 0.2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.ripple-container {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9985;
  overflow: hidden;
}

/* ----- AMBIENT ORB BACKGROUNDS ----- */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25; animation: drift 16s ease-in-out infinite; }
.orb1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--accent), transparent); top: -15%; left: -15%; }
.orb2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent2), transparent); top: 40%; right: -10%; animation-delay: -4s; }
.orb3 { width: 450px; height: 450px; background: radial-gradient(circle, var(--accent3), transparent); bottom: -5%; left: 20%; animation-delay: -8s; }
.orb4 { width: 350px; height: 350px; background: radial-gradient(circle, var(--accent), transparent); top: 15%; left: 45%; animation-delay: -2s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.06); }
  66%       { transform: translate(-25px, 35px) scale(0.94); }
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.03; mix-blend-mode: overlay;
}

/* =====================================================
   NAVIGATION — glass bar + hamburger (mobile)
   ===================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 8, 18, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  animation: slideDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Logo */
.nav-logo {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: 0.08em; color: var(--accent);
  font-family: monospace;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}

/* Desktop links */
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover            { color: white; }
.nav-links a:hover::after     { transform: scaleX(1); }

/* CTA button */
.nav-cta {
  padding: 8px 22px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  border-radius: 40px;
  font-size: 0.78rem;
  cursor: none;
  transition: 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(122, 244, 255, 0.2);
}

/* ---- HAMBURGER BUTTON ---- */
.nav-hamburger {
  display: none;               /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animated X when open */
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- MOBILE OVERRIDES ---- */
@media (max-width: 780px) {
  nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    row-gap: 0;
  }

  /* Show hamburger, hide CTA in header row */
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none; }

  /* Links hidden by default, slide in when open */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
    padding: 0 0;
    order: 3;  /* always below logo + hamburger row */
    border-top: 0px solid var(--glass-border);
  }

  nav.nav-open .nav-links {
    max-height: 480px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--glass-border);
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }

  /* Show a styled CTA at bottom of mobile menu */
  nav.nav-open::after {
    content: none; /* CTA is injected as a real <a> below if needed */
  }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
}
.hero-tag {
  font-family: monospace; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  display: inline-block;
  margin-bottom: 32px;
  animation: fadeUp 0.7s 0.2s both;
}
.hero-title {
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.hero-title .word { display: inline-block; animation: wordReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wordReveal {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.gradient-word {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 580px; line-height: 1.7;
  margin: 0 auto 44px;
  animation: fadeUp 0.7s 0.5s both;
}
.hero-buttons {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; animation: fadeUp 0.7s 0.7s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.btn-primary {
  padding: 14px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--accent);
  backdrop-filter: blur(12px);
  color: var(--text); border-radius: 60px;
  font-weight: 500; transition: 0.25s; cursor: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(122, 244, 255, 0.2);
  background: rgba(255,255,255,0.08);
}
.btn-ghost {
  padding: 14px 36px;
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--muted); border-radius: 60px; transition: 0.25s; cursor: none;
}
.btn-ghost:hover { color: white; border-color: rgba(255,255,255,0.4); }
.hero-inline-brands {
  margin-top: 58px; max-width: 860px; width: 100%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); border-radius: 32px;
  padding: 28px 24px; animation: fadeUp 0.9s 0.9s both;
}

/* ----- MARQUEE ----- */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden; background: rgba(10,10,20,0.3);
}
.marquee-track {
  display: flex; gap: 72px;
  animation: marqueeX 28s linear infinite;
  white-space: nowrap; width: max-content;
}
.marquee-item {
  font-family: monospace; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.marquee-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
@keyframes marqueeX {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- FEATURES GRID ----- */
.features { padding: 110px 48px; position: relative; z-index: 2; }
.section-label {
  font-family: monospace; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 34px; height: 1px; background: var(--accent); }
.section-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 60px; max-width: 680px;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); border-radius: 28px;
  padding: 32px 28px; transition: transform 0.35s, border-color 0.25s; cursor: none;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 36px rgba(0,0,0,0.25); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 18px; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); background: rgba(255,255,240,0.02); color: var(--accent);
}
.feature-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.feature-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ----- PANELS SECTION ----- */
.panels-section { padding: 30px 48px 110px; z-index: 2; position: relative; }
.panels-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.panel {
  border-radius: 32px; border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); padding: 44px 32px;
  background: rgba(255,255,255,0.01); transition: 0.3s;
}
.panel:hover { transform: scale(1.02); border-color: var(--accent2); }
.panel-num   { font-family: monospace; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 24px; }
.panel-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }

/* =====================================================
   FOOTER — declarable / professional layout
   =====================================================
   Supports:
     config.footer.tagline   — tagline below logo
     config.footer.columns   — [{heading, links:[{label,href}]}]
     config.footer.social    — [{icon:"fab fa-github", href, label}]
     config.footer.legal     — [{label, href}]
     config.footer.copy      — copyright string
   ===================================================== */
footer {
  position: relative; z-index: 2;
  background: rgba(4, 6, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
}

/* Top body row: brand col + link columns */
.footer-body {
  display: flex;
  gap: 64px;
  padding: 64px 48px 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Brand / logo column */
.footer-brand-col {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 180px; max-width: 260px;
  flex: 1 1 180px;
}
.footer-logo {
  font-family: monospace; font-weight: 800;
  font-size: 1rem; color: var(--accent);
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 10px;
}
.footer-tagline {
  font-size: 0.8rem; color: var(--muted);
  line-height: 1.6; max-width: 220px;
}
.footer-socials {
  display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap;
}
.footer-social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,255,255,0.04);
}

/* Link columns container */
.footer-cols {
  display: flex; gap: 48px; flex-wrap: wrap; flex: 3 1 400px;
  justify-content: flex-end;
}
.footer-col { min-width: 120px; }
.footer-col-heading {
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-col-links {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.footer-link {
  font-size: 0.82rem; color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-link:hover {
  color: var(--text);
  padding-left: 4px;
}
.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Bottom strip: copyright + legal */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 48px 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-copy {
  font-size: 0.72rem; color: var(--muted);
  font-family: monospace; letter-spacing: 0.05em;
}
.footer-legal {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-legal-link {
  font-size: 0.72rem; color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: monospace; letter-spacing: 0.04em;
}
.footer-legal-link:hover { color: var(--text); }
.footer-legal-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- REVEAL ON SCROLL ----- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1), transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 780px) {
  .hero   { padding: 100px 20px 60px; }
  .features { padding: 80px 20px; }
  .panels-section { padding: 20px 20px 80px; }

  /* Footer stacks on mobile */
  .footer-body   { padding: 48px 20px 36px; gap: 40px; flex-direction: column; }
  .footer-cols   { justify-content: flex-start; gap: 32px; }
  .footer-bottom { padding: 16px 20px 24px; flex-direction: column; align-items: flex-start; gap: 10px; }

  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  .btn-primary, .btn-ghost, .nav-cta { cursor: pointer; }
}

@media (max-width: 480px) {
  .footer-cols { flex-direction: column; gap: 28px; }
}

