﻿/* ==========================================================================
   Stark-OS Cyber HUD Design System — Jarvis AI / JarvisHUD
   Developed by Akash Kailashiya (akashkailashiya.in)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ============ BASE & VARIABLES ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #00e5ff;
  --cyan-soft: #5ff2ff;
  --gold: #ffb545;
  --red: #ff4d4d;
  --green: #00ff9d;
  --bg: #04060c;
  --bg2: #070d18;
  --panel: rgba(8, 17, 30, 0.78);
  --panel-solid: #091322;
  --border: rgba(0, 229, 255, 0.2);
  --border-str: rgba(0, 229, 255, 0.55);
  --text: #d3ecf5;
  --muted: #7d99ab;
  --accent: var(--cyan); /* Default Mark VII */
  --radius: 16px;
  --max: 1200px;
}

body.theme-gold {
  --accent: var(--gold);
  --border: rgba(255, 181, 69, 0.2);
  --border-str: rgba(255, 181, 69, 0.55);
}

body.theme-red {
  --accent: var(--red);
  --border: rgba(255, 77, 77, 0.2);
  --border-str: rgba(255, 77, 77, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .mono {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .02em;
}

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

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

/* ============ BACKGROUND EFFECTS ============ */
#bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 10%, #000 10%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 10%, #000 10%, transparent 90%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .25;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 3px, rgba(0, 0, 0, .2) 3px 4px);
  mix-blend-mode: multiply;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -2;
  pointer-events: none;
  opacity: .45;
  transition: background 0.5s;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 229, 255, .15);
  top: -200px;
  left: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 181, 69, .08);
  bottom: -150px;
  right: -150px;
}

body.theme-gold .orb-1 { background: rgba(255, 181, 69, .15); }
body.theme-red .orb-1 { background: rgba(255, 77, 77, .15); }

/* ============ LAYOUT ============ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

section {
  position: relative;
  padding: 80px 0;
}

.page-content {
  flex: 1;
  padding: 130px 0 60px;
}

.eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: background 0.3s;
}

.sec-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.sec-sub {
  color: var(--muted);
  max-width: 640px;
  font-size: 17px;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #9ef7ff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background 0.3s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .3s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(100deg, rgba(0, 229, 255, .15), rgba(0, 229, 255, .05));
  border-color: var(--border-str);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 255, .15), inset 0 0 15px rgba(0, 229, 255, .05);
}

.btn-primary:hover {
  background: var(--accent);
  color: #02141b;
  box-shadow: 0 0 35px var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .15);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 11px;
}

/* ============ NAV ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  transition: .35s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(4, 7, 14, .88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .15em;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-str);
  box-shadow: 0 0 12px var(--accent);
  object-fit: cover;
  flex: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.logo:hover .logo-img {
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--accent);
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  flex: none;
  background: radial-gradient(circle at 50% 50%, #e8ffff 0%, var(--accent) 40%, #046b80 70%, transparent 72%);
  box-shadow: 0 0 15px var(--accent);
  transition: background 0.3s;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--border-str);
  border-top-color: transparent;
  border-left-color: transparent;
  animation: spin 4s linear infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: .25s;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: .3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  margin: 4px 0;
  transition: .3s;
}

/* ============ CARDS & PANELS ============ */
.card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: .35s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: .35s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-str);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .6), 0 0 25px rgba(0, 229, 255, .1);
}

.card:hover::before {
  opacity: 1;
}

.card-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(0, 229, 255, .12), rgba(0, 229, 255, .02));
  border: 1px solid var(--border-str);
  box-shadow: inset 0 0 15px rgba(0, 229, 255, .08);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e6f8ff;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ LEGAL / DOCUMENTATION PANELS ============ */
.legal-header {
  margin-bottom: 35px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, .05);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 16px;
}

.legal-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: rgba(8, 17, 30, .6);
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-top: 15px;
  display: inline-block;
}

.legal-meta code {
  color: var(--accent);
}

.cyber-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.cyber-panel::before, .cyber-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  transition: border-color 0.3s;
}

.cyber-panel::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.cyber-panel::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.cyber-panel h2 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyber-panel h2::before {
  content: "⚡";
  color: var(--accent);
  font-size: 16px;
}

.cyber-panel h3 {
  font-size: 15px;
  color: var(--accent);
  margin: 20px 0 8px;
}

.cyber-panel p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.cyber-alert {
  background: rgba(0, 229, 255, .06);
  border: 1px solid var(--border-str);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #e2f4fb;
  font-size: 15px;
}

.cyber-alert strong {
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
  display: block;
  margin-bottom: 6px;
}

.cyber-list {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.cyber-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.cyber-list li::before {
  content: "▹";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

code {
  font-family: 'Share Tech Mono', monospace;
  background: rgba(0, 229, 255, .1);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(0, 229, 255, .2);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.step-card {
  background: rgba(6, 14, 24, .7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.step-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  opacity: .5;
  margin-bottom: 10px;
}

.step-card h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #fff;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ THEMES SECTION ============ */
.themes-section {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, .03), transparent);
}

.theme-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.theme-card {
  width: 170px;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .3s;
  background: var(--panel);
}

.theme-card:hover {
  transform: translateY(-5px);
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 229, 255, .2);
}

.theme-card .color-preview {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid rgba(255, 255, 255, .1);
  position: relative;
}

.theme-card .color-preview::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .2);
  animation: spin 10s linear infinite;
}

.theme-card h4 {
  font-size: 12px;
  margin-bottom: 4px;
}

.theme-card p {
  font-size: 11px;
  color: var(--muted);
}

.mark-vii .color-preview {
  background: linear-gradient(135deg, #00e5ff, #007a91);
  box-shadow: 0 0 20px #00e5ff;
}

.mark-iii .color-preview {
  background: linear-gradient(135deg, #ffb545, #cc7a00);
  box-shadow: 0 0 20px #ffb545;
}

.mark-xliv .color-preview {
  background: linear-gradient(135deg, #ff4d4d, #b30000);
  box-shadow: 0 0 20px #ff4d4d;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  background: rgba(3, 6, 12, .8);
  margin-top: auto;
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.foot-links a {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .08em;
  transition: .25s;
}

.foot-links a:hover {
  color: var(--accent);
}

.copy {
  font-size: 12.5px;
  color: #5d7484;
}

/* ============ ANIMATIONS ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .phone-wrap { order: -1; }
  .page-content { padding-top: 110px; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 8, 15, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li { width: 100%; border-top: 1px solid rgba(0, 229, 255, .08); }
  .nav-links a { display: block; padding: 14px 22px; font-size: 13px; }
  .burger { display: block; }
  .nav .btn-sm { display: none; }
  .cyber-panel { padding: 24px 18px; }
}


/* ============ LUCIDE & VECTOR ICONS ============ */
[data-lucide] {
  stroke-width: 1.8px;
  display: inline-block;
  vertical-align: middle;
}
.btn [data-lucide] {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}
.card-ico [data-lucide] {
  width: 26px;
  height: 26px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
  transition: transform 0.3s;
}
.card:hover .card-ico [data-lucide] {
  transform: scale(1.12);
}
.float-chip [data-lucide] {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
}
.proto-card [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}
.matrix-item [data-lucide] {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}
.cyber-alert [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-right: 6px;
  vertical-align: -4px;
}
.dev-link [data-lucide] {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
.step-card [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 6px;
}
