@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/google-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/google-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/google-sans-latin-700-normal.woff2') format('woff2');
}

:root {
    --hero-from: #2563eb;
    --hero-to: #4338ca;
    --page-bg: #f7f8fc;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --ink: #1f2937;
    --ink-dim: #6b7280;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Google Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--page-bg);
}

/* Header / hero band */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.5rem 4.5rem;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.hero::before {
    width: 620px;
    height: 620px;
    top: -360px;
    right: -220px;
}
.hero::after {
    width: 420px;
    height: 420px;
    bottom: -260px;
    left: -160px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.brand svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.brand span {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.accent {
    font-style: italic;
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 2.75rem);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 1.1rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.hero .lede {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 2.75rem;
}

/* Supplier -> You -> Customer propagation diagram */
.flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flow .node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 108px;
}

.flow .dot {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
}

.flow .dot::before,
.flow .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    animation: pulse 3.7s ease-out infinite;
}
.flow .dot::after {
    animation-delay: 1.85s;
}

.flow .node:nth-child(3) .dot::before { animation-delay: 0.9s; }
.flow .node:nth-child(3) .dot::after  { animation-delay: 2.75s; }
.flow .node:nth-child(5) .dot::before { animation-delay: 1.8s; }
.flow .node:nth-child(5) .dot::after  { animation-delay: 3.65s; }

@keyframes pulse {
    0%   { inset: 0;     opacity: 0.9; }
    100% { inset: -10px; opacity: 0; }
}

.flow .node span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.flow .node.you .dot {
    width: 26px;
    height: 26px;
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.flow .node.you span {
    color: #ffffff;
    font-weight: 600;
}

.flow .line {
    flex: 1;
    max-width: 64px;
    height: 20px;
    margin-bottom: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='20'%3E%3Cpath d='M0,10 H14 L18,10 L20,2 L23,18 L26,6 L29,10 H140' fill='none' stroke='white' stroke-opacity='0.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 140px 20px;
    background-position: 0 center;
    animation: heartbeat-run 3.7s linear infinite;
}

@keyframes heartbeat-run {
    from { background-position: 0 center; }
    to   { background-position: 140px center; }
}

/* Body content — one card per section */
main {
    padding: 3rem 1.5rem;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel {
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.06);
}

.panel h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-align: center;
    color: var(--ink);
}

.panel > p {
    text-align: center;
    color: var(--ink-dim);
    margin: 0 0 1.5rem;
}

#about > p {
    text-align: left;
    line-height: 1.65;
    color: var(--ink-dim);
    margin: 0 0 1.25rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--ink);
}

.feature p {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-dim);
    margin: 0;
}

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

#contactStatus {
    display: none;
    text-align: center;
}

#contactStatus p {
    color: var(--ink-dim);
    margin: 0;
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #374151;
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ca3af;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--hero-from);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field textarea {
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    font: inherit;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    border: none;
    border-radius: 0.65rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.submit-btn:hover {
    opacity: 0.92;
}

footer {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    background: #111827;
    padding: 1.5rem 1rem;
}

@media (max-width: 480px) {
    .flow .node {
        width: 76px;
    }
    .flow .node span {
        font-size: 0.72rem;
    }
    .flow .line {
        max-width: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flow .line,
    .flow .dot::before,
    .flow .dot::after {
        animation: none;
    }
}
