
/* =========================
   CORE DESIGN TOKENS
========================= */

:root {
    --bg: #0a0a0a;
    --panel: #111;
    --panel-2: #151515;

    --border: #222;
    --border-soft: rgba(255,255,255,0.08);

    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.65);

    --accent: rgba(255,255,255,0.92);
    --accent-soft: rgba(255,255,255,0.08);
    --accent-line: rgba(255,255,255,0.14);

    --radius: 12px;
    --radius-soft: 10px;

    --transition: 0.25s ease;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   TYPOGRAPHY SYSTEM
========================= */

h1, h2, h3 {
    letter-spacing: -0.5px;
    font-weight: 600;
    color: var(--text);
}

h1 {
    letter-spacing: -1px;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

/* =========================
   LINKS (ENGINEERED STYLE)
========================= */

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    opacity: 0.85;
}

/* subtle underline system */
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: var(--border-soft);
    transition: var(--transition);
}

a:hover::after {
    width: 100%;
}

/* =========================
   MAIN LAYOUT SYSTEM
========================= */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* =========================
   SECTION SYSTEM (IMPROVED RHYTHM)
========================= */

section {
    margin-bottom: 90px;
}

/* stronger section hierarchy option */
.section-block {
    padding-top: 60px;
    border-top: 1px solid var(--border-soft);
}

/* =========================
   HERO (REFINED IDENTITY)
========================= */

.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
}

/* subtle engineering marker line */
.hero h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 1px;
    background: var(--border-soft);
    margin: 18px auto 0;
}

/* =========================
   CARDS (ENGINEERED SURFACE SYSTEM)
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    padding: var(--space-5);

    transition: 0.25s ease;
}

/* top micro highlight (industrial feel) */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-soft);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.25);
}

/* =========================
   BUTTON (ENGINEERED UI)
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    border-radius: var(--radius-soft);
    border: 1px solid var(--border);

    background: transparent;
    color: var(--text);

    transition: var(--transition);

    font-weight: 600;
    letter-spacing: 0.2px;
}

.btn:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

/* =========================
   CTA SECTION
========================= */

.cta-section {
    text-align: center;
}

/* =========================
   UTILITIES
========================= */

.text-center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

/* =========================
   MOTION SYSTEM (GLOBAL FEEL)
========================= */

:root {
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* global smooth transitions */
* {
    transition-timing-function: var(--ease-out);
}

/* reduce “jumpy hover feel” */
a, button, .card, .btn {
    transition: transform 0.25s var(--ease-out),
                opacity 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out),
                background 0.25s var(--ease-out);
}

/* =========================
   SPACING SYSTEM (VISUAL RHYTHM CORE)
========================= */

:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 40px;
    --space-6: 64px;
    --space-7: 96px;
}

/* =========================
   GLOBAL SECTION RHYTHM RULE
========================= */

section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

/* prevent double spacing with first section */
section:first-child {
    padding-top: var(--space-6);
}

/* =========================
   VISUAL SEPARATION SYSTEM
========================= */

.section-divider {
    margin-top: var(--space-6);
    border-top: 1px solid var(--border-soft);
}

/* =========================
   TEXT HIERARCHY TIGHTENING
========================= */

h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
    letter-spacing: -1px;
    font-weight: 600;
    line-height: 1.05;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
}

p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 70ch;
}

/* =========================
   SPATOLA VISUAL SIGNATURE LAYER
========================= */

/* stronger surface definition */
:root {
    --surface-glow: rgba(255,255,255,0.04);
}

/* =========================
   GLOBAL SURFACE LANGUAGE
========================= */

.card,
.btn,
.lang-menu {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.01)
    );
}

/* =========================
   BORDER LANGUAGE (ENGINEERING STYLE)
========================= */

.card,
.btn,
.lang-menu,
nav {
    border: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   HOVER PHILOSOPHY (CONTROLLED MOVEMENT)
========================= */

.card:hover,
.btn:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* =========================
   HERO VISUAL AUTHORITY
========================= */

.hero h1 {
    position: relative;
}

/* subtle “engineering axis line” */
.hero h1::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;

    width: 90px;
    height: 1px;

    background: rgba(255,255,255,0.12);
}

/* =========================
   SCROLL EXPERIENCE LAYER
========================= */

/* smoother perceived motion */
html {
    scroll-behavior: smooth;
}

/* better scroll rhythm */
section {
    scroll-margin-top: 100px;
}

/* soft fade-in baseline for sections */
section {
    opacity: 0;
    transform: translateY(10px);
    animation: sectionIn 0.6s ease forwards;
}

/* stagger effect (natural flow) */
section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.10s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.20s; }
section:nth-child(5) { animation-delay: 0.25s; }

@keyframes sectionIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   FINAL SPACING POLISH LAYER
========================= */

/* unify vertical rhythm */
section {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* prevent excessive first section gap */
section:first-child {
    padding-top: 70px;
}

/* tighter heading hierarchy consistency */
h1 {
    line-height: 1.05;
}

h2 {
    line-height: 1.2;
}

h3 {
    line-height: 1.3;
}

/* reduce visual noise in text blocks */
p {
    letter-spacing: 0.1px;
}

.legal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.legal-box {
    background: #111;
    color: white;
    padding: 30px;
    max-width: 420px;
    border-radius: 10px;
    text-align: center;
}

.legal-box a {
    color: #aaa;
    display: block;
    margin: 5px 0;
}

.legal-box button {
    margin: 10px;
    padding: 10px 15px;
    cursor: pointer;
}