:root {
    color-scheme: dark;
    --ice: #a7ebf2;
    --teal: #54acbf;
    --blue: #26658c;
    --deep: #023859;
    --navy: #011c40;
    --text: #eff9fc;
    --muted: #aac3d2;
    --line: rgba(167, 235, 242, .15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.65;
}

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

button {
    font: inherit;
}

svg {
    display: block;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--ice);
    outline-offset: 5px;
}

::selection {
    background: var(--ice);
    color: var(--navy);
}

.container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    padding: 12px 20px;
    z-index: 100;
    background: var(--ice);
    color: var(--navy);
    border-radius: 10px;
}

.skip-link:focus {
    top: 12px;
}

/* Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(1, 28, 64, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-row {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 45px;
    height: 45px;
    border: 1px solid var(--teal);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ice);
}

.brand-mark .icon {
    width: 27px;
    height: 27px;
}

.brand-name {
    display: block;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.5px;
    line-height: 1.25;
}

.brand-caption {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 0;
    transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ice);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal);
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid var(--line);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}

.login-link:hover {
    border-color: var(--teal);
    background: rgba(84, 172, 191, .1);
}

.login-link .icon {
    width: 16px;
    height: 16px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ice);
    cursor: pointer;
}

/* Homepage hero */

.hero-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 75% 38%,
            rgba(38, 101, 140, .42),
            transparent 53%
        ),
        linear-gradient(120deg, #092b45, var(--navy) 75%);
}

.hero-shell::before {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    left: -390px;
    bottom: -320px;
    border-radius: 50%;
    border: 1px solid rgba(84, 172, 191, .4);
    box-shadow:
        0 0 0 14px rgba(84, 172, 191, .035),
        0 0 0 35px rgba(84, 172, 191, .025),
        0 0 90px rgba(84, 172, 191, .14);
    z-index: -1;
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding-block: 54px 65px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ice);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--teal);
    flex-shrink: 0;
}

h1 {
    margin: 25px 0 22px;
    font-size: clamp(44px, 5.3vw, 70px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -3px;
}

h1 span {
    display: block;
    color: var(--ice);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 31px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 48px;
    padding: 12px 23px;
    border-radius: 28px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    transition:
        transform .2s,
        background .2s,
        box-shadow .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--navy);
    background: var(--ice);
    box-shadow: 0 7px 30px rgba(84, 172, 191, .12);
}

.button-primary:hover {
    background: #caf7fa;
    box-shadow: 0 9px 32px rgba(84, 172, 191, .22);
}

.button-secondary {
    border-color: rgba(167, 235, 242, .3);
    color: var(--ice);
}

.button-secondary:hover {
    background: rgba(167, 235, 242, .06);
}

.button .icon {
    width: 17px;
    height: 17px;
}

.category-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 35px;
    color: var(--muted);
}

.category-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}

.category-row .icon {
    width: 16px;
    height: 16px;
    color: var(--teal);
}

/* Coffee illustration */

.hero-visual {
    position: relative;
    min-width: 0;
    height: 510px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 10px -35px 20px 5px;
    border: 1px dashed rgba(84, 172, 191, .24);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.coffee-art {
    position: absolute;
    width: 112%;
    max-width: 610px;
    top: -7px;
    left: -5%;
    height: auto;
    filter: drop-shadow(
        0 24px 26px rgba(0, 8, 22, .2)
    );
}

.visual-label {
    position: absolute;
    font-size: 10px;
    letter-spacing: 1.6px;
    color: var(--muted);
    text-transform: uppercase;
}

.visual-label-top {
    right: 0;
    top: 17px;
    text-align: right;
}

.visual-label-top strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ice);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
}

.visual-note {
    position: absolute;
    left: 8px;
    bottom: 7px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    background: rgba(2, 56, 89, .73);
    border: 1px solid var(--line);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.visual-note .icon {
    width: 25px;
    height: 25px;
    color: var(--ice);
}

.visual-note strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.visual-note span {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.bean-decoration {
    position: absolute;
    width: 44px;
    height: 60px;
    filter: drop-shadow(
        0 8px 6px rgba(0, 0, 0, .35)
    );
}

.bean-one {
    bottom: 85px;
    right: 12px;
    transform: rotate(33deg);
}

.bean-two {
    bottom: 49px;
    right: 86px;
    width: 32px;
    transform: rotate(-28deg);
}

.bean-three {
    top: 65px;
    left: -10px;
    width: 29px;
    transform: rotate(45deg);
}

/* Features */

.section {
    padding-block: 72px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 30px;
}

h2 {
    margin: 12px 0 0;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -1px;
}

.section-description {
    max-width: 310px;
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 3px;
}

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

.feature-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(38, 101, 140, .17),
        rgba(2, 56, 89, .14)
    );
    transition: transform .2s, border-color .2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(84, 172, 191, .5);
}

.feature-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(84, 172, 191, .25);
    border-radius: 13px;
    background: rgba(84, 172, 191, .08);
    color: var(--ice);
    margin-bottom: 23px;
}

.feature-icon .icon {
    width: 24px;
    height: 24px;
}

.feature-number {
    position: absolute;
    right: 27px;
    top: 35px;
    color: var(--teal);
    opacity: .65;
    font-size: 11px;
    letter-spacing: 2px;
}

h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.4px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.feature-tag {
    display: block;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 15px;
    color: var(--teal);
    font-size: 9px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* Workflow */

.workflow-section {
    border-top: 1px solid var(--line);
    background: rgba(2, 56, 89, .17);
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--ice);
    background: rgba(84, 172, 191, .08);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 11px;
}

