:root {
    --hero-ink: #1d1a17;
    --hero-muted: #6b645d;
    --hero-muted-strong: #4f4a44;
    --hero-paper: #f5efe7;
    --hero-paper-deep: #efe7dc;
    --hero-panel: rgba(255, 252, 247, 0.82);
    --hero-line: rgba(29, 26, 23, 0.14);
    --hero-accent: #6366f1;
    --hero-accent-soft: #818cf8;
    --hero-shadow: 0 24px 60px rgba(41, 32, 20, 0.08);
    --hero-shadow-strong: 0 40px 80px rgba(41, 32, 20, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--hero-ink);
    background:
        radial-gradient(circle at top left, rgba(132, 91, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(235, 173, 92, 0.14), transparent 24%),
        linear-gradient(180deg, var(--hero-paper) 0%, var(--hero-paper-deep) 100%);
    font-family: "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.hero-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29, 26, 23, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 26, 23, 0.04) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 88%);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 92rem);
    margin: 0 auto;
    padding: clamp(1.25rem, 2vw, 2rem);
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0 1.8rem;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-brand-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(29, 26, 23, 0.2);
    background: var(--hero-panel);
    box-shadow: 0 12px 30px rgba(41, 32, 20, 0.08);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.hero-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 600;
}

.hero-brand-caption,
.hero-access-pill,
.hero-footnote,
.error-banner span {
    color: var(--hero-muted);
}

.hero-brand-caption,
.hero-access-pill,
.hero-kicker {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-access-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--hero-line);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.7);
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(18rem, 34rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    min-height: calc(100vh - 6rem);
}

.hero-copy,
.hero-preview-column {
    animation: hero-rise 0.7s ease forwards;
}

.hero-preview-column {
    opacity: 0;
    animation-delay: 0.12s;
}

.error-banner {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(147, 33, 31, 0.2);
    border-left: 4px solid #93211f;
    border-radius: 1rem;
    background: rgba(255, 243, 242, 0.92);
}

.error-banner strong {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    max-width: 31rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 26, 23, 0.12);
    background: rgba(255, 252, 247, 0.72);
    box-shadow: 0 16px 30px rgba(41, 32, 20, 0.05);
}

.hero-heading {
    margin: 1.2rem 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5.9rem);
    line-height: 0.94;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero-description {
    max-width: 34rem;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--hero-muted-strong);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.9rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--hero-accent);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--hero-accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.24);
}

.google-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.hero-footnote {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-highlight {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid rgba(29, 26, 23, 0.12);
    border-radius: 1.1rem;
    background: rgba(255, 252, 247, 0.74);
    box-shadow: 0 18px 36px rgba(41, 32, 20, 0.07);
}

.hero-highlight span {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c736a;
}

.hero-highlight strong {
    font-size: 0.96rem;
    line-height: 1.6;
    font-weight: 600;
}

.hero-preview-column {
    position: relative;
}

.hero-preview-badge {
    position: absolute;
    top: -1rem;
    left: 2rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #1f1a17;
    color: #f7f2ec;
    box-shadow: 0 18px 32px rgba(31, 26, 23, 0.18);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-preview-window {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hero-line);
    border-radius: 2rem;
    background: #f8f3ed;
    box-shadow:
        var(--hero-shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: perspective(1700px) rotateX(2deg) rotateY(-7deg);
    transform-origin: center left;
}

.hero-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid var(--hero-line);
    background: rgba(249, 244, 238, 0.92);
}

.hero-preview-dots {
    display: inline-flex;
    gap: 0.42rem;
}

.hero-preview-dots span {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: rgba(29, 26, 23, 0.28);
}

.hero-preview-title {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6d665f;
}

.hero-preview-workspace {
    display: grid;
    grid-template-columns: 20rem 1fr;
    min-height: 42rem;
}

.hero-preview-sidebar {
    display: grid;
    align-content: start;
    gap: 1.3rem;
    padding: 1.3rem 1rem 1.4rem;
    border-right: 1px solid rgba(29, 26, 23, 0.18);
    background: rgba(244, 239, 232, 0.95);
}

.hero-preview-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.hero-preview-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
}

.hero-preview-collapse {
    font-size: 1.7rem;
    color: #443d37;
}

.hero-preview-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(29, 26, 23, 0.32);
}

.hero-preview-tabs span {
    display: grid;
    place-items: center;
    min-height: 2.55rem;
    padding: 0.35rem 0.2rem;
    border-right: 1px solid rgba(29, 26, 23, 0.26);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-preview-tabs span:last-child {
    border-right: none;
}

.hero-preview-tabs .is-active {
    background: #1b1b1b;
    color: #f6f1ea;
}

.hero-preview-entry-button,
.hero-preview-action-primary,
.hero-preview-action-secondary {
    appearance: none;
    cursor: default;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-preview-entry-button {
    min-height: 2.8rem;
    border: 1px solid rgba(29, 26, 23, 0.38);
    background: transparent;
    color: var(--hero-ink);
}

.hero-preview-search {
    padding: 0.2rem 0 0.7rem;
    border-bottom: 1px solid rgba(29, 26, 23, 0.42);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    color: #8a8177;
}

.hero-preview-links {
    display: grid;
    gap: 1.6rem;
    padding-left: 0.2rem;
    color: #9a9086;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.06rem;
    font-style: italic;
    letter-spacing: 0.04em;
}

.hero-preview-canvas {
    display: grid;
    place-items: center;
    gap: 1.15rem;
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
        rgba(251, 247, 241, 0.85);
    text-align: center;
}

.hero-preview-empty-icon {
    display: grid;
    place-items: center;
    width: 6.8rem;
    height: 6.8rem;
    border: 2px solid rgba(29, 26, 23, 0.42);
    border-radius: 50%;
    color: rgba(29, 26, 23, 0.5);
}

.hero-preview-canvas h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.hero-preview-canvas p {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: #8d847b;
}

.hero-preview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.hero-preview-action-primary,
.hero-preview-action-secondary {
    min-height: 3.1rem;
    padding: 0 1.4rem;
    border: 1px solid rgba(29, 26, 23, 0.38);
}

.hero-preview-action-primary {
    background: #191919;
    color: #f7f2ec;
}

.hero-preview-action-secondary {
    background: transparent;
    color: var(--hero-ink);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .hero-main {
        grid-template-columns: 1fr;
        align-items: start;
        padding-bottom: 2rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-preview-window {
        transform: none;
    }
}

@media (max-width: 720px) {
    .hero-shell {
        padding: 1rem;
    }

    .hero-nav {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1.25rem;
    }

    .hero-heading {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .hero-preview-workspace {
        grid-template-columns: 1fr;
    }

    .hero-preview-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(29, 26, 23, 0.12);
    }

    .hero-preview-canvas {
        padding: 2.5rem 1.25rem;
    }

    .hero-preview-actions {
        width: 100%;
    }

    .hero-preview-action-primary,
    .hero-preview-action-secondary,
    .hero-preview-entry-button,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .hero-preview-badge {
        left: 1rem;
    }
}
