/* ============================================================
   Roejin - Public Marketing Site
   Light, editorial, executive. Gold drawn from the mark itself.
   ============================================================ */

:root {
    --gold:        #b8912f;
    --gold-light:  #d4af5f;
    --gold-pale:   #f4ecd9;
    --ink:         #14181f;
    --ink-soft:    #2b3340;
    --body:        #55606f;
    --muted:       #8b95a3;
    --line:        #e8eaee;
    --paper:       #ffffff;
    --paper-warm:  #fbfaf7;
    --paper-cool:  #f6f7f9;

    --serif: 'Georgia', 'Times New Roman', serif;
    --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

    --shadow-soft: 0 2px 20px rgba(20, 24, 31, 0.05);
    --shadow-lift: 0 18px 48px rgba(20, 24, 31, 0.10);
    --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--body);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; }
h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 400; }
h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.08rem; font-weight: 600; }

.eyebrow {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.lede { font-size: 1.12rem; color: var(--body); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 30px; border-radius: 3px; font-size: 0.93rem; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; transition: all 0.22s ease;
    font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-lift); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff;
}
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(184,145,47,0.30); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-cool); }

.btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-light:hover { background: rgba(255,255,255,0.18); }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.88); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: 78px; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo span {
    font-family: var(--serif); font-size: 1.28rem; color: var(--ink);
    letter-spacing: 0.16em; font-weight: 400;
}
.nav-links { display: flex; gap: 32px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--body); transition: color 0.18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin-bottom: 34px; font-size: 1.16rem; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-assurance { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-assurance div { font-size: 0.85rem; color: var(--muted); }
.hero-assurance strong { display: block; color: var(--ink); font-size: 1.42rem; font-family: var(--serif); font-weight: 400; }

/* Console mock */
.hero-visual { position: relative; }
.mock {
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: var(--shadow-lift); overflow: hidden;
}
.mock-bar {
    background: var(--ink); padding: 11px 15px; display: flex; align-items: center; gap: 8px;
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.mock-bar span { margin-left: 10px; color: #9aa4b2; font-size: 0.72rem; letter-spacing: 0.06em; }
.mock-body { padding: 20px; background: var(--paper-cool); }
.mock-row {
    display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 14px;
    border-radius: 5px; margin-bottom: 9px; box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--gold);
}
.mock-row:nth-child(2) { border-left-color: #2563eb; }
.mock-row:nth-child(3) { border-left-color: #10b981; }
.mock-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
}
.mock-text { flex: 1; min-width: 0; }
.mock-text b { display: block; font-size: 0.83rem; color: var(--ink); font-weight: 600; }
.mock-text small { font-size: 0.73rem; color: var(--muted); }
.mock-tag {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 3px; background: var(--gold-pale); color: var(--gold);
}

.hero-float {
    position: absolute; bottom: -26px; left: -26px;
    background: #fff; border-radius: 6px; padding: 15px 19px;
    box-shadow: var(--shadow-lift); border: 1px solid var(--line);
    display: flex; align-items: center; gap: 13px;
}
.hero-float .dot {
    width: 9px; height: 9px; border-radius: 50%; background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.16);
}
.hero-float b { font-size: 0.83rem; color: var(--ink); display: block; }
.hero-float small { font-size: 0.72rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-warm { background: var(--paper-warm); }
.section-cool { background: var(--paper-cool); }
.section-dark { background: var(--ink); color: #aeb7c4; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }

/* ---------- Capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 26px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px 30px;
    transition: all 0.26s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card .icon {
    width: 46px; height: 46px; border-radius: 5px; background: var(--gold-pale);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; }
.card ul { list-style: none; margin-top: 16px; }
.card li { font-size: 0.85rem; padding: 5px 0 5px 20px; position: relative; color: var(--body); }
.card li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px; }
.step { position: relative; }
.step .num {
    font-family: var(--serif); font-size: 2.6rem; color: var(--gold-light);
    line-height: 1; margin-bottom: 14px; font-weight: 400;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.split.reverse .split-visual { order: -1; }

.lock-panel {
    background: linear-gradient(160deg, #1a1f28 0%, #262d38 100%);
    border-radius: 8px; padding: 40px; color: #cbd3dd;
}
.lock-flow { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.lock-node {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px; padding: 18px 14px; text-align: center;
}
.lock-node b { display: block; color: #fff; font-size: 0.86rem; margin-bottom: 3px; }
.lock-node small { font-size: 0.72rem; color: #8b95a3; }
.lock-arrow { color: var(--gold-light); font-size: 1.3rem; }
.lock-arrow.blocked { color: #ef4444; }

.lock-line { display: flex; gap: 11px; padding: 9px 0; font-size: 0.87rem; align-items: flex-start; }
.lock-line .yes { color: #4ade80; font-weight: 700; }
.lock-line .no { color: #f87171; font-weight: 700; }

/* ---------- Metrics band ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 44px; text-align: center; }
.metric b {
    display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 400;
    color: var(--gold-light); line-height: 1; margin-bottom: 8px;
}
.metric span { font-size: 0.86rem; color: #9aa4b2; }

/* ---------- Commitments ---------- */
.commitments { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); }
.commitment { background: #fff; padding: 34px 30px; }
.commitment h3 { margin-bottom: 8px; font-size: 1rem; }
.commitment p { font-size: 0.89rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(150deg, var(--ink) 0%, #232c39 100%); padding: 92px 0; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: #a8b1be; max-width: 52ch; margin: 0 auto 34px; font-size: 1.04rem; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- Connect strip ---------- */
.connect-strip {
    background: var(--gold-pale); border-top: 1px solid #ece2cc; border-bottom: 1px solid #ece2cc;
    padding: 30px 0;
}
.connect-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; text-align: center; }
.connect-inner p { font-size: 0.95rem; color: #6b5a2c; }
.connect-inner strong { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #7d8794; padding: 66px 0 34px; font-size: 0.87rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; margin-bottom: 46px; }
.footer-brand img { height: 54px; margin-bottom: 16px; filter: brightness(1.5); }
.footer-brand p { max-width: 34ch; font-size: 0.87rem; }
.footer h4 { color: #fff; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--gold-light); }
.footer-base {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 26px;
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
    .split.reverse .split-visual { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-float { position: static; margin-top: 18px; display: inline-flex; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
        background: #fff; padding: 22px 28px; border-bottom: 1px solid var(--line); gap: 16px;
    }
    .nav-toggle { display: block; }
    .nav-cta .btn-ghost { display: none; }
    .section, .hero { padding: 64px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .lock-flow { flex-direction: column; }
}
