/* ============================================
   ARDUVEX — Global Styles
   ============================================ */

/* Custom Properties */
:root {
  --color-bg:           #050A14;
  --color-surface:      #0C1220;
  --color-border:       #1A2540;
  --color-primary:      #1466E1;
  --color-primary-glow: #22D1EE;
  --color-accent:       #7BECD6;
  --color-text:         #E8EDF5;
  --color-muted:        #6B7A99;
  --color-white:        #FFFFFF;

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

  --radius-sm:          6px;
  --radius-md:          14px;
  --radius-lg:          24px;

  --transition:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --color-cyan:         #22D1EE;
  --shadow-glow:        0 0 40px rgba(20, 102, 225, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

/* Skip Link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Focus styles (accessibility) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================
   Layout
   ============================================ */

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

.container--narrow {
  max-width: 800px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-glow), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 600px;
}

.section__text {
  color: var(--color-muted);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 640px;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 0 20px rgba(20, 102, 225, 0.15);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 13px;
}

.btn--large {
  padding: 18px 40px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn__loader {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Glass Card
   ============================================ */

.glass-card {
  background: rgba(12, 18, 32, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 37, 64, 0.6);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(20, 102, 225, 0.3);
  box-shadow: 0 0 30px rgba(34, 209, 238, 0.1);
}


/* ============================================
   Page Hero (sub-pages)
   ============================================ */

.page-hero {
  padding: 160px 0 80px;
  position: relative;
}

.page-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(20, 102, 225, 0.12), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(123, 236, 214, 0.08), transparent);
  z-index: 0;
  overflow: hidden;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================
   Animations base state
   ============================================ */

.animate-in {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================
   Selection
   ============================================ */

::selection {
  background: rgba(20, 102, 225, 0.3);
  color: var(--color-white);
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ============================================
   Page Transition Overlay
   ============================================ */

/* ============================================
   Text Scramble
   ============================================ */

.scramble-char {
  color: var(--color-primary-glow);
  opacity: 0.7;
}

.scramble-hero,
.scramble-scroll {
  min-height: 1.2em;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  opacity: 1;
  pointer-events: all;
}
