:root {
    --font-family: "Space Grotesk", "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Georgia", serif;

    --bg-primary: #f1ede3;
    --bg-secondary: #fbf8f2;
    --bg-card: #fdfbf6;

    --text-primary: #1c1a16;
    --text-secondary: #5b564e;
    --text-accent: #c6562b;

    --btn-primary: #c6562b;
    --btn-primary-hover: #a64522;

    --border: rgba(88, 73, 54, 0.16);
    --border-strong: rgba(198, 86, 43, 0.34);

    --shadow-soft: 0 14px 30px rgba(30, 24, 12, 0.11);
    --shadow-strong: 0 24px 60px rgba(30, 24, 12, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--text-primary);
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 214, 170, 0.34), transparent 42%),
        radial-gradient(circle at 90% 4%, rgba(255, 236, 214, 0.66), transparent 48%),
        linear-gradient(130deg, rgba(255, 251, 244, 0.85), rgba(239, 232, 218, 0.9)),
        var(--bg-primary);
}

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

.landing-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.btn {
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    padding: 13px 24px;
    color: #fff;
    background: var(--btn-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--btn-primary-hover);
}

.btn-ghost {
    padding: 11px 20px;
    color: #f7efdf;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 248, 242, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.landing-header .landing-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.24rem, 2vw, 1.6rem);
    letter-spacing: 0.2px;
}

.landing-brand img {
    width: 54px;
    height: 40px;
    object-fit: contain;
}

.brand-ark {
    color: var(--text-accent);
}

.landing-nav {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.landing-nav a {
    position: relative;
}

.landing-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--text-accent);
    transition: width 0.2s ease;
}

.landing-nav a:hover::after {
    width: 100%;
}

.btn-login {
    padding: 11px 22px;
    color: #fff;
    background: var(--btn-primary);
}

.btn-login:hover {
    background: var(--btn-primary-hover);
}

.hero-section {
    padding: clamp(34px, 7vw, 90px) 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
}

.hero-kicker {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-accent);
}

.hero-title-line {
    margin: 0;
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.15vw, 2.285rem);
    line-height: 1.08;
}

.hero-title-row {
    display: block;
    color: var(--text-primary);
}

.hero-title-row-dynamic {
    display: inline-flex;
    align-items: baseline;
    gap: 0.32em;
    width: max-content;
    margin-top: 4px;
}

.hero-title-static {
    white-space: nowrap;
}

.hero-title-rotator {
    display: inline-block;
    height: 1.15em;
    min-width: 4.2ch;
    overflow: hidden;
    color: var(--text-accent);
}

.rotator-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    animation: rotateCopy 7.5s ease-in-out infinite;
}

@keyframes rotateCopy {
    0%, 22% { transform: translateY(0); }
    30%, 52% { transform: translateY(-1.15em); }
    60%, 82% { transform: translateY(-2.3em); }
    90%, 100% { transform: translateY(-3.45em); }
}

.hero-description {
    margin: 16px 0 24px;
    max-width: 60ch;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-network {
    position: relative;
    min-height: 350px;
    border-radius: 22px;
    border: 1px solid rgba(198, 86, 43, 0.16);
    background: rgba(255, 252, 246, 0.85);
    overflow: hidden;
}

.flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.flow-path {
    fill: none;
    stroke: rgba(198, 86, 43, 0.68);
    stroke-width: 0.9;
    stroke-dasharray: 2.2 4.4;
    stroke-linecap: round;
    animation: dashFlow 4.8s linear infinite;
}

.flow-path-primary {
    stroke-width: 1.05;
}

@keyframes dashFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -22; }
}

.flow-inline-label {
    position: absolute;
    left: 50%;
    top: 17.5%;
    transform: translate(-50%, -50%);
    padding: 3px 8px;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a3b1d;
    background: rgba(255, 238, 218, 0.92);
    border: 1px solid rgba(198, 86, 43, 0.22);
    pointer-events: none;
}

.flow-marker {
    fill: #c6562b;
    filter: drop-shadow(0 0 4px rgba(198, 86, 43, 0.5));
}

