/* ===== Variables ===== */
:root {
  --navy-950: #040810;
  --navy-900: #0a1424;
  --navy-800: #0f1e34;
  --navy-700: #152a48;
  --navy-600: #1a3558;
  --cyan: #00d4ff;
  --cyan-light: #5ddeff;
  --cyan-glow: rgba(0, 212, 255, 0.22);
  --red: #e63946;
  --white: #ffffff;
  --gray-100: #eef2f8;
  --gray-200: #c8d4e4;
  --gray-300: #a3b4c9;
  --gray-400: #7a8fa8;
  --surface: rgba(15, 30, 52, 0.75);
  --surface-solid: #0f1e34;
  --surface-border: rgba(0, 212, 255, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 96px;
  --ticker-h: 3.25rem;
  --logo-font: 'Exo 2', var(--font);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--gray-100);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-light); }
ul { list-style: none; }
button, input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-cyan { color: var(--cyan); }

/* ===== Page Background ===== */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, var(--navy-950) 0%, #0c1829 42%, #0a1525 100%);
  pointer-events: none;
}
.circuit-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(0, 212, 255, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 15%, rgba(0, 120, 200, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 5% 85%, rgba(0, 80, 160, 0.07) 0%, transparent 45%);
}
.circuit-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 75%);
  opacity: 0.45;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.header.scrolled {
  background: rgba(4, 8, 16, 0.94);
  border-bottom-color: var(--surface-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}
.nav-logo:hover { color: var(--white); }
.nav-logo:hover .nav-logo-icon {
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.55));
}
.nav-logo:hover .logo-name {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.nav-logo-icon {
  height: 52px;
  width: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35));
  transition: filter var(--transition);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.logo-name {
  font-family: var(--logo-font);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--white);
  transition: text-shadow var(--transition);
}
.logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gray-300);
  line-height: 1.2;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 100%);
  color: var(--navy-900);
  box-shadow: 0 4px 20px var(--cyan-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
  color: var(--navy-900);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(0, 212, 255, 0.4);
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 45%, rgba(0, 212, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 1.5rem 0 1rem;
  min-height: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--gray-200);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}
.hero-tagline {
  font-size: 1rem;
  color: var(--gray-200);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-200);
  max-width: 520px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
}
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--surface-border);
}
.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
}
.hero-image-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan), transparent 60%);
  opacity: 0.3;
  z-index: -1;
  filter: blur(20px);
}
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 30, 52, 0.95);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: float 4s ease-in-out infinite;
}
.floating-card svg {
  width: 20px; height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}
.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 15%; right: -5%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-scroll {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 48px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(-4px); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ===== Ticker ===== */
.ticker {
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800) 50%, var(--navy-950));
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  border-bottom: 1px solid var(--surface-border);
  padding: 0.85rem 0;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-ticker {
  position: relative;
  z-index: 3;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}
.ticker-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray-100);
}
.ticker-track .dot { color: var(--red); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
}
.section-desc {
  margin-top: 1rem;
  color: var(--gray-300);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== About ===== */
.about {
  background: linear-gradient(180deg, rgba(15, 30, 52, 0.35) 0%, rgba(15, 30, 52, 0.15) 100%);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--gray-200);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-highlights {
  margin-top: 1.5rem;
}
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--gray-100);
  font-size: 0.95rem;
}
.highlight-icon {
  color: var(--red);
  font-size: 0.6rem;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.about-card {
  padding: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.about-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: rgba(18, 36, 62, 0.88);
}
.about-card-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.about-card-icon svg {
  width: 22px; height: 22px;
  color: var(--cyan);
}
.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.about-card p {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 1.55;
}

/* ===== Services ===== */
.services {
  background: transparent;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  padding: 2rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  background: rgba(18, 36, 62, 0.9);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}
.service-icon svg { width: 48px; height: 48px; }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(21, 42, 72, 0.95) 0%, rgba(15, 30, 52, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-box p {
  color: var(--gray-200);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  position: relative;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(180deg, rgba(15, 30, 52, 0.2) 0%, rgba(4, 8, 16, 0.4) 100%);
  border-top: 1px solid var(--surface-border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--surface-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
}
.contact-icon svg {
  width: 22px; height: 22px;
  color: var(--cyan);
}
.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.contact-item p {
  color: var(--gray-200);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-item a { color: var(--gray-100); }
.contact-item a:hover { color: var(--cyan); }

.contact-form {
  padding: 2rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-200);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(4, 8, 16, 0.65);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.form-note.success { color: #4ade80; }
.form-note.error { color: var(--red); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-950) 100%);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand .logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.03em;
}
.footer-brand span {
  font-size: 0.8rem;
  color: var(--gray-300);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--gray-300);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-body { padding: 1rem 0 0.5rem; }
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
  .floating-card { display: none; }
  .hero-stats { gap: 1.5rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(4, 8, 16, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    border-bottom: 1px solid var(--surface-border);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links li { padding: 0.75rem 0; }
  .nav-links a { font-size: 1rem; }
  .hero-scroll { display: none; }
  .hero { min-height: 100svh; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .logo-name { font-size: 1.25rem; letter-spacing: 0.1em; }
  .logo-tagline { font-size: 0.58rem; }
  .nav-logo-icon { height: 46px; width: 46px; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .logo-name { font-size: 1.1rem; letter-spacing: 0.08em; }
  .logo-tagline { font-size: 0.52rem; letter-spacing: 0.02em; }
  .nav-logo-icon { height: 40px; width: 40px; }
  .nav-logo { gap: 0.55rem; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