.step h3 {
    font-size: 15px;
    margin-bottom: 7px;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* About */

.about-section {
    padding-block: 65px;
}

.about-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 38px 42px;
    border: 1px solid rgba(84, 172, 191, .25);
    border-radius: 22px;
    background: linear-gradient(
        110deg,
        #023859,
        #082748
    );
}

.about-panel::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    top: -100px;
    right: -70px;
    border-radius: 50%;
    border: 1px solid var(--line);
    pointer-events: none;
}

.about-panel h2 {
    font-size: 29px;
    margin: 0 0 12px;
}

.about-panel p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.about-panel .button {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
}

.footer-row {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--ice);
}

.footer-row p {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
}

.footer-row a:last-child {
    color: var(--muted);
    font-size: 11px;
}

.footer-row a:last-child:hover {
    color: var(--ice);
}

/* Tablet */

@media (min-width: 861px) and (max-width: 1050px) {
    .header-row {
        gap: 20px;
    }

    .main-nav {
        gap: 17px;
    }

    .hero {
        min-height: 580px;
        gap: 20px;
    }

    .hero-visual {
        height: 440px;
    }

    .coffee-art {
        top: 10px;
    }
}

/* Mobile */

@media (max-width: 860px) {
    .container {
        width: min(640px, calc(100% - 40px));
    }

    .header-row {
        min-height: 76px;
        flex-wrap: wrap;
        column-gap: 12px;
        row-gap: 0;
        padding-block: 14px;
    }

    .brand {
        margin-right: auto;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-caption {
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .login-link {
        padding: 9px 12px;
        font-size: 11px;
    }

    .js .menu-toggle {
        display: flex;
    }

    .main-nav {
        order: 4;
        width: 100%;
        margin: 15px 0 0;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 4px 3px;
        border-top: 1px solid var(--line);
    }

    .js .main-nav {
        display: none;
    }

    .js .main-nav.is-open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
        padding-block: 55px 35px;
    }

    .hero-copy {
        max-width: 540px;
    }

    h1 {
        font-size: clamp(45px, 8vw, 65px);
    }

    .hero-description {
        max-width: 470px;
    }

    .hero-visual {
        width: min(100%, 490px);
        height: 470px;
        margin-inline: auto;
    }

    .coffee-art {
        width: 104%;
        left: -2%;
        top: 0;
    }

    .hero-visual::before {
        inset: 10px 0 25px;
    }

    .visual-label-top {
        right: 5px;
        top: 18px;
    }

    .visual-note {
        bottom: 0;
    }

    .section {
        padding-block: 50px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .section-description {
        max-width: 450px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-icon {
        margin-bottom: 17px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-section {
        padding-block: 45px;
    }

    .about-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 30px;
    }

    .footer-row {
        min-height: 100px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px 22px;
        padding-block: 22px;
    }

    .footer-row p {
        width: 100%;
        order: 3;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-row {
        column-gap: 8px;
    }

    .brand {
        gap: 8px;
    }

    .brand-caption {
        letter-spacing: .9px;
    }

    .brand-mark {
        width: 33px;
        height: 33px;
    }

    .brand-mark .icon {
        width: 21px;
        height: 21px;
    }

    .brand-name {
        font-size: 15px;
    }

    .login-link {
        padding: 8px 10px;
    }

    .login-link .icon {
        display: none;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 12px;
    }

    h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-visual {
        height: 370px;
        margin-top: 16px;
    }

    .visual-label-top {
        font-size: 8px;
        top: 5px;
    }

    .visual-label-top strong {
        font-size: 10px;
    }

    .visual-note {
        left: 0;
        padding: 12px 14px;
    }

    .bean-one {
        bottom: 45px;
        right: 0;
        width: 34px;
    }

    .bean-two {
        bottom: 17px;
        right: 52px;
        width: 25px;
    }

    .bean-three {
        top: 45px;
        left: 0;
        width: 22px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .category-row {
        gap: 17px;
    }

    .about-panel {
        padding: 25px;
    }

    .about-panel h2 {
        font-size: 25px;
    }
}

@media print {
    body {
        background: white;
        color: #011c40;
    }

    .site-header {
        position: static;
        background: white;
    }

    .hero-shell,
    .feature-card,
    .workflow-section,
    .about-panel {
        background: white;
    }

    .hero-visual,
    .hero-actions,
    .menu-toggle,
    .login-link,
    .about-panel .button {
        display: none !important;
    }

    .hero {
        display: block;
        min-height: auto;
        padding-block: 25px;
    }

    .section,
    .about-section {
        padding-block: 25px;
    }

    h1 span,
    .eyebrow,
    .hero-description,
    .feature-card p,
    .section-description,
    .step p,
    .about-panel p,
    .footer-row p {
        color: #023859;
    }

    .feature-card,
    .step,
    .about-panel {
        break-inside: avoid;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Hidden reusable SVG definitions. */
.icon-sprite {
    position: absolute;
    overflow: hidden;
}

/* Shop logo in the upper-left navigation. */
.brand-mark {
    overflow: hidden;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

/* Desktop proportions from the supplied Cloud Coffee homepage reference. */
@media (min-width: 1200px) {
    .container { width: min(1310px, calc(100% - 80px)); }
    .header-row { min-height: 94px; }
    .brand-mark { width: 50px; height: 50px; }
    .brand-name { font-size: 21px; }
    .hero { min-height: calc(100svh - 94px); }
    .hero-copy h1 { font-size: clamp(70px, 4.74vw, 80px); }
    .hero-copy h1 span { font-size: 1.06em; }
    .hero-description { max-width: 455px; font-size: 16px; }
    .hero-actions .button { min-height: 54px; padding-inline: 25px; font-size: 14px; }
    .hero-visual { height: 570px; }
    .coffee-art { width: 110%; max-width: 700px; }
    .visual-note { bottom: 4px; }
}
