/* ====================================
   SQUINTPRO LANDING - BASE STYLES
   Brand: SquintPro Guidelines, May 2026
   ==================================== */

/* Vendored secondary font: Allumi Std Extended (Book) */
@font-face {
    font-family: 'Allumi Std Extended';
    src: url('../static/fonts/allumi-std-extended.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* SquintPro Brand Colors (Brand Guidelines 2.1) */
    --deep-blue: #0A1F44;
    --electric-blue: #2887C9;
    --gray-700: #2A292E;
    --gray-600: #6C6B70;
    --gray-300: #B1B0B5;
    --gray-200: #D9D9DB;
    --gray-100: #F0F0F2;
    --white: #FFFFFF;

    /* Deep Blue shades (derived from the foundation color) */
    --deep-blue-2: #102C5B;
    --deep-blue-3: #143767;
    --deep-blue-deep: #061532;

    /* Semantic mappings */
    --primary-color: var(--deep-blue);
    --accent-color: var(--electric-blue);
    --accent-hover: #216FA8;
    --accent-active: #1C5E8E;
    --text-primary: var(--deep-blue);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-300);
    --text-on-dark: rgba(255, 255, 255, 0.78);
    --text-on-dark-faint: rgba(255, 255, 255, 0.55);
    --background-primary: var(--white);
    --background-secondary: var(--gray-100);
    --background-dark: var(--deep-blue);
    --border-color: var(--gray-200);
    --border-on-dark: rgba(255, 255, 255, 0.14);

    /* RGB Variants for rgba() usage */
    --deep-blue-rgb: 10, 31, 68;
    --electric-rgb: 40, 135, 201;

    /* State colors */
    --success-color: #2E9E6B;
    --error-color: #C94B28;

    /* Typography */
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-sans: 'Allumi Std Extended', 'Arial Narrow', Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius (rounded-square brand motif) */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
    --shadow-md: 0 4px 10px rgba(10, 31, 68, 0.08);
    --shadow-lg: 0 12px 28px rgba(10, 31, 68, 0.12);
    --shadow-xl: 0 24px 48px rgba(10, 31, 68, 0.18);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-notification: 1060;
}

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

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

body {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-secondary);
    background-color: var(--background-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--electric-blue);
    color: var(--white);
}

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

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.22;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -48px;
    left: var(--spacing-md);
    z-index: var(--z-notification);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--deep-blue);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--spacing-md);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section--tint {
    background: var(--background-secondary);
}

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

/* Section headers */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: var(--spacing-md);
}

.section-head {
    max-width: 720px;
    margin-bottom: var(--spacing-2xl);
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.section-head h2 em {
    font-style: italic;
    color: var(--electric-blue);
}

/* Electric accent bar under headings (brand motif) */
.section-head h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin-top: var(--spacing-md);
    background: var(--electric-blue);
    border-radius: var(--radius-full);
}

.section-head .lead {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
}

.section--dark .section-head h2 {
    color: var(--white);
}

.section--dark .section-head .lead,
.section--dark p {
    color: var(--text-on-dark);
}

/* Dotted rule divider (brand motif) */
.dotted-rule {
    border: none;
    border-top: 3px dotted var(--gray-300);
    width: 120px;
    margin: 0;
}

.section--dark .dotted-rule {
    border-top-color: rgba(var(--electric-rgb), 0.6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.9rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: background var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--electric-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
}

.btn-primary:active {
    background: var(--accent-active);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--border-on-dark);
}

.btn-ghost:hover {
    border-color: var(--electric-blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--deep-blue);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* Detection chip (product vernacular) */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.25em 0.6em;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--electric-blue);
    background: rgba(var(--electric-rgb), 0.12);
    border: 1px solid rgba(var(--electric-rgb), 0.45);
    border-radius: var(--radius-sm);
    line-height: 1.4;
    white-space: nowrap;
}

/* Rounded-square mosaic staircase (brand cover motif) */
.mosaic {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(4, var(--mosaic-tile, 72px));
    grid-template-rows: repeat(4, var(--mosaic-tile, 72px));
    gap: 6px;
    pointer-events: none;
}

.mosaic span {
    border-radius: 18%;
}

.mosaic span:nth-child(1) {
    grid-area: 1 / 4;
    background: rgba(255, 255, 255, 0.9);
}

.mosaic span:nth-child(2) {
    grid-area: 2 / 4;
    background: rgba(255, 255, 255, 0.28);
}

.mosaic span:nth-child(3) {
    grid-area: 2 / 3;
    background: rgba(255, 255, 255, 0.14);
}

.mosaic span:nth-child(4) {
    grid-area: 3 / 3;
    background: rgba(255, 255, 255, 0.55);
}

.mosaic span:nth-child(5) {
    grid-area: 3 / 4;
    background: rgba(var(--electric-rgb), 0.65);
}

.mosaic span:nth-child(6) {
    grid-area: 4 / 2;
    background: rgba(255, 255, 255, 0.1);
}

.mosaic span:nth-child(7) {
    grid-area: 4 / 3;
    background: rgba(255, 255, 255, 0.35);
}

.mosaic span:nth-child(8) {
    grid-area: 4 / 4;
    background: rgba(255, 255, 255, 0.85);
}
