:root {
    color-scheme: light;
    --ink: #153f46;
    --ink-soft: #416268;
    --paper: #fffaf4;
    --surface: rgba(255, 255, 255, 0.86);
    --line: rgba(21, 63, 70, 0.14);
    --sun: #eaa26f;
    --sun-light: #ffd1ad;
    --success: #246b59;
    --error: #a53e37;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 209, 173, 0.62), transparent 29rem),
        radial-gradient(circle at 88% 94%, rgba(54, 121, 133, 0.22), transparent 30rem),
        linear-gradient(145deg, #fffdf9 0%, #fff8ef 52%, #f1f8f6 100%);
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(21, 63, 70, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 63, 70, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.page-shell {
    position: relative;
    display: grid;
    min-height: 100svh;
    padding: clamp(16px, 2.5vw, 32px);
    place-items: center;
}

.waitlist-card {
    width: min(100%, 860px);
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(21, 63, 70, 0.12);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 44px;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.intro {
    width: 100%;
}

.eyebrow {
    margin: 0 0 16px;
    color: #b06439;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4.8vw, 2.75rem);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.14;
    text-wrap: balance;
    white-space: nowrap;
}

.lead {
    width: 100%;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.75;
    text-wrap: pretty;
}

.lead-line {
    display: block;
}

.no-break {
    white-space: nowrap;
}

.lead a {
    color: inherit;
    font-weight: 750;
    text-underline-offset: 0.18em;
}

.form-panel {
    width: 100%;
    margin-top: clamp(34px, 5vw, 50px);
}

form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.9rem;
    font-weight: 800;
}

input[type="email"] {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(21, 63, 70, 0.23);
    border-radius: 14px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="email"]:focus {
    border-color: #367985;
    box-shadow: 0 0 0 4px rgba(54, 121, 133, 0.14);
}

.consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

.consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #367985;
}

.consent a {
    color: var(--ink);
    font-weight: 750;
    text-underline-offset: 0.18em;
}

button {
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #367985, #245f69);
    box-shadow: 0 14px 30px rgba(36, 95, 105, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    letter-spacing: 0.05em;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
    box-shadow: 0 17px 34px rgba(36, 95, 105, 0.28);
    transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
.message:focus-visible {
    outline: 3px solid rgba(234, 162, 111, 0.7);
    outline-offset: 4px;
}

.form-note,
.delivery-note {
    margin: 0;
    color: rgba(65, 98, 104, 0.82);
    font-size: 0.76rem;
    line-height: 1.6;
}

.delivery-note {
    margin-top: 32px;
}

.delivery-note a {
    color: var(--ink);
    font-weight: 700;
}

.message {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 16px;
    line-height: 1.6;
}

.message p {
    margin: 3px 0 0;
}

.message-success {
    border: 1px solid rgba(36, 107, 89, 0.18);
    color: var(--success);
    background: rgba(226, 244, 236, 0.88);
}

.message-error {
    margin-bottom: 14px;
    border: 1px solid rgba(165, 62, 55, 0.18);
    color: var(--error);
    background: rgba(255, 235, 232, 0.9);
}

.message-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
    font-weight: 900;
    place-items: center;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 640px) {
    .page-shell {
        display: block;
        min-height: 100svh;
        padding: 0;
    }

    .waitlist-card {
        min-height: 100svh;
        padding: 28px 22px 34px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .brand {
        margin-bottom: 58px;
    }

    h1 {
        font-size: clamp(1.35rem, 6.2vw, 2rem);
    }

    .lead {
        margin-top: 22px;
        line-height: 1.75;
    }

    .delivery-note {
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
