:root {
    --bg: #F7F5F2;
    --bg-raised: #EFECE8;
    --surface: #EAE7E3;
    --surface-hi: #E2DED9;
    --border: #D6D1CB;
    --text: #2A2520;
    --muted: #7A726A;
    --faint: #A89F97;
    --accent: #C47B2B;
    --accent-soft: #F0E2CC;
    --accent-hover: #AA6720;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/*Page Transition System*/

/*pageEnter: used on content sections — NOT body (transform on body breaks position:fixed)*/
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes navMorphIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

nav {
    animation: navMorphIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

html {
    scroll-behavior: smooth;
}

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

.serif {
    font-family: 'Source Serif 4', serif;
}

.serif em {
    font-style: italic;
    font-weight: 400;
}

section {
    position: relative;
    scroll-margin-top: 90px;
}

.inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/*Nav Liquid Glass*/
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 780px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.07);
    border-radius: 100px;
    padding: 8px 10px 8px 24px;
    transition: all .35s var(--ease-out);
}

nav:hover {
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.10);
}

nav .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

nav .links {
    display: flex;
    gap: 4px;
}

nav .links a {
    display: inline-block;
    padding: 8px 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    transition: background .25s ease, color .25s ease;
}

nav .links a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

nav .cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #FFF8F0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 100px;
    transition: background .25s ease, transform .28s var(--ease-spring), box-shadow .25s ease;
    will-change: transform;
}

nav .cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(196, 123, 43, 0.32);
    background: var(--accent-hover);
}

/*Hero Section*/
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    animation: pageEnter 0.65s 0.08s var(--ease-spring) both;
}

.hero-eyebrow {
    color: var(--faint);
    font-size: 13px;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 15ch;
    margin-bottom: 24px;
}

.hero p {
    color: var(--muted);
    font-size: 18.5px;
    line-height: 1.6;
    max-width: 44ch;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent);
    color: #FFF8F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15.5px;
    padding: 14px 24px;
    border-radius: 100px;
    transition: transform .28s var(--ease-spring), box-shadow .25s ease, background .2s ease;
    will-change: transform;
    box-shadow: 0 6px 20px rgba(196, 123, 43, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(196, 123, 43, 0.32);
    background: var(--accent-hover);
}

.btn-primary .arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}


.hero-announce {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    margin-top: 4px;
}

.hero-announce-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1BAB88;
    box-shadow: 0 0 0 0 rgba(27, 171, 136, 0.4);
    animation: pulse-green 2.2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(27, 171, 136, 0.4); }
    70%  { box-shadow: 0 0 0 7px rgba(27, 171, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(27, 171, 136, 0); }
}

.hero-announce-link {
    color: #1BAB88;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.hero-announce-link:hover {
    color: #169374;
    text-decoration: underline;
}


.hero-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

/*Live Stat Strip*/
.stat-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--faint);
    font-size: 14px;
}

.stat-strip .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(196, 123, 43, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 123, 43, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(196, 123, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 123, 43, 0);
    }
}

.stat-strip strong {
    color: var(--text);
    font-weight: 600;
}

.hero-visual {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(38vw, 380px);
    aspect-ratio: 1;
    opacity: 0;
    animation: riseIn 1.1s .3s ease-out forwards;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(-40%) scale(.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.glyph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease-out;
    will-change: transform;
}

.glyph svg {
    width: 100%;
    height: 100%;
}

/*Section Shell*/
.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.eyebrow {
    color: var(--faint);
    font-size: 13px;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.15;
    font-weight: 500;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin-top: 16px;
    max-width: 52ch;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/*Panel Features*/
.panel-section {
    padding: 80px 0 100px;
}

.panel {
    background: rgba(239, 236, 232, 0.75);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(214, 209, 203, 0.85);
    border-radius: 24px;
    padding: 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.6);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 8px;
}

.feature {
    background: var(--bg-raised);
    padding: 32px 28px;
    transition: background .25s ease, transform .25s var(--ease-spring);
}

.feature:hover {
    background: var(--surface-hi);
    transform: translateY(-2px);
}

.feature .mark {
    font-size: 20px;
    margin-bottom: 18px;
    display: block;
    color: var(--accent);
    transition: transform .35s var(--ease-spring);
}

.feature:hover .mark {
    transform: rotate(90deg) scale(1.15);
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/*How It Works Steps*/
.steps-section {
    padding: 80px 0 100px;
}

.steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.steps .step:last-child {
    border-bottom: 1px solid var(--border);
}

.step .num {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    color: var(--faint);
    font-size: 22px;
    transition: color .2s ease;
}

.step.active .num {
    color: var(--accent);
}

.step h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step h3 .plus {
    color: var(--faint);
    font-size: 16px;
    font-weight: 400;
    transition: transform .25s ease;
}

.step.active h3 .plus {
    transform: rotate(45deg);
    color: var(--accent);
}

.step p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 56ch;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}

.step.active p {
    max-height: 120px;
    opacity: 1;
    margin-top: 4px;
}

/*Sample Wall Preview*/
.wall-preview {
    padding: 80px 0 100px;
}

.quote-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quote-card {
    background: rgba(234, 231, 227, 0.70);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(214, 209, 203, 0.85);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: transform .3s var(--ease-spring), border-color .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.55);
}

