/* =========================================================
   NEXURION SYSTEMS — Global Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --c-bg:         #04060f;
  --c-bg-2:       #080c1a;
  --c-bg-card:    #0b1022;
  --c-border:     rgba(255,255,255,0.07);
  --c-blue:       #1a6bff;
  --c-blue-bright:#3d8bff;
  --c-blue-dark:  #0d2a6b;
  --c-navy:       #071435;
  --c-white:      #f0f4ff;
  --c-muted:      #7a8ab0;
  --c-accent:     #00c2ff;

  --f-display:    'Syne', sans-serif;
  --f-body:       'DM Sans', sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  --shadow-glow:  0 0 60px rgba(26, 107, 255, 0.15);
  --shadow-card:  0 4px 40px rgba(0,0,0,0.4);

  --max-w:        1200px;
  --nav-h:        72px;

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--f-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-blue-bright);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--c-white);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-bright) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(26, 107, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(26, 107, 255, 0.5);
}

.btn-outline {
  border: 1px solid var(--c-border);
  color: var(--c-white);
  background: rgba(255,255,255,0.03);
}

.btn-outline:hover {
  border-color: var(--c-blue);
  background: rgba(26, 107, 255, 0.08);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.45);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(26, 107, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ── Decorative ──────────────────────────────────────────── */
.glow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 12px var(--c-blue);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ── Grid utilities ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin: 0;
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(26,107,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(26,107,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(26,107,255,0.6); }
}

.animate-fade-up   { animation: fadeUp  0.7s ease both; }
.animate-delay-1   { animation-delay: 0.15s; }
.animate-delay-2   { animation-delay: 0.3s;  }
.animate-delay-3   { animation-delay: 0.45s; }
.animate-delay-4   { animation-delay: 0.6s;  }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-bg-card);
  border: 1px solid rgba(26,107,255,0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.3rem;
}

.cookie-text p {
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-text a {
  color: var(--c-blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-more {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-more:hover { color: var(--c-white); }

@media (max-width: 560px) {
  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; }
  .cookie-inner  { flex-direction: column; gap: 1rem; padding: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* =========================================================
   GLOBAL MOBILE FIXES
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn { padding: 0.8rem 1.4rem; font-size: 0.85rem; }
  .section-title { font-size: 1.7rem; }
  .section-sub   { font-size: 0.92rem; }
  .page-hero     { padding: 6rem 0 3rem; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
}

/* =========================================================
   MOBILE TOUCH & ACCESSIBILITY IMPROVEMENTS
   ========================================================= */

/* Remove tap highlight on mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Smooth scrolling on iOS */
html { -webkit-overflow-scrolling: touch; }

/* Minimum tap target size for all interactive elements */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Better text rendering on mobile */
body {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Safe area insets for iPhone notch */
@supports (padding: max(0px)) {
  .nav { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .footer { padding-bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom))); }
  .whatsapp-float { right: max(1.25rem, calc(1.25rem + env(safe-area-inset-right))); bottom: max(1.25rem, calc(1.25rem + env(safe-area-inset-bottom))); }
  .cookie-banner { left: max(1.5rem, calc(1.5rem + env(safe-area-inset-left))); right: max(1.5rem, calc(1.5rem + env(safe-area-inset-right))); bottom: max(1.5rem, calc(1.5rem + env(safe-area-inset-bottom))); }
}

/* Prevent horizontal overflow */
body, html { overflow-x: hidden; max-width: 100vw; }

/* Improve form inputs on iOS (prevent zoom on focus) */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}
