/* ============================================================
   DIME Landing Pages — Premium Editorial Design
   Centred layout, staggered reveals, refined typography
   ============================================================ */

:root {
    --bg: #0a2540;
    --bg-light: #0f3058;
    --text: #f5f0e8;
    --text-muted: rgba(245, 240, 232, 0.55);
    --text-faint: rgba(245, 240, 232, 0.15);
    --accent: #f2ede7;
    --accent-dark: #0a2540;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
}
h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

em { font-style: italic; font-family: 'Playfair Display', Georgia, serif; }

a { color: var(--text); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

.img-reveal {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-reveal.visible { opacity: 1; transform: scale(1); }

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
    font-size: 0.75rem; letter-spacing: 0.18em;
    text-transform: uppercase; opacity: 0.7; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

/* ============================================================
   HERO — Centred, cinematic
   ============================================================ */
.landing-hero {
    min-height: 85vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 12rem 3rem 6rem;
    max-width: 1000px; margin: 0 auto;
}
.landing-hero .label {
    font-size: 0.65rem; letter-spacing: 0.4em;
    text-transform: uppercase; opacity: 0.35; margin-bottom: 2.5rem;
}
.landing-hero h1 { margin-bottom: 2rem; }
.landing-hero h1 em { opacity: 0.5; }
.landing-hero .intro {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    max-width: 620px; line-height: 1.85; opacity: 0.55;
}
.hero-scroll-cue {
    margin-top: 4rem; display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem; opacity: 0.3;
}
.hero-scroll-cue span {
    font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(1.3); }
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
    padding: 6rem 3rem;
    background: var(--accent); color: var(--accent-dark);
    text-align: center;
}
.pull-quote blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    font-weight: 400; max-width: 780px;
    margin: 0 auto; line-height: 1.35;
}
.pull-quote em { font-style: italic; opacity: 0.45; }

/* ============================================================
   IMAGE GRIDS
   ============================================================ */
.img-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.5rem; max-width: 1200px; margin: 0 auto;
    padding: 0 3rem;
    overflow: hidden;
}
.img-grid-3 {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem; padding: 0 3rem;
    max-width: 1200px; margin: 0 auto;
    overflow: hidden;
}
.img-grid-2 img, .img-grid-3 img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.img-grid-2 img { max-height: 380px; min-height: 250px; }
.img-grid-3 img { max-height: 260px; min-height: 180px; }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section {
    padding: 7rem 3rem; max-width: 1100px; margin: 0 auto;
}
.two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: start;
}
.two-col h2 { margin-bottom: 1.5rem; }
.two-col p { opacity: 0.6; line-height: 1.85; margin-bottom: 1rem; font-size: 0.95rem; }

/* ---- Points ---- */
.points {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem; margin-top: 3rem;
}
.point { padding-top: 1.5rem; position: relative; }
.point::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 30px; height: 1px; background: var(--text-faint);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.point.visible::before { width: 100%; }
.point-num {
    font-size: 0.65rem; letter-spacing: 0.25em;
    opacity: 0.3; margin-bottom: 0.75rem; display: block;
}
.point h3 { margin-bottom: 0.75rem; }
.point p { font-size: 0.9rem; opacity: 0.5; line-height: 1.75; }

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem; padding: 5rem 0; margin: 4rem 0; position: relative;
}
.stats-row::before, .stats-row::after {
    content: ''; position: absolute; left: 0; right: 0;
    height: 1px; background: var(--text-faint);
}
.stats-row::before { top: 0; }
.stats-row::after { bottom: 0; }
.stat { text-align: center; }
.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    display: block; margin-bottom: 0.4rem; letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.7rem; letter-spacing: 0.18em;
    text-transform: uppercase; opacity: 0.35;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.landing-clients {
    padding: 3.5rem 0; overflow: hidden;
    border-top: 1px solid var(--text-faint);
    border-bottom: 1px solid var(--text-faint);
}
.landing-clients-label {
    text-align: center; font-size: 0.6rem; letter-spacing: 0.4em;
    text-transform: uppercase; opacity: 0.3; margin-bottom: 1.5rem;
}
.landing-clients-track {
    display: flex; animation: marquee 35s linear infinite; white-space: nowrap;
}
.landing-client-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem; letter-spacing: 0.06em;
    text-transform: uppercase; opacity: 0.5;
    padding: 0 1.5rem; flex-shrink: 0;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   CTA
   ============================================================ */
.landing-cta { padding: 10rem 3rem; text-align: center; }
.landing-cta h2 {
    margin-bottom: 2.5rem; font-size: clamp(2rem, 4vw, 3.5rem);
}
.landing-cta-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1.1rem 3rem;
    border: 1px solid rgba(245, 240, 232, 0.2);
    border-radius: 100px;
    font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text);
}
.landing-cta-btn:hover {
    background: var(--text); color: var(--bg); opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(245, 240, 232, 0.1);
}
.landing-cta-btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.landing-cta-btn:hover svg { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
    padding: 3rem; display: flex; justify-content: space-between;
    align-items: center; border-top: 1px solid var(--text-faint);
    max-width: 1100px; margin: 0 auto;
}
.landing-footer img { height: 22px; width: auto; }
.landing-footer p { font-size: 0.65rem; opacity: 0.25; letter-spacing: 0.05em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .landing-hero { padding: 8rem 1.5rem 4rem; min-height: 70vh; }
    .section { padding: 4rem 1.5rem; }
    .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .pull-quote { padding: 4rem 1.5rem; }
    .landing-cta { padding: 6rem 1.5rem; }
    .landing-footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
    .img-grid-2 { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .img-grid-2 img { max-height: 250px; }
    .img-grid-3 { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .img-grid-3 img { max-height: 220px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; gap: 2.5rem; }
}
