/* ============================================
   SURFACEPIX - Global Stylesheet
   Brand palette: Cyan → Purple → Hot Pink gradient
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand colors from logo */
  --color-primary: #00D4F5;          /* Cyan */
  --color-primary-dark: #00B8D9;
  --color-secondary: #D63FA0;        /* Hot pink/magenta */
  --color-purple: #9B6FD4;           /* Purple mid-point */
  --color-warm: #C4914D;             /* Warm gold (tagline color) */

  /* Gradient (mirrors the logo) */
  --gradient-brand: linear-gradient(135deg, #00D4F5 0%, #9B6FD4 52%, #D63FA0 100%);
  --gradient-brand-h: linear-gradient(90deg, #00D4F5 0%, #9B6FD4 52%, #D63FA0 100%);
  --gradient-glow-cyan: radial-gradient(ellipse, rgba(0, 212, 245, 0.12) 0%, transparent 70%);
  --gradient-glow-pink: radial-gradient(ellipse, rgba(214, 63, 160, 0.10) 0%, transparent 70%);

  /* Neutrals */
  --color-dark: #0A0D12;
  --color-dark-2: #141820;
  --color-dark-3: #1E2330;
  --color-mid: #3A4050;
  --color-white: #FFFFFF;
  --color-text: #E8EAF0;
  --color-text-muted: #8890A4;
  --color-text-dark: #1A1A2E;
  --color-border: rgba(255,255,255,0.07);
  --color-border-bright: rgba(255,255,255,0.12);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Utilities */
  --transition: 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.3);
  --shadow-cyan: 0 6px 28px rgba(0, 212, 245, 0.25);
  --shadow-pink: 0 6px 28px rgba(214, 63, 160, 0.25);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Gradient text utility --- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(10, 13, 18, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--color-border-bright);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

/* Logo icon: gradient background */
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-cyan);
}

/* "Pix" part of logo gets gradient color */
.nav-logo .logo-pix {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active {
  color: var(--color-primary);
  background: rgba(0, 212, 245, 0.06);
}

/* CTA nav button: gradient pill */
.nav-cta {
  background: var(--gradient-brand) !important;
  color: var(--color-white) !important;
  padding: 9px 20px !important;
  border-radius: 40px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-cyan);
}

.nav-cta:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cyan) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

/* Primary: gradient button */
.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 212, 245, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
  opacity: 0.92;
}

/* Outline: subtle border that glows on hover */
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.18);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(0, 212, 245, 0.08);
}

/* Pill variant */
.btn-pill {
  border-radius: 40px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-dark {
  background: var(--color-dark);
}

.section-darker {
  background: var(--color-dark-2);
}

.section-light {
  background: var(--color-dark-3);
}

/* Section tag: gradient border pill */
.section-tag {
  display: inline-block;
  background: rgba(0, 212, 245, 0.08);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid rgba(0, 212, 245, 0.22);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-dark-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(0, 212, 245, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 212, 245, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 245, 0.15);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

/* ============================================
   STATS BAR
   ============================================ */

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

/* Gradient numbers */
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-dark-2);
  border-top: 1px solid var(--color-border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--color-dark-3);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--color-primary);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dual glow: cyan left, pink right */
.page-hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: var(--gradient-glow-cyan);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -180px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--gradient-glow-pink);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -1px;
  margin-bottom: 20px;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  justify-content: center;
  position: relative;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-mid);
}

/* ============================================
   BADGE / TAG
   ============================================ */

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(0, 212, 245, 0.10);
  color: var(--color-primary);
  border: 1px solid rgba(0, 212, 245, 0.22);
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--color-dark-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.93rem;
  transition: var(--transition);
  outline: none;
}

.form-control::placeholder {
  color: var(--color-mid);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 245, 0.10);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* ============================================
   GRADIENT DIVIDER (decorative)
   ============================================ */

.gradient-line {
  height: 2px;
  background: var(--gradient-brand-h);
  border: none;
  opacity: 0.5;
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-dark-2);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    gap: 4px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 15px 24px; font-size: 0.95rem; }
  .section-title { font-size: 1.75rem; }
}
