/* ===========================
   Open Food Chain — Style
   =========================== */

:root {
    --bg:        #0a0e0d;
    --bg-2:      #111714;
    --bg-3:      #161c19;
    --bg-card:   #1a211d;
    --border:    #2a342e;
    --green:     #3ecf6c;
    --green-dim: #2a9e50;
    --green-glow:rgba(62,207,108,0.12);
    --text:      #e8ede9;
    --text-muted:#8fa395;
    --text-dim:  #5e7066;
    --white:     #ffffff;
    --radius:    12px;
    --radius-lg: 20px;
    --font-body: 'Inter', sans-serif;
    --font-head: 'Syne', sans-serif;
    --transition:0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }

.btn--primary {
    background: var(--green);
    color: #0a0e0d;
    border-color: var(--green);
}
.btn--primary:hover {
    background: #4ee07a;
    border-color: #4ee07a;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--green-dim);
    color: var(--green);
}

/* ---- Section shared ---- */
section { padding: 100px 0; }

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
}

/* ---- Nav ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,14,13,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a:not(.btn) {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(62,207,108,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero__tag {
    display: inline-block;
    background: rgba(62,207,108,0.1);
    border: 1px solid rgba(62,207,108,0.25);
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero__title {
    font-family: var(--font-head);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--white);
    margin-bottom: 24px;
}

.hero__sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.65;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 56px;
}

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

.hero__trust span {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__trust-logos {
    display: flex;
    gap: 32px;
    align-items: center;
    opacity: 0.45;
    filter: grayscale(1);
    min-height: 28px;
}

/* ---- QR Visual ---- */
.qr-visual {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 0;
}

.qr-visual__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Phone mockup */
.phone-mockup {
    width: 260px;
    margin: 0 auto;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-screen {
    background: var(--bg);
    border-radius: 24px;
    overflow: hidden;
    min-height: 440px;
    padding: 20px 16px;
}

.journey-card__header {
    margin-bottom: 24px;
}

.journey-card__badge {
    display: inline-block;
    background: rgba(62,207,108,0.15);
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
    border: 1px solid rgba(62,207,108,0.2);
}

.journey-card__product {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.journey-card__brand {
    font-size: 12px;
    color: var(--text-muted);
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.journey-step {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    position: relative;
}

.journey-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 14px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.journey-step.completed:not(:last-child)::before {
    background: var(--green-dim);
}

.journey-step__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg-3);
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.journey-step.completed .journey-step__dot {
    background: var(--green);
    border-color: var(--green);
}

.journey-step__content strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.journey-step__content span {
    font-size: 11px;
    color: var(--text-muted);
}

.journey-certs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(62,207,108,0.08);
    border: 1px solid rgba(62,207,108,0.2);
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

/* QR text column */
.qr-visual__text h2 {
    font-family: var(--font-head);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.qr-visual__text > p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 36px;
    line-height: 1.65;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-list__icon {
    color: var(--green);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.feature-list p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ---- How it works ---- */
.how-it-works { background: var(--bg); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 48px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    transition: var(--transition);
}

.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.step:hover { background: var(--bg-3); border-color: var(--green-dim); }

.step__number {
    font-family: var(--font-head);
    font-size: 48px;
    font-weight: 800;
    color: rgba(62,207,108,0.15);
    line-height: 1;
    margin-bottom: 20px;
}

.step h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.step p { font-size: 15px; color: var(--text-muted); }

.how-it-works__cta { text-align: center; }

/* ---- Certificates ---- */
.certificates {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--green-dim);
    background: var(--bg-3);
}

.cert-card--featured {
    background: rgba(62,207,108,0.05);
    border-color: rgba(62,207,108,0.25);
}

.cert-card__icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.cert-card h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.cert-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.link-arrow {
    font-size: 14px;
    color: var(--green);
    font-weight: 500;
    transition: var(--transition);
}
.link-arrow:hover { color: #5ee080; }

/* ---- Why OFC ---- */
.why-ofc { background: var(--bg); }

.why-ofc__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.why-ofc__text .section-tag { display: block; }

.why-ofc__text h2 {
    font-family: var(--font-head);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 40px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.why-item p {
    font-size: 15px;
    color: var(--text-muted);
}

.why-ofc__quote {
    position: sticky;
    top: 88px;
}

blockquote {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 36px;
}

blockquote p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

blockquote cite {
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 500;
}

/* ---- Industries ---- */
.industries {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.industry-card:hover { border-color: var(--green-dim); }

.industry-card--dev { opacity: 0.65; }

.industry-card__status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.industry-card--live .industry-card__status {
    color: var(--green);
}

.industry-card--dev .industry-card__status {
    color: var(--text-dim);
}

.industry-card h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.industry-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ---- Demo CTA ---- */
.demo-cta {
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    padding: 100px 0;
}

.demo-cta__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.demo-cta h2 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.demo-cta p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 36px;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer__logo {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 240px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col strong {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.footer__col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer__col a:hover { color: var(--text); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
}

.footer__bottom span {
    font-size: 13px;
    color: var(--text-dim);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    section { padding: 72px 0; }

    .nav__links { display: none; }
    .nav__burger { display: flex; }

    .qr-visual__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .steps { grid-template-columns: 1fr; gap: 0; }
    .step { border-radius: 0 !important; }
    .step:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
    .step:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }

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

    .why-ofc__inner { grid-template-columns: 1fr; gap: 48px; }
    .why-ofc__quote { position: static; }

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

    .footer__inner { grid-template-columns: 1fr; gap: 40px; }
    .footer__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .hero__title { font-size: 36px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { text-align: center; justify-content: center; }
    .industry-grid { grid-template-columns: 1fr; }
    .footer__links { grid-template-columns: 1fr; }
}
