﻿/* ============================================
   Plutonic Tech — Shared Stylesheet
   ============================================ */

:root {
  --blue: #1D88B6;
  --cyan: #00ADEB;
  --orange: #FFAA01;
  --red: #D2232A;
  --navy: #071A24;
  --surface: #0F2B3A;
  --surface-2: #133447;
  --bg-light: #F7FAFC;
  --white: #FFFFFF;
  --border: #D9E4EC;
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-dark: #102A43;
  --text-muted: #627D98;
  --text-on-dark: rgba(255, 255, 255, 0.78);
  --text-on-dark-muted: rgba(255, 255, 255, 0.55);

  --gradient-tech: linear-gradient(135deg, #1D88B6 0%, #00ADEB 100%);
  --gradient-cta: linear-gradient(135deg, #FFAA01 0%, #D2232A 100%);
  --gradient-hero: linear-gradient(135deg, #071A24 0%, #0F2B3A 100%);

  --shadow-sm: 0 2px 8px rgba(7, 26, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(7, 26, 36, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 26, 36, 0.12);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-cyan: 0 16px 40px rgba(0, 173, 235, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* On dark pages */
body.dark { background: var(--navy); color: var(--text-on-dark); }
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5 { color: var(--white); }

section { padding: 120px 0; position: relative; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 173, 235, 0.8);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.2s ease;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  background: rgba(0, 173, 235, 0.08);
  border-color: var(--cyan);
}
.cursor-ring.click {
  width: 30px; height: 30px;
  background: rgba(0, 173, 235, 0.4);
}
.cursor-ring.text {
  width: 6px; height: 32px;
  border-radius: 2px;
  background: var(--cyan);
  border: none;
}
.cursor-dot.hidden, .cursor-ring.hidden { opacity: 0; }

/* Hide cursor on touch devices */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  * { cursor: auto !important; }
}
html, body, a, button, [data-cursor] { cursor: none; }
@media (hover: hover) {
  html, body, a, button, input, textarea, select, [data-cursor] { cursor: none; }
}

/* ============================================
   REUSABLE COMPONENTS
   ============================================ */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.overline::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.overline.cyan { color: var(--cyan); }
.overline.orange { color: var(--orange); }

.section-title {
  font-size: clamp(34px, 4vw, 52px);
  max-width: 760px;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 64px;
}
body.dark .section-sub { color: var(--text-on-dark-muted); }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-head-row .section-sub { margin-bottom: 0; }
.section-head-row .section-title { margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn i { font-size: 18px; }
.btn-cta {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(210, 35, 42, 0.28);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(210, 35, 42, 0.38); }
.btn-primary {
  background: var(--gradient-tech);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0, 173, 235, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
body.dark .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}
body.dark .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 173, 235, 0.06); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 26, 36, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease;
}
.navbar.scrolled { background: rgba(7, 26, 36, 0.94); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--gradient-tech);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--white);
  font-size: 18px;
  box-shadow: var(--shadow-cyan);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--navy);
}
.logo-text { display: inline-flex; align-items: baseline; gap: 3px; }
.logo-dot { color: var(--cyan); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px; font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }

.nav-cta-wrap { display: flex; align-items: center; gap: 16px; }
.nav-burger { display: none; color: white; font-size: 26px; }

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  position: relative;
  padding: 180px 0 100px;
  background: var(--gradient-hero);
  color: var(--white);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 173, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 173, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 70%);
}
.page-header::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 173, 235, 0.18), transparent 60%);
  top: -300px; right: -200px;
  filter: blur(60px);
}
.page-header-inner { position: relative; z-index: 2; max-width: 760px; }
.page-header h1 {
  color: var(--white);
  font-size: clamp(40px, 5vw, 68px);
  margin-bottom: 20px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  max-width: 600px;
}
.crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.crumbs a { opacity: 0.7; transition: opacity 0.25s ease; }
.crumbs a:hover { opacity: 1; }
.crumbs i { font-size: 14px; opacity: 0.5; }

/* ============================================
   STAGGERED FADE-UP
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
.fade-up.d5 { animation-delay: 0.7s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px; line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: all 0.25s ease;
}
.footer-socials a:hover {
  background: var(--gradient-tech);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-family: 'Inter';
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  font-size: 14px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #00ADEB 0%, #6FD9FF 60%, #1D88B6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 140px 0 80px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .navbar .btn-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header { padding: 120px 0 60px; }
}