.quote-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 123, 43, 0.3);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.65);
}

.quote-body-wrapper {
    position: relative;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(214, 209, 203, 0.55);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.quote-mark {
    font-family: 'Source Serif 4', serif;
    font-size: 42px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.25;
    position: absolute;
    user-select: none;
}

.quote-mark.left {
    top: 8px;
    left: 12px;
}

.quote-mark.right {
    bottom: -8px;
    right: 14px;
}

.quote-body-wrapper p {
    font-family: 'Source Serif 4', serif;
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.quote-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 13px;
    gap: 12px;
    flex-wrap: wrap;
}

.poster-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poster-addr {
    font-family: monospace;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
}

.poster-separator {
    color: var(--faint);
    font-size: 13.5px;
    font-weight: 700;
    opacity: 0.5;
}

.poster-time {
    color: var(--faint);
    font-size: 12.5px;
}

.reaction-wrapper {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
}

.reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(196, 123, 43, 0.08);
    border: 1px solid rgba(196, 123, 43, 0.2);
    padding: 5px 12px;
    border-radius: 100px;
    color: var(--text);
    font-weight: 600;
}

/*Try It Demo Card*/
.try-it {
    margin-top: 28px;
    border: 1px solid rgba(214, 209, 203, 0.85);
    border-radius: 18px;
    padding: 24px;
    background: rgba(247, 245, 242, 0.60);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 4px 16px rgba(0,0,0,0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.try-it:focus-within {
    border-color: rgba(196, 123, 43, 0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 0 3px rgba(196,123,43,0.10);
}

.try-it-label {
    font-size: 12px;
    color: var(--faint);
    margin-bottom: 12px;
}

.try-it textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: 'Source Serif 4', serif;
    font-size: 17px;
    line-height: 1.5;
    padding: 0 0 12px;
    min-height: 50px;
    resize: none;
    outline: none;
}

.try-it textarea::placeholder {
    color: var(--faint);
}

.try-it-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.try-it-footer span {
    font-size: 12px;
    color: var(--faint);
}

.preview-card {
    margin-top: 24px;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .35s ease, max-height .35s ease, margin .35s ease;
}

.preview-card.show {
    opacity: 1;
    max-height: 400px; /* enough to fit */
    margin-top: 32px;
}

/*Closing CTA Section*/
.closing {
    padding: 100px 0 140px;
    text-align: center;
}

.closing h2 {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.15;
    font-weight: 500;
    max-width: 16ch;
    margin: 0 auto 28px;
}

.closing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.closing .btn-primary {
    margin: 0 auto;
}

.btn-scan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    background: #1BAB88;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 20px rgba(27, 171, 136, 0.25);
}

.btn-scan:hover {
    background: #179a79;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27, 171, 136, 0.35);
}

footer {
    border-top: 1px solid rgba(214, 209, 203, 0.7);
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    background: rgba(247, 245, 242, 0.55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

footer img {
    flex-shrink: 0;
}

.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent) !important;
}

/* Ecosystem & Partnership Section */
.ecosystem-section {
    padding-top: 80px;
    padding-bottom: 60px;
}

.ecosystem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.eco-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.28s var(--ease-spring), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.eco-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #1BAB88;
}

.eco-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.eco-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.eco-icon-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.eco-badge {
    font-size: 12px;
    font-weight: 600;
    color: #1BAB88;
    background: rgba(27, 171, 136, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(27, 171, 136, 0.2);
}

.eco-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.eco-card p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.eco-link-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1BAB88;
}

.eco-link-label .arrow {
    transition: transform 0.2s ease;
}

.eco-card:hover .eco-link-label .arrow {
    transform: translate(2px, -2px);
}

@media (max-width: 860px) {
    .hero-visual {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .quote-row {
        grid-template-columns: 1fr;
    }

    .ecosystem-cards {
        grid-template-columns: 1fr;
    }

    nav .links {
        display: none;
    }

    .panel {
        padding: 32px 24px;
    }
}
