/* ============================================================
   TECHNOLOGIT — style.css
   ============================================================ */

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

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

:root {
  --bg:         #050A1A;
  --bg2:        #0A0F2A;
  --blue:       #00D4FF;
  --violet:     #7B2FFF;
  --emerald:    #00E5A0;
  --white:      #F0F4FF;
  --muted:      #6B7A99;
  --border:     rgba(255,255,255,0.08);
  --glass:      rgba(255,255,255,0.04);
  --glass-blue: rgba(0,212,255,0.05);
  --radius:     12px;
  --font-sans:  'Outfit', sans-serif;
  --font-disp:  'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

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

h1,h2,h3,h4 { font-family: var(--font-disp); line-height: 1.15; }

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

img, svg { display: block; }

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--bg);
}
.btn-primary:hover { background: #33DDFF; transform: translateY(-1px); }

.btn-secondary {
  background: var(--violet);
  color: #fff;
}
.btn-secondary:hover { background: #9255FF; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(0,212,255,0.4);
}
.btn-outline:hover { background: rgba(0,212,255,0.1); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(5,10,26,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease;
}
.navbar.scrolled { padding: 14px 40px; }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 32px; height: 32px;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.nav-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .05em;
}

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(240,244,255,.65);
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
}

@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar .btn-outline { display: none; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#threeCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 100px 24px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,.3);
  background: rgba(0,212,255,.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: ping 1.8s ease-in-out infinite;
}

@keyframes ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .5; }
}

.hero-title {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradMove 4s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(0,212,255,.45));
}

@keyframes gradMove {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- TICKER ---- */
.ticker-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10,15,42,.5);
  overflow: hidden;
}

.ticker-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.ticker-wrap { overflow: hidden; }

.ticker-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: ticker 30s linear infinite;
  opacity: .45;
}

.ticker-item {
  font-family: var(--font-disp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  white-space: nowrap;
  color: rgba(240,244,255,.5);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- STATS ---- */
.stats-section {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(0,212,255,.04) 0%, transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-family: var(--font-disp);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- PRODUCTS ---- */
.products-section { padding: 100px 0; }

.section-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  margin-bottom: 18px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: border-color .4s ease, transform .3s ease;
}

.product-card:hover { transform: translateY(-3px); }
.product-card.color-blue:hover  { border-color: rgba(0,212,255,.4); }
.product-card.color-violet:hover{ border-color: rgba(123,47,255,.4); }
.product-card.color-emerald:hover{ border-color: rgba(0,229,160,.4); }
.product-card.color-white:hover { border-color: rgba(240,244,255,.4); }

.product-card-bg-icon {
  position: absolute;
  top: 16px; right: 16px;
  opacity: .06;
  transition: opacity .4s;
  pointer-events: none;
}
.product-card:hover .product-card-bg-icon { opacity: .12; }

.product-icon {
  width: 54px; height: 54px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.product-icon.color-blue   { background: rgba(0,212,255,.1);  border: 1px solid rgba(0,212,255,.3);  color: var(--blue); }
.product-icon.color-violet { background: rgba(123,47,255,.1); border: 1px solid rgba(123,47,255,.3); color: var(--violet); }
.product-icon.color-emerald{ background: rgba(0,229,160,.1);  border: 1px solid rgba(0,229,160,.3);  color: var(--emerald); }
.product-icon.color-white  { background: rgba(240,244,255,.08); border: 1px solid rgba(240,244,255,.2); color: var(--white); }

.product-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(240,244,255,.8);
}

.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feature-dot.color-blue   { background: var(--blue); }
.feature-dot.color-violet { background: var(--violet); }
.feature-dot.color-emerald{ background: var(--emerald); }
.feature-dot.color-white  { background: var(--white); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: gap .2s ease, opacity .2s;
}
.product-link:hover { gap: 10px; }
.product-link.color-blue   { color: var(--blue); }
.product-link.color-violet { color: var(--violet); }
.product-link.color-emerald{ color: var(--emerald); }
.product-link.color-white  { color: var(--white); }

/* ---- DEV SECTION ---- */
.dev-section {
  position: relative;
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.dev-glow {
  position: absolute;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(0,212,255,.12);
  filter: blur(120px);
  pointer-events: none;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .dev-grid { grid-template-columns: 1fr; gap: 40px; }
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,.3);
  background: rgba(0,212,255,.06);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dev-content h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  margin-bottom: 18px;
}

.dev-content > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.dev-features { display: flex; flex-direction: column; gap: 20px; }

.dev-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dev-feature svg { flex-shrink: 0; margin-top: 3px; }

.dev-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.dev-feature span { font-size: 13px; color: var(--muted); }

.code-window {
  background: rgba(0,212,255,.03);
  border: 1px solid rgba(0,212,255,.18);
  padding: 24px;
  overflow-x: auto;
  box-shadow: 0 0 40px rgba(0,212,255,.07);
}

.code-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,212,255,.15);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: rgba(255,80,80,.5); }
.dot.yellow { background: rgba(255,200,60,.5); }
.dot.green  { background: rgba(80,220,100,.5); }

