/* ═══════════════════════════════════════════════════════
   BYS INNOVATIONS — DIGITAL FLYER v4
   Matching bysinnovations.com brand identity
   Warm cream · Serif headlines · Restrained corporate
   ═══════════════════════════════════════════════════════ */

:root {
    --cream: #F2F0E8;
    --cream-dark: #E8E6DE;
    --cream-light: #FAF9F6;
    --black: #0D0D0D;
    --gray-900: #1a1a1a;
    --gray-700: #3d3d3d;
    --gray-600: #525252;
    --gray-500: #6b6b6b;
    --gray-400: #8a8a8a;
    --gray-300: #b0b0b0;
    --gray-200: #d4d2cc;
    --gray-100: #e8e6e1;
    --white: #ffffff;

    --teal: #2C7A7B;
    --teal-bg: #e6f5f5;
    --coral: #E8927C;
    --coral-bg: #fdf0ed;
    --amber: #c07a18;
    --amber-bg: #fef5e5;
    --green: #2f7a3f;
    --green-bg: #edf7ef;
    --blue: #2562b0;
    --blue-bg: #edf3fb;

    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --section-y: clamp(72px, 10vw, 128px);
    --shadow: 0 1px 3px rgba(13,13,13,0.06);
    --shadow-md: 0 4px 12px rgba(13,13,13,0.06);
    --shadow-lg: 0 8px 30px rgba(13,13,13,0.07);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    background: var(--cream);
    color: var(--gray-700);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--black); line-height: 1.2; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }

/* ── Pills ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gray-600);
    background: var(--cream-dark);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
}
.pill-sm { font-size: 0.72rem; padding: 4px 14px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-dark {
    background: var(--black);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--gray-900);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-light {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-light:hover {
    background: var(--cream-light);
    border-color: var(--gray-300);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(242, 240, 232, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}
.nav.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 28px; }
.nav-wordmark { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--gray-600); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--gray-500); transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.nav-link-site { display: flex; align-items: center; gap: 4px; }
.nav-cta {
    background: var(--black) !important; color: var(--white) !important;
    padding: 8px 20px !important; border-radius: var(--radius-full) !important;
    transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--gray-900) !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gray-200); border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--gray-600); }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero { padding: 120px 0 0; }
.hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 20px; }
.hero-text > p { font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-text > p strong { color: var(--gray-700); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

/* Stats Bar */
.stats-bar {
    display: flex; align-items: center; justify-content: center;
    padding: 28px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0; flex-wrap: wrap;
}
.stat { text-align: center; padding: 0 clamp(16px, 3vw, 48px); }
.stat-val { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; color: var(--black); }
.stat-lbl { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.stat-div { width: 1px; height: 36px; background: var(--gray-200); }

/* ══════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════ */
.section { padding: var(--section-y) 0; }
.section-warm { background: var(--cream-light); }

.section-head {
    text-align: center; margin-bottom: 48px;
    opacity: 0; transform: translateY(16px); transition: all 0.6s ease;
}
.section-head.visible { opacity: 1; transform: none; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.section-head > p { font-size: 1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   BENTO CARDS
   ══════════════════════════════════════════════════════════ */
.bento { display: grid; gap: 20px; }
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-2 { grid-template-columns: repeat(2, 1fr); }

.bento-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.bento-card.visible { opacity: 1; transform: none; }
.bento-card:hover { box-shadow: var(--shadow-md); }

.bento-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--teal-bg); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.bento-icon-amber { background: var(--amber-bg); color: var(--amber); }
.bento-icon-coral { background: var(--coral-bg); color: var(--coral); }

.bento-card h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--black); }
.bento-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.65; }

.bento-card-lg { padding: 40px; }
.card-tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--teal); display: block; margin-bottom: 12px; letter-spacing: 0.03em; }

.bento-dark {
    background: var(--black); border-color: var(--gray-900);
}
.bento-dark h3 { color: var(--white); }
.bento-dark .card-tag { color: var(--coral); }
.bento-dark p { color: var(--gray-400); }
.bento-dark .check-list li { color: var(--gray-300); }
.bento-dark .check-list i { color: var(--teal); }
.bento-dark:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.check-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-600); }
.check-list i { color: var(--green); flex-shrink: 0; }