.flow-node {
    position: absolute;
    width: 122px;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.flow-node-icon {
    margin: 0 auto 10px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    background: #fff;
    box-shadow: 0 8px 18px rgba(198, 86, 43, 0.12);
}

.flow-node-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--text-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-node h3 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.flow-node.is-active {
    transform: translate(-50%, -50%) scale(1.04);
    filter: drop-shadow(0 0 8px rgba(198, 86, 43, 0.34));
}

.flow-node.is-active .flow-node-icon {
    border-color: rgba(198, 86, 43, 0.78);
    box-shadow: 0 12px 24px rgba(198, 86, 43, 0.24);
}

.flow-node-restaurant { left: 18%; top: 22%; }
.flow-node-wholesaler { left: 82%; top: 22%; }
.flow-node-warehouse { left: 82%; top: 76%; }
.flow-node-logistics { left: 18%; top: 76%; }

.metric-section {
    padding: 22px 0 20px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(253, 251, 246, 0.88);
    padding: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    margin-bottom: 10px;
    background: rgba(198, 86, 43, 0.13);
}

.metric-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.metric-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.section-heading {
    margin-bottom: 18px;
}

.section-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-accent);
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.feature-section {
    padding: 42px 0 26px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 231, 206, 0.68), transparent 36%),
        rgba(253, 251, 246, 0.9);
    padding: 24px;
    box-shadow: 0 8px 20px rgba(30, 24, 12, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: rgba(198, 86, 43, 0.13);
    border: 1px solid rgba(198, 86, 43, 0.28);
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--text-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.22rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.detail-section {
    padding: 30px 0 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-panel {
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(252, 248, 240, 0.86);
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.detail-panel h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.26rem;
}

.detail-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-section {
    padding: 34px 0 24px;
}

.faq-wrap {
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(253, 251, 246, 0.8);
    padding: 28px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffdf9;
    padding: 12px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-list p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    padding: 26px 0 44px;
}

.cta-card {
    border-radius: 30px;
    border: 1px solid rgba(198, 86, 43, 0.22);
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 234, 212, 0.5), transparent 42%),
        radial-gradient(circle at 90% 80%, rgba(255, 239, 219, 0.75), transparent 45%),
        #fffaf1;
    box-shadow: var(--shadow-soft);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cta-card h2 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.cta-card p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}

.policy-main {
    padding: 34px 0 56px;
}

.policy-card {
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(253, 251, 246, 0.9);
    box-shadow: var(--shadow-soft);
    padding: clamp(20px, 4vw, 36px);
}

.policy-card h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3rem);
}

.policy-card h2 {
    margin: 22px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.policy-card p {
    margin: 0 0 10px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.landing-footer {
    border-top: 1px solid rgba(88, 73, 54, 0.16);
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 226, 196, 0.4), transparent 42%),
        rgba(251, 245, 234, 0.92);
    padding: 34px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
    gap: 20px;
    align-items: start;
}

.footer-brand-col small {
    display: block;
    color: var(--text-secondary);
    line-height: 1.55;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand img {
    width: 54px;
    height: 40px;
    object-fit: contain;
}

.footer-brand-text {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links-col h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.93rem;
}

.footer-links-col a:hover {
    color: var(--text-accent);
}

@media (hover: hover) and (pointer: fine) {
    .metric-card:hover,
    .feature-card:hover,
    .detail-panel:hover {
        transform: translateY(-5px);
        border-color: rgba(198, 86, 43, 0.35);
        box-shadow: 0 16px 28px rgba(30, 24, 12, 0.14);
    }

    .feature-card:hover .feature-icon {
        transform: translateY(-2px) scale(1.03);
        background: rgba(198, 86, 43, 0.2);
        border-color: rgba(198, 86, 43, 0.45);
    }

    .faq-list details:hover {
        transform: translateY(-2px);
        border-color: rgba(198, 86, 43, 0.3);
        box-shadow: 0 10px 20px rgba(30, 24, 12, 0.09);
    }

    .cta-card:hover {
        transform: translateY(-4px);
        border-color: rgba(198, 86, 43, 0.34);
        box-shadow: 0 20px 38px rgba(30, 24, 12, 0.18);
    }
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 24px));
    z-index: 45;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(31, 26, 20, 0.95);
    color: #f9f5ee;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-link {
    color: #ffd8b8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-link:hover {
    color: #ffe7d2;
}

.cookie-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-status {
    color: #f8dabb;
    font-size: 0.8rem;
}

.cookie-manage {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 42;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 600;
    background: #1f1b15;
    color: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.cookie-manage[hidden] {
    display: none !important;
}

.reveal-card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(2px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        filter 0.55s ease;
    transition-delay: var(--delay, 0s);
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-title-line {
        font-size: clamp(1.7rem, 5.2vw, 2.9rem);
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .landing-header .landing-shell {
        padding: 12px 0;
    }

    .landing-nav {
        display: none;
    }

    .btn-login {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .hero-title-line {
        font-size: clamp(1.1rem, 5.2vw, 1.65rem);
    }

    .hero-title-row-dynamic {
        gap: 0.28em;
    }

    .flow-network {
        min-height: 420px;
    }

    .flow-node {
        width: 108px;
    }

    .flow-node-icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .flow-node-icon svg {
        width: 28px;
        height: 28px;
    }

    .flow-inline-label {
        top: 18.5%;
        font-size: 0.68rem;
        padding: 3px 7px;
    }

    .flow-node-restaurant { left: 18%; top: 18%; }
    .flow-node-wholesaler { left: 82%; top: 18%; }
    .flow-node-warehouse { left: 82%; top: 78%; }
    .flow-node-logistics { left: 18%; top: 78%; }

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

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

    .policy-main {
        padding: 24px 0 34px;
    }

    .faq-wrap {
        padding: 18px;
        border-radius: 20px;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions .btn {
        flex: 1 1 48%;
        min-height: 40px;
    }

    .cookie-manage {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
