/* ========================================================================
   Variables
   ======================================================================== */

:root {
  /* Color Palette */
  --color-background: #070b12; /* deep navy */
  --color-surface: #0e1420; /* elevated surfaces */
  --color-surface-alt: #151c28;
  --color-text: #f5f7fb; /* primary text on dark */
  --color-text-muted: #a3adc2;
  --color-border-subtle: #252c3a;

  --color-primary: #1e8bff; /* electric blue */
  --color-primary-soft: rgba(30, 139, 255, 0.12);
  --color-primary-strong: #0f6ad0;

  --color-success: #2ecc71;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2933;
  --color-gray-900: #111827;

  --color-silver: #c7ccd8; /* accents, subtle dividers */

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing Scale (0–96px) */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-56: 3.5rem;  /* 56px */
  --space-64: 4rem;    /* 64px */
  --space-72: 4.5rem;  /* 72px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-pill: 999px;

  /* Shadows (subtle, techy, not heavy) */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --layout-max-width: 1120px;
  --layout-gutter: var(--space-20);
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}


/* ========================================================================
   Reset / Normalize
   ======================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  padding: 0;
  background: none;
}

textarea {
  resize: vertical;
}

/* Remove default link underlines & colors; we'll define them later */
a {
  text-decoration: none;
  color: inherit;
}

/* Make sure hidden elements remain accessible only to assistive tech */
[hidden] {
  display: none !important;
}


/* ========================================================================
   Base Styles
   ======================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

/* Headings: modern, bold, tight line-height */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--color-gray-50);
  line-height: var(--line-height-tight);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(var(--font-size-3xl), 2.5vw + 1rem, var(--font-size-5xl));
  margin-bottom: var(--space-16);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 2vw + 0.5rem, var(--font-size-4xl));
  margin-bottom: var(--space-12);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
}

h5 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-4);
}

h6 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: var(--font-size-sm);
}

strong {
  font-weight: 600;
}

code,
pre {
  font-family: var(--font-mono);
}

/* Links: crisp, tech-blue accents */
a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Underline only on hover for inline links */
a.inline-link {
  color: var(--color-primary);
}

a.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-silver));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

a.inline-link:hover::after {
  transform: scaleX(1);
}


/* ========================================================================
   Accessibility & Focus
   ======================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ========================================================================
   Utilities
   ======================================================================== */

/* Layout container */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.section {
  padding-block: clamp(var(--space-40), 7vh, var(--space-80));
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.gap-24 {
  gap: var(--space-24);
}

.gap-32 {
  gap: var(--space-32);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

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

/* Spacing utilities (minimal set) */
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: var(--space-16) !important; }
.mt-24 { margin-top: var(--space-24) !important; }
.mt-32 { margin-top: var(--space-32) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }
.mb-24 { margin-bottom: var(--space-24) !important; }
.mb-32 { margin-bottom: var(--space-32) !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ========================================================================
   Components
   ======================================================================== */

/* Buttons */

.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  --btn-bg: var(--color-primary);
  --btn-color: #ffffff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding-inline: var(--space-20);
  padding-block: 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color)!important;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    border-color var(--transition-normal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow-sm);
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background: var(--color-primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.button:disabled,
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* Button variants */
.button--secondary {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: var(--color-border-subtle);
  box-shadow: none;
}

.button--secondary:hover {
  --btn-bg: var(--color-surface-alt);
}

.button--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: transparent;
  box-shadow: none;
}

.button--ghost:hover {
  --btn-bg: var(--color-primary-soft);
}

/* Inputs & Textareas */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding-inline: var(--space-16);
  padding-block: 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: #05070d;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), 0 0 0 1px var(--color-primary);
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-field {
  margin-bottom: var(--space-16);
}

.form-hint {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card component: for services, pricing, testimonials, etc. */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(30, 139, 255, 0.12), transparent 55%), var(--color-surface);
  border: 1px solid rgba(199, 204, 216, 0.1);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  overflow: hidden;
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: var(--space-16);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
}

.card-footer {
  margin-top: var(--space-20);
}

/* Tag / badge for tech specs or service types */
.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-8);
  padding-block: 0.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 204, 216, 0.4);
  background-color: rgba(5, 7, 13, 0.9);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.badge--primary {
  border-color: rgba(30, 139, 255, 0.6);
  background-color: rgba(30, 139, 255, 0.1);
  color: var(--color-primary);
}

/* Testimonial quote style */
.quote {
  position: relative;
  padding-left: var(--space-20);
  border-left: 2px solid rgba(199, 204, 216, 0.5);
  color: var(--color-text);
  font-style: italic;
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: -0.4em;
  top: -0.5em;
  font-size: 3rem;
  color: rgba(199, 204, 216, 0.18);
}

/* Simple navigation base styles (header/footer can build on these) */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(7, 11, 18, 0.95), rgba(7, 11, 18, 0.8));
  border-bottom: 1px solid rgba(199, 204, 216, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  font-size: var(--font-size-sm);
}

.nav-link {
  position: relative;
  color: var(--color-text-muted);
  padding-block: var(--space-4);
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-silver));
  transform-origin: center;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-gray-50);
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.nav-link--active {
  color: var(--color-gray-50);
}

/* Hero text helper for techy landing section */
.hero-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: var(--space-12);
}

.hero-lede {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 40rem;
}

/* Footer base */
.footer {
  border-top: 1px solid rgba(199, 204, 216, 0.08);
  background: radial-gradient(circle at top, rgba(21, 28, 40, 0.8), #05070d);
  padding-block: var(--space-32);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.footer a:hover {
  color: var(--color-gray-50);
}

/* ========================================================================
   End
   ======================================================================== */
