/* ============================================================
   PirouzLab — Landing Page Styles
   Aesthetic: Editorial dark — refined industrial studio
   Fonts: Syne (display) + Manrope (body) via Google Fonts
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --bg:            #09090b;
    --surface:       #101014;
    --surface-hover: #141418;
    --border:        #1d1d23;
    --border-hover:  #2b2b35;
    --text-primary:  #edeae2;
    --text-secondary:#7a7a8a;
    --text-dim:      #44444f;
    --accent:        #c49a3c;
    --accent-subtle: rgba(196, 154, 60, 0.10);
    --accent-glow:   rgba(196, 154, 60, 0.05);

    --font-display:  'Syne', sans-serif;
    --font-body:     'Manrope', sans-serif;

    --radius:        6px;
    --transition:    220ms cubic-bezier(0.4, 0, 0.2, 1);
    --container:     1080px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ── Grain texture overlay (CSS-only noise via SVG filter) ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
}

/* Background gradient — subtle radial warm center */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 50% at 50% -10%,
        rgba(196, 154, 60, 0.04) 0%,
        transparent 70%
    );
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
    padding: 2.5rem 0 2rem;
    position: relative;
    z-index: 10;
    animation: fadeInDown 0.6s ease both;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.wordmark {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.header-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Main: let the intro fill the viewport and sit centered ──── */
main {
    flex: 1;
    display: flex;
    align-items: center;
}

/* ── Intro Section ──────────────────────────────────────────── */
.intro {
    width: 100%;
    padding: 4rem 0 6rem;
    animation: fadeInUp 0.7s 0.1s ease both;
}

.intro-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    max-width: 680px;
}

.intro-sub {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    max-width: 480px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s 0.5s ease both;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* ── Keyframe Animations ────────────────────────────────────── */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Responsive: Tablet ─────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .intro {
        padding: 3.5rem 0 4.5rem;
    }
}

/* ── Responsive: Mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .site-header {
        padding: 2rem 0 1.5rem;
    }

    .wordmark {
        font-size: 1.125rem;
    }

    .intro {
        padding: 3rem 0 4rem;
    }

    .intro-headline {
        font-size: 1.75rem;
    }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