/* ── Compliance Strip ── */
.compliance-strip {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    padding: 24px; margin-top: 40px;
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    background: var(--white);
    opacity: 0; transform: translateY(12px); transition: all 0.5s ease;
}
.compliance-strip.visible { opacity: 1; transform: none; }
.cs-item { display: flex; align-items: center; gap: 8px; padding: 4px clamp(8px, 1.5vw, 20px); font-size: 0.8rem; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.cs-item i { color: var(--gray-400); }
.cs-sep { width: 1px; height: 18px; background: var(--gray-200); }

/* ── Diagram ── */
.diagram-frame {
    margin-bottom: 40px; border-radius: var(--radius-xl);
    overflow: hidden; border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(16px); transition: all 0.6s ease;
}
.diagram-frame.visible { opacity: 1; transform: none; }
.diagram-img { width: 100%; }

/* ══════════════════════════════════════════════════════════
   METRICS
   ══════════════════════════════════════════════════════════ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.metric {
    text-align: center; padding: 36px 16px;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    opacity: 0; transform: translateY(12px); transition: all 0.5s ease;
}
.metric.visible { opacity: 1; transform: none; }
.metric:hover { box-shadow: var(--shadow-md); }
.m-val { display: block; font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em; }
.m-lbl { font-size: 0.82rem; color: var(--gray-500); line-height: 1.4; }

/* ── Case Study ── */
.case {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(16px); transition: all 0.6s ease;
}
.case.visible { opacity: 1; transform: none; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.case-text { padding: 44px; }
.case-text h3 { font-size: 1.35rem; margin-bottom: 14px; }
.case-text > p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 10px; }
.case-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.kpi { padding: 14px 18px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--cream-light); }
.kpi-val { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.kpi span:last-child { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }

blockquote {
    border-left: 3px solid var(--teal);
    padding-left: 18px; font-style: italic;
    font-size: 0.9rem; color: var(--gray-600); line-height: 1.65;
}
blockquote cite { display: block; font-style: normal; font-weight: 600; color: var(--gray-700); margin-top: 8px; font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════════
   PROCESS
   ══════════════════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.step {
    opacity: 0; transform: translateY(12px); transition: all 0.5s ease;
}
.step.visible { opacity: 1; transform: none; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--black); color: var(--white);
    font-family: var(--font-serif); font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.step-time {
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
    color: var(--teal); background: var(--teal-bg);
    padding: 2px 10px; border-radius: var(--radius-full);
    display: inline-block; margin-bottom: 6px;
}
.step h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px; background: var(--black); border-radius: var(--radius-xl); }
.pillar {
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateY(10px); transition: all 0.5s ease;
}
.pillar.visible { opacity: 1; transform: none; }
.pillar i { color: var(--teal); }
.pillar strong { color: var(--white); font-size: 0.95rem; }
.pillar p { font-size: 0.82rem; color: var(--gray-400); line-height: 1.55; }

/* ══════════════════════════════════════════════════════════
   CLIENT LOGOS
   ══════════════════════════════════════════════════════════ */
.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px 18px;
    padding: 12px 0 0;
}
.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}
.client-logo.visible { opacity: 1; transform: none; }
.client-logo:hover {
    color: var(--black);
}
.logo-mark {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--gray-400);
    text-transform: uppercase;
}
.client-logo span {
    text-align: center;
    color: var(--black);
}

/* ══════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════ */
.cta-section { background: var(--black); padding: var(--section-y) 0; }
.cta { text-align: center; max-width: 580px; margin: 0 auto; }
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.cta > p { color: var(--gray-400); font-size: 1.02rem; line-height: 1.7; margin-bottom: 32px; }
.cta .btn-dark { background: var(--white); color: var(--black); }
.cta .btn-dark:hover { background: var(--cream); }
.cta-links { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.cta-link { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--gray-400); }
a.cta-link:hover { color: var(--white); }
.cta-dot { color: var(--gray-600); }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer { padding: 28px 0; border-top: 1px solid var(--gray-200); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 22px; }
.footer-left span { font-size: 0.78rem; color: var(--gray-400); }
.footer-right { display: flex; align-items: center; gap: 8px; }
.footer-right a { font-size: 0.82rem; color: var(--gray-500); font-weight: 500; transition: color 0.2s; }
.footer-right a:hover { color: var(--black); }
.footer-sep { color: var(--gray-300); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; gap: 36px; }
    .hero-text { text-align: center; }
    .hero-text > p { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .bento-3, .bento-2 { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .case { grid-template-columns: 1fr; }
    .case-photo img { min-height: 220px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: 1fr; }
    .client-logos { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .compliance-strip { gap: 8px; }
    .cs-sep { display: none; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--cream); padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); gap: 10px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding-top: 96px; }
    .hero h1 { font-size: 1.8rem; }
    .stats-bar { flex-direction: column; gap: 16px; }
    .stat-div { width: 40px; height: 1px; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .case-kpis { grid-template-columns: 1fr 1fr; }
    .client-logos { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-right { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .metrics { grid-template-columns: 1fr; }
    .case-text { padding: 24px; }
}
