﻿/* ==================================================
   Base Stylesheet
   Purpose: Defines global design tokens, typography,
   reset rules, and shared foundational behavior.
   Category: Base styling
================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

/* ==================================================
   Design Tokens
   Purpose: Centralizes theme colors, spacing, radii,
   shadows, and transition timing for easy scaling.
   Category: Base styling
================================================== */
:root {
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --color-bg-950: #05070d;
  --color-bg-900: #0b111f;
  --color-bg-850: #111a2d;
  --color-surface-800: rgba(17, 26, 45, 0.86);
  --color-surface-700: rgba(31, 45, 74, 0.74);
  --color-border-500: rgba(139, 180, 229, 0.25);
  --color-border-400: rgba(181, 208, 245, 0.36);
  --color-text-100: #f5f8ff;
  --color-text-200: #d2def5;
  --color-text-300: #a8b8d8;
  --color-accent-500: #72b4ff;
  --color-accent-400: #99c8ff;
  --color-accent-300: #c7e1ff;
  --color-danger-500: #ff6e8a;

  --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.44);
  --shadow-glow: 0 0 0 1px rgba(153, 200, 255, 0.2), 0 14px 38px rgba(66, 124, 194, 0.24);
  --shadow-button: 0 10px 26px rgba(59, 118, 185, 0.24);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --duration-fast: 0.2s;
  --duration-medium: 0.35s;
  --duration-slow: 0.6s;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.1, 1);

  --hero-panel-max-width: 680px;
  --hero-panel-padding-inline: clamp(1.7rem, 4vw, 2.6rem);
  --hero-panel-padding-block: clamp(1.05rem, 2.2vw, 1.55rem);
  --hero-logo-row-gap: 0.7rem;
  --tech-logo-gap: 0.7rem;

  --section-modal-width: min(860px, 92vw);
  --section-modal-height: min(82vh, 760px);
}

/* ==================================================
   Global Reset
   Purpose: Normalizes spacing and sizing so layout is
   predictable across browsers and screen sizes.
   Category: Base styling
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

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

/* ==================================================
   Document Defaults
   Purpose: Applies default typography, colors, and
   antialiasing for a premium dark UI baseline.
   Category: Base styling
================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text-100);
  background: var(--color-bg-950);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==================================================
   Localization Render Lock
   Purpose: Prevents stale-language flashes while a
   language switch is being fully applied.
   Category: Base styling
================================================== */
html.is-localization-pending,
html.is-localization-pending body {
  overflow: hidden;
}

html.is-localization-pending body > * {
  visibility: hidden !important;
}

html.is-localization-pending body::before {
  content: attr(data-localization-pending-label);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--color-text-100);
  background:
    radial-gradient(circle at 16% 14%, rgba(124, 177, 243, 0.24), rgba(124, 177, 243, 0) 42%),
    radial-gradient(circle at 84% 82%, rgba(91, 142, 214, 0.2), rgba(91, 142, 214, 0) 48%),
    linear-gradient(160deg, rgba(5, 10, 19, 0.98), rgba(8, 17, 31, 0.98));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

p {
  margin: 0;
  color: var(--color-text-200);
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-200);
}

a {
  color: var(--color-accent-300);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

/* ==================================================
   Accessibility Utilities
   Purpose: Provides helper classes for screen-reader
   text and keyboard focus visibility.
   Category: Base styling
================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent-400);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==================================================
   Scrollbar Styling
   Purpose: Refines scrollbar aesthetics for scrollable
   legal content and drawer sections.
   Category: Base styling
================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(133, 179, 235, 0.6) rgba(10, 16, 29, 0.5);
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 16, 29, 0.55);
}

*::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  border: 2px solid rgba(10, 16, 29, 0.55);
  background: rgba(133, 179, 235, 0.55);
}
