:root {
    --ink: #1d1230;
    --muted: #70657f;
    --purple: #7c3aed;
    --pink: #ec4899;
    --orange: #f97316;
    --surface: rgba(255, 255, 255, 0.84);
    --border: rgba(67, 36, 86, 0.12);
    --shadow: 0 24px 70px rgba(71, 31, 105, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 5%, rgba(236, 72, 153, 0.15), transparent 28rem),
        radial-gradient(circle at 90% 28%, rgba(124, 58, 237, 0.14), transparent 30rem),
        #fffafc;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.site-header,
.site-footer,
main {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    text-decoration: none;
}

.logo span {
    color: var(--pink);
}

.logo small {
    font-size: 0.48em;
    font-weight: 700;
    letter-spacing: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.93rem;
    font-weight: 700;
}

nav a,
.nav-button {
    text-decoration: none;
}

.nav-cta {
    padding: 10px 16px;
    color: white;
    border-radius: 999px;
    background: var(--ink);
}

.inline-form {
    display: inline;
}

.nav-button,
.delete-button {
    padding: 0;
    color: inherit;
    border: 0;
    cursor: pointer;
    background: none;
}

.flash {
    width: min(620px, 100%);
    margin: 14px auto 0;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
}

.flash-success {
    color: #17623b;
    border-color: #9fd8ba;
    background: #eafaf1;
}

.flash-error {
    color: #a12235;
    border-color: #efb3bc;
    background: #fff0f2;
}

.hero {
    min-height: 650px;
    padding: 74px 3%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 90px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--purple);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(2.55rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(100deg, var(--purple), var(--pink), var(--orange));
    background-clip: text;
    -webkit-background-clip: text;
}

.subtitle {
    max-width: 620px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions,
.trust-row,
.share-row,
.form-footer {
    display: flex;
    align-items: center;
}

.hero-actions {
    gap: 22px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    color: white;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(110deg, var(--purple), var(--pink));
    box-shadow: 0 12px 28px rgba(179, 54, 161, 0.22);
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(179, 54, 161, 0.28);
}

.text-link {
    font-weight: 800;
    text-decoration: none;
}

.trust-row {
    margin-top: 34px;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.phone-mockup {
    width: min(330px, 100%);
    min-height: 560px;
    margin: auto;
    padding: 15px;
    overflow: hidden;
    border: 8px solid var(--ink);
    border-radius: 46px;
    background: linear-gradient(150deg, #f9a8d4, #c4b5fd 52%, #fed7aa);
    box-shadow: 22px 32px 80px rgba(58, 25, 83, 0.24);
    transform: rotate(3deg);
}

.phone-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 6px;
}

.mock-profile {
    padding: 30px 12px 24px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
}

.avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.24);
    font-size: 1.8rem;
    font-weight: 900;
}

.mock-profile small {
    color: #51445f;
}

.mock-message {
    min-height: 175px;
    padding: 20px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
}

.mock-message span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mock-message p {
    margin: 25px 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
}

.mock-button {
    margin-top: 14px;
    padding: 15px;
    color: white;
    border-radius: 15px;
    background: var(--ink);
    text-align: center;
    font-weight: 800;
}

.steps {
    padding: 90px 0 120px;
}

.steps h2 {
    max-width: 600px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
}

.step-grid,
.message-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-grid article {
    padding: 32px;
    border-top: 1px solid var(--border);
}

.step-grid article > span {
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 900;
}

.step-grid h3 {
    margin: 42px 0 10px;
    font-size: 1.25rem;
}

.step-grid p,
.share-card p,
.empty-state p {
    color: var(--muted);
    line-height: 1.6;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-layout {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 90px;
}

.auth-layout h1,
.send-page h1,
.dashboard h1,
.center-page h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.auth-form,
.message-form {
    padding: 32px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 16px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
}

input:focus,
textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.username-field {
    position: relative;
}

.username-field span {
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--muted);
    font-weight: 800;
}

.username-field input {
    padding-left: 36px;
}

.button-full {
    width: 100%;
}

.form-switch {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.form-switch a {
    color: var(--purple);
    font-weight: 800;
}

.send-page,
.center-page {
    min-height: 680px;
    padding: 70px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.send-page .avatar {
    margin-bottom: 24px;
}

.send-page h1 {
    max-width: 700px;
}

.message-form {
    width: min(680px, 100%);
    margin-top: 20px;
    text-align: left;
}

textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.5;
}

.form-footer {
    justify-content: space-between;
    gap: 16px;
}

.form-footer small {
    color: var(--muted);
}

.error-code {
    margin: 30px 0 0;
    color: var(--pink);
    font-size: 6rem;
    font-weight: 900;
}

.dashboard {
    min-height: 700px;
    padding: 60px 0 100px;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.dashboard h1 {
    margin-bottom: 0;
}

.count,
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 999px;
    background: var(--pink);
    font-size: 0.9rem;
    letter-spacing: 0;
}

.count {
    width: 34px;
    height: 34px;
    vertical-align: middle;
}

.new-badge {
    padding: 8px 13px;
    font-weight: 800;
}

.share-card {
    margin-bottom: 34px;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    gap: 25px;
}

.share-card p {
    margin: 5px 0 0;
    font-size: 0.88rem;
}

.share-row {
    gap: 10px;
}

.share-row input {
    margin: 0;
}

.share-row .button {
    min-height: 48px;
}

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

.inbox-message {
    position: relative;
    min-height: 180px;
    padding: 27px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.inbox-message.unread {
    border-color: rgba(236, 72, 153, 0.35);
}

.inbox-message > p {
    overflow-wrap: anywhere;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.55;
}

.sender-reveal {
    margin: auto 0 20px;
    padding: 13px;
    border-radius: 13px;
    background: rgba(124, 58, 237, 0.07);
    font-size: 0.84rem;
}

.sender-reveal strong {
    color: var(--purple);
}

.unlock-form {
    display: flex;
    gap: 8px;
}

.unlock-form input {
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
}

.unlock-button {
    flex: 0 0 auto;
    padding: 10px 13px;
    color: white;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.inbox-message footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.76rem;
}

.delete-button {
    color: #a12235;
    font-size: 0.76rem;
    font-weight: 700;
}

.unread-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pink);
}

.empty-state {
    padding: 70px 24px;
    text-align: center;
}

.empty-state > span {
    font-size: 3rem;
}

.empty-state h2 {
    margin: 18px 0 8px;
}

.site-footer {
    padding: 28px 0 34px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

@media (max-width: 820px) {
    .hero,
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero {
        padding-top: 65px;
        text-align: center;
    }

    .hero-copy .subtitle {
        margin-inline: auto;
    }

    .hero-actions,
    .trust-row {
        justify-content: center;
    }

    .phone-mockup {
        transform: rotate(1deg);
    }

    .auth-layout {
        padding: 70px 0;
    }

    .auth-form {
        width: min(500px, 100%);
        margin: auto;
    }

    .step-grid,
    .message-grid,
    .share-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 26px, 1120px);
    }

    .site-header {
        min-height: 66px;
    }

    nav {
        gap: 13px;
        font-size: 0.82rem;
    }

    .nav-cta {
        padding: 8px 11px;
    }

    .hero {
        min-height: auto;
        padding-inline: 0;
    }

    .hero-actions,
    .form-footer,
    .share-row {
        align-items: stretch;
        flex-direction: column;
    }

    .hero .button,
    .hero .text-link {
        width: 100%;
        text-align: center;
    }

    .trust-row {
        gap: 10px 16px;
    }

    .steps {
        padding-bottom: 80px;
    }

    .step-grid article {
        padding-inline: 12px;
    }

    .auth-form,
    .message-form {
        padding: 22px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .share-row .button {
        width: 100%;
    }

    .unlock-form {
        flex-direction: column;
    }

    .site-footer {
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
}
