﻿/* ============================================================
   AISpacegame — Main Stylesheet
   Dark space / sci-fi theme
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg:          #050a18;
  --cyan:        #00f0ff;
  --purple:      #7b2fff;
  --white:       #ffffff;
  --muted:       #8892a4;
  --card-bg:     rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
  --cyan-10:     rgba(0, 240, 255, 0.1);
  --cyan-20:     rgba(0, 240, 255, 0.2);
  --cyan-30:     rgba(0, 240, 255, 0.3);
  --purple-15:   rgba(123, 47, 255, 0.15);
  --purple-30:   rgba(123, 47, 255, 0.3);
  --font-heading: 'Orbitron', sans-serif;
  --font-body:    'Noto Sans SC', sans-serif;
  --transition:   0.3s ease;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-full:  9999px;
}

/* ============================================================
   CSS Reset / Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(0, 240, 255, 0.6), 0 0 60px rgba(123, 47, 255, 0.3); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%       { transform: translate(-50%, -50%) translateY(-15px); }
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   General Layout
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Grid Overlay
   ============================================================ */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 59px, rgba(0, 240, 255, 0.05) 60px),
    repeating-linear-gradient(90deg,  transparent, transparent 59px, rgba(0, 240, 255, 0.05) 60px);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  background: rgba(5, 10, 24, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon.small {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--cyan);
}

.btn-nav {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-nav:hover {
  background: var(--cyan);
  color: var(--bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff, #7b2fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #7b2fff);
  color: var(--bg);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.35), 0 4px 15px rgba(123, 47, 255, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ============================================================
   Hero Visual — Orbit Rings
   ============================================================ */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.orbit-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation: orbit 8s linear infinite;
}

.ring-2 {
  width: 300px;
  height: 300px;
  border-color: rgba(123, 47, 255, 0.2);
  animation: orbit 12s linear infinite reverse;
}

.ring-2::after {
  background: var(--purple);
}

.ring-3 {
  width: 380px;
  height: 380px;
  border-color: rgba(0, 240, 255, 0.1);
  animation: orbit 20s linear infinite;
}

.ring-3::after {
  background: rgba(0, 240, 255, 0.6);
  width: 6px;
  height: 6px;
}

.planet-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a0a3e, #050a18);
  border: 2px solid rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
  animation: pulse 3s ease-in-out infinite;
  z-index: 2;
}

/* ============================================================
   Scroll Hint
   ============================================================ */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  z-index: 10;
  letter-spacing: 0.1em;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: rgba(0, 240, 255, 0.03);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  padding: 2rem 0;
}

.stats-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--cyan);
  font-weight: 700;
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--purple);
  margin-left: 2px;
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  background: rgba(0, 240, 255, 0.2);
  align-self: stretch;
  flex-shrink: 0;
}

/* ============================================================
   About Section
   ============================================================ */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--cyan);
  transition: background var(--transition), border-color var(--transition);
}

.tag:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.about-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05), transparent 60%);
  pointer-events: none;
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Products Section
   ============================================================ */
.products {
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-card.featured {
  border-color: rgba(0, 240, 255, 0.3);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #00f0ff, #7b2fff);
  color: var(--bg);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.05em;
}

.product-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-img-1 {
  background: linear-gradient(135deg, #0a1628, #1a0a3e);
}

.card-img-2 {
  background: linear-gradient(135deg, #0a2818, #1a3a0a);
}

.card-img-3 {
  background: linear-gradient(135deg, #1a0a28, #0a1040);
}

.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.product-icon {
  font-size: 3rem;
}

.product-info {
  padding: 1.5rem;
}

.product-genre {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--cyan);
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin: 0.5rem 0;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-tags span {
  background: rgba(123, 47, 255, 0.15);
  border: 1px solid rgba(123, 47, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #b088ff;
}

/* ============================================================
   Tech Section
   ============================================================ */
.tech {
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.tech-main {
  display: flex;
  flex-direction: column;
}

.tech-feature {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.tech-icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.tech-feature:hover .tech-icon-wrap {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
}

.tech-icon {
  font-size: 1.5rem;
}

.tech-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.tech-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.tech-stack {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.tech-stack h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.stack-items {
  display: flex;
  flex-direction: column;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stack-name {
  font-size: 0.85rem;
  color: var(--muted);
  width: 140px;
  flex-shrink: 0;
}

.stack-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.stack-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00f0ff, #7b2fff);
  border-radius: 3px;
  transition: width 1.2s ease;
}

.stack-fill.animate {
  width: var(--w);
}

.stack-pct {
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: var(--font-heading);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   Values Section
   ============================================================ */
.values {
  background: var(--bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #7b2fff);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.value-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(0, 240, 255, 0.1);
  position: absolute;
  top: 1rem;
  right: 1rem;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Future Section
   ============================================================ */
.future {
  background: linear-gradient(180deg, transparent, rgba(123, 47, 255, 0.05), transparent);
}

.future-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.future-text .section-tag {
  text-align: left;
}

.future-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.2;
}

.future-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.future-text .btn-primary {
  margin-top: 1rem;
  display: inline-block;
}

.future-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.future-orb {
  position: relative;
  width: 280px;
  height: 280px;
}

.orb-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.3), rgba(5, 10, 24, 0.9));
  border: 2px solid rgba(123, 47, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: orbFloat 4s ease-in-out infinite;
  z-index: 2;
  padding: 1rem;
}

.orb-inner span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.orb-inner small {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.orb-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid;
}

.r1 {
  width: 200px;
  height: 200px;
  border-color: rgba(0, 240, 255, 0.2);
  animation: ringRotate 8s linear infinite;
}

.r2 {
  width: 280px;
  height: 280px;
  border-color: rgba(123, 47, 255, 0.15);
  animation: ringRotate 14s linear infinite reverse;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-centered {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  display: inline-block;
}

.social-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0, 240, 255, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-group select option {
  background: #0d1b2e;
  color: var(--white);
}

.full-width {
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #020710;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* ============================================================
   Responsive — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 24, 0.98);
    padding: 1rem 2rem;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  /* Hero */
  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Tech */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Future */
  .future-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .future-visual {
    order: -1;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Stats */
  .stats-container {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 0 0 50%;
    padding: 1rem;
  }

  .stat-divider {
    display: none;
  }

  /* Section padding */
  .section {
    padding: 4rem 0;
  }

  /* Hero actions */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Form Validation & Success State
   ============================================================ */

/* Error message under each field */
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #ff5f7e;
  min-height: 1.1em;
  margin-top: 0.2rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.field-error.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Invalid field border */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: rgba(255, 95, 126, 0.6);
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
  border-color: #ff5f7e;
}

/* Valid field border */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: rgba(0, 240, 255, 0.4);
}

/* Submit button loading state */
#cf-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: filter var(--transition), transform var(--transition),
              box-shadow var(--transition), opacity var(--transition);
}

#cf-submit.loading {
  opacity: 0.75;
  pointer-events: none;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5, 10, 24, 0.4);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

#cf-submit.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success panel */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease forwards;
}

.form-success.visible {
  display: flex;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff22, #7b2fff22);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  animation: pulse 2.5s ease-in-out infinite;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.form-success p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