.code-window pre {
  font-family: Menlo, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(0,212,255,.75);
  white-space: pre;
}

.code-window .kw  { color: var(--violet); }
.code-window .str { color: var(--emerald); }
.code-window .cm  { color: var(--muted); }
.code-window .br  { color: rgba(0,212,255,.6); }
.code-window .fn  { color: var(--blue); }

/* ---- CONTACT ---- */
.contact-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  border-radius: 50%;
  background: rgba(123,47,255,.1);
  filter: blur(100px);
  pointer-events: none;
}

.contact-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 56px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  text-align: center;
}

@media (max-width: 600px) {
  .contact-card { padding: 40px 24px; }
}

.contact-card h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
}

.glow-violet {
  text-shadow: 0 0 24px rgba(123,47,255,.7);
}

.contact-card > p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-form { text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240,244,255,.75);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(107,122,153,.7); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(123,47,255,.6); }

.form-group select option { background: #0A0F2A; color: var(--white); }

.form-group textarea { resize: vertical; }

.form-success {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0,229,160,.1);
  border: 1px solid rgba(0,229,160,.3);
  color: var(--emerald);
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
}
.hidden { display: none; }

/* ---- FOOTER ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: #020510;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand strong {
  font-family: var(--font-disp);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .05em;
  font-size: 14px;
}

.footer-sep { opacity: .3; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ---- 3D LOADER ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity .6s ease, visibility .6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Scene — sets up perspective for 3D */
.loader-scene {
  width: 64px;
  height: 64px;
  perspective: 300px;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

/* Cube */
.loader-cube {
  width: 64px;
  height: 64px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 3s ease-in-out infinite;
}

@keyframes cubeRotate {
  0%   { transform: rotateX(0deg)   rotateY(0deg)   rotateZ(0deg); }
  25%  { transform: rotateX(90deg)  rotateY(90deg)  rotateZ(0deg); }
  50%  { transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg); }
  75%  { transform: rotateX(270deg) rotateY(90deg)  rotateZ(180deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.cube-face {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.04);
  backdrop-filter: blur(4px);
}

.face-front  { transform: translateZ(32px); }
.face-back   { transform: rotateY(180deg) translateZ(32px); }
.face-left   { transform: rotateY(-90deg) translateZ(32px); }
.face-right  { transform: rotateY(90deg)  translateZ(32px); }
.face-top    { transform: rotateX(90deg)  translateZ(32px); }
.face-bottom { transform: rotateX(-90deg) translateZ(32px); }

/* Glow faces */
.face-front, .face-back {
  border-color: rgba(0,212,255,0.7);
  background: rgba(0,212,255,0.06);
  box-shadow: inset 0 0 12px rgba(0,212,255,0.15), 0 0 16px rgba(0,212,255,0.1);
}
.face-left, .face-right {
  border-color: rgba(123,47,255,0.6);
  background: rgba(123,47,255,0.05);
  box-shadow: inset 0 0 12px rgba(123,47,255,0.15);
}
.face-top, .face-bottom {
  border-color: rgba(0,229,160,0.5);
  background: rgba(0,229,160,0.04);
  box-shadow: inset 0 0 12px rgba(0,229,160,0.12);
}

/* Orbital rings */
.loader-rings {
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-1 {
  width: 120px;
  height: 120px;
  border-top-color:   rgba(0,212,255,0.7);
  border-right-color: rgba(0,212,255,0.2);
  border-bottom-color:rgba(0,212,255,0.05);
  border-left-color:  rgba(0,212,255,0.2);
  animation: ringOrbit 1.6s linear infinite;
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}

.ring-2 {
  width: 148px;
  height: 148px;
  border-top-color:   transparent;
  border-right-color: rgba(123,47,255,0.6);
  border-bottom-color:rgba(123,47,255,0.15);
  border-left-color:  transparent;
  animation: ringOrbit 2.4s linear infinite reverse;
}

.ring-3 {
  width: 176px;
  height: 176px;
  border-top-color:   rgba(0,229,160,0.4);
  border-right-color: transparent;
  border-bottom-color:rgba(0,229,160,0.4);
  border-left-color:  transparent;
  animation: ringOrbit 3.2s linear infinite;
}

@keyframes ringOrbit {
  to { transform: rotate(360deg); }
}

.loader-label {
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(240,244,255,.9);
  margin-top: 52px;
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  animation: loaderPulse 2s ease-in-out infinite .4s;
}

@keyframes loaderPulse {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.products-grid .reveal:nth-child(1) { transition-delay: .05s; }
.products-grid .reveal:nth-child(2) { transition-delay: .15s; }
.products-grid .reveal:nth-child(3) { transition-delay: .25s; }
.products-grid .reveal:nth-child(4) { transition-delay: .35s; }

.stats-grid .stat-card:nth-child(1) { transition-delay: .0s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: .1s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: .2s; }
.stats-grid .stat-card:nth-child(4) { transition-delay: .3s; }
