:root {
    color-scheme: dark;
    --background: #0b3633;
    --surface: #082b29;
    --text: #f4eadb;
    --muted: #cbddd5;
    --accent: #b6ecd8;
    --border: #557a71;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 1rem/1.6 system-ui, sans-serif;
}

a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 2rem; }

.content-width, .site-header {
    width: min(100% - 3rem, 72rem);
    margin-inline: auto;
}

.site-header, .site-footer, .brand, .site-header nav {
    display: flex;
    align-items: center;
}

.site-header, .site-footer {
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
}

.site-header { border-bottom: 1px solid var(--border); }
main { overflow: clip; }

.brand {
    gap: .6rem;
    font-size: 1.25rem;
    font-weight: 750;
    text-decoration: none;
}

.site-header nav { gap: clamp(.75rem, 3vw, 2rem); }
.site-header nav a, .account-link { color: var(--muted); font-size: .9rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .account-link:hover { color: var(--text); text-decoration: underline; }

.hero {
    padding-top: clamp(3rem, 8vw, 7rem);
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, #235c51, transparent 72%);
}

.hero-copy { padding-inline: 1.25rem; }

.eyebrow {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2 {
    margin-block: .55em .35em;
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.03;
}

h1 { font-size: clamp(3.1rem, 9vw, 8rem); }
h1 em { color: var(--accent); }
h2 { font-size: clamp(2.4rem, 5.5vw, 5.4rem); }
.hero-copy > p:not(.eyebrow), .intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }
.hero-copy > p:not(.eyebrow) { margin-inline: auto; }

.hero-link {
    display: inline-flex;
    gap: .65rem;
    margin-top: 1.65rem;
    border: 1px solid var(--accent);
    border-radius: 3rem;
    padding: .65rem 1.2rem;
    color: var(--accent);
    text-decoration: none;
}

.hero-link:hover { background: var(--accent); color: var(--background); }

.scene img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 1.25rem;
}

.hero-scene {
    width: min(100% - 2rem, 86rem);
    margin: clamp(2rem, 6vw, 4.5rem) auto 0;
}

.hero-scene img {
    aspect-ratio: 2 / 1;
    object-position: center 53%;
}

.about, .workflow, .operations { padding-block: clamp(4rem, 10vw, 8rem); }
.intro { max-width: 54rem; }

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: clamp(2rem, 6vw, 4rem);
}

.principles article { border-top: 1px solid var(--border); padding-block: 1rem; }
.principles h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
.principles p, .workflow-heading > p:last-child, .workflow-copy > p:last-child,
.operations p:last-child, .image-note { color: var(--muted); }

.workflow { background: var(--surface); }

.workflow-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 5rem);
}

.workflow-heading { max-width: 44rem; }

.module {
    margin-top: clamp(2rem, 5vw, 4rem);
    padding: clamp(1rem, 3.5vw, 3rem);
    background: var(--module-surface);
    border: 1px solid var(--module-border);
    border-radius: 1.5rem;
}

.module-floor { --accent: #b6e4fb; --module-surface: #103641; --module-border: #3c687a; }
.module-kitchen { --accent: #ffda9c; --module-surface: #3b2e20; --module-border: #795c3c; }
.module-register { --accent: #a9efce; --module-surface: #123c32; --module-border: #477865; }
.module-menu { --accent: #b6e4fb; --module-surface: #103641; --module-border: #3c687a; }
.module-reports { --accent: #dcd5fb; --module-surface: #302943; --module-border: #6e608c; }

.workflow-copy h3 {
    margin-block: .55em .4em;
    font: 400 clamp(2.15rem, 4vw, 4rem)/1.07 Georgia, serif;
    letter-spacing: -.035em;
}

.image-note { margin-top: 1rem; font-size: .85rem; }
.operations { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.account-link {
    padding: .45rem .8rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    text-decoration: none;
    white-space: nowrap;
}

.more-features { padding-bottom: clamp(4rem, 10vw, 8rem); }
.more-features .module { max-width: 46rem; }
main [data-reveal="left"] { --reveal-offset: clamp(-110px, -9vw, -28px); }
main [data-reveal="right"] { --reveal-offset: clamp(28px, 9vw, 110px); }

@media (min-width: 761px) {
    .workflow .module { width: 94%; }
    .module-right { margin-inline-start: auto; }
    .module-kitchen { grid-template-columns: 1fr 1.2fr; }
    .module-kitchen figure { grid-column: 2; grid-row: 1; }
    .module-kitchen .workflow-copy { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .hero-scene img {
            animation: photo-drift linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 68%;
        }
    }
}

@keyframes photo-drift {
    from { object-position: center 30%; }
    to { object-position: center 65%; }
}

@media (max-width: 760px) {
    .workflow-grid, .principles, .operations { grid-template-columns: 1fr; }
    .hero-scene img { aspect-ratio: 4 / 3; object-position: 60% center; }
    .site-header { width: calc(100% - 2rem); }
}

@media (max-width: 480px) {
    .site-header { flex-wrap: wrap; }
    .site-header nav { order: 1; flex-basis: 100%; }
    .account-link { margin-inline-start: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
