:root {
    --ink: #111827;
    --ink-soft: #1c2534;
    --paper: #f3eee6;
    --paper-strong: #fbf8f2;
    --sand: #d8c2a1;
    --copper: #9f6846;
    --gold: #c6975f;
    --text: #171d28;
    --muted: #5f6774;
    --line: rgba(17, 24, 39, 0.1);
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: min(1200px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Sora", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(198, 151, 95, 0.14), transparent 28%),
        linear-gradient(180deg, #ece4d6 0%, var(--paper) 32%, #f8f2e8 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.page-frame {
    width: var(--container);
    margin: 0 auto;
    padding: 24px 0 88px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: rgba(251, 248, 242, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--ink);
    color: var(--paper-strong);
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small,
.hero-text,
.section-head p,
.software-aside p,
.software-panel p,
.contact-copy p,
.contact-form span,
.contact-form input,
.contact-form textarea,
.hero-strip span,
.status-card p,
.login-link {
    color: var(--muted);
}

.brand-copy small {
    font-size: 0.84rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a,
.login-link,
.primary-button,
.ghost-button,
.eyebrow,
.card-label,
.service-no,
.software-kicker,
.product-nav a {
    letter-spacing: 0.04em;
}

.main-nav a {
    font-size: 0.92rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-link {
    font-size: 0.88rem;
}

.primary-button,
.ghost-button {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    background: var(--ink);
    color: var(--paper-strong);
}

.ghost-button {
    background: transparent;
    color: var(--ink);
    border-color: rgba(17, 24, 39, 0.14);
}

.primary-button:hover,
.ghost-button:hover,
.product-nav a:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 50%;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 28px;
    align-items: stretch;
    padding: 46px 0 26px;
}

.eyebrow,
.software-kicker,
.card-label,
.service-no {
    margin: 0 0 14px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--copper);
}

.hero h1,
.section-head h2,
.software-aside h2,
.software-panel h3,
.contact-copy h2,
.large-card h2,
.quote-text {
    margin: 0;
    font-family: "Fraunces", serif;
    font-weight: 700;
    line-height: 1.05;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 5.4rem);
}

.hero-text {
    max-width: 64ch;
    margin: 22px 0 28px;
    font-size: 1.02rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-strip {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-strip div,
.status-card,
.quote-box,
.contact-form,
.product-nav a,
.process-grid article,
.software-panel,
.software-aside {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.hero-strip div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.hero-strip strong,
.status-card strong,
.process-grid h3,
.software-panel h3,
.software-points li {
    display: block;
}

.hero-strip strong {
    margin-bottom: 8px;
}

.hero-strip span,
.software-points li,
.process-grid p {
    line-height: 1.7;
}

.hero-stage {
    display: grid;
    gap: 18px;
}

.status-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.64);
}

.large-card {
    padding: 30px;
    background: linear-gradient(180deg, #182130 0%, #101723 100%);
    color: var(--paper-strong);
}

.large-card p,
.card-top {
    color: rgba(243, 238, 230, 0.74);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.large-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 11ch;
}

.large-card p {
    margin-top: 16px;
    line-height: 1.8;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.live {
    background: #77d49b;
    box-shadow: 0 0 0 8px rgba(119, 212, 155, 0.12);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.accent-card {
    background: linear-gradient(180deg, rgba(198, 151, 95, 0.18), rgba(255, 255, 255, 0.94));
}

.ribbon {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 32px;
}

.ribbon span {
    padding: 16px 18px;
    text-align: center;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.52);
    font-size: 0.86rem;
    font-weight: 700;
}

.section-block {
    margin-top: 34px;
}

.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.section-head h2,
.contact-copy h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 16ch;
}

.section-head p,
.contact-copy p,
.software-panel p,
.software-aside p {
    margin: 0;
    line-height: 1.85;
}

.intro-head h2 {
    max-width: 20ch;
}

.product-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-nav a {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.software-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 22px;
    align-items: start;
    margin-top: 24px;
}

.software-aside {
    position: sticky;
    top: 108px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.62);
}

.software-aside h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 16px;
}

.software-points {
    margin: 22px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

.software-body {
    display: grid;
    gap: 18px;
}

.software-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.62);
}

.software-panel h3 {
    font-size: 1.65rem;
    margin-bottom: 14px;
}

.software-panel p + p {
    margin-top: 14px;
}

.feature-panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(25, 35, 50, 0.92));
    color: var(--paper-strong);
}

.feature-panel p,
.feature-panel .software-kicker {
    color: rgba(243, 238, 230, 0.74);
}

.atlas-theme .software-aside {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(235, 226, 211, 0.72));
}

.atlas-theme .feature-panel {
    background: linear-gradient(180deg, #142234 0%, #101925 100%);
}

.pazar-theme .software-aside {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(226, 235, 229, 0.72));
}

.pazar-theme .feature-panel {
    background: linear-gradient(180deg, #142a25 0%, #10201c 100%);
}

.pazar-theme .software-kicker,
.pazar-theme .card-label {
    color: #3b7c61;
}

.servispilot-theme .software-aside {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(228, 228, 235, 0.74));
}

.servispilot-theme .feature-panel {
    background: linear-gradient(180deg, #1e2035 0%, #151827 100%);
}

.servispilot-theme .software-kicker,
.servispilot-theme .card-label {
    color: #7763b3;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.process-grid article {
    padding: 26px;
    background: rgba(255, 255, 255, 0.56);
}

.process-grid h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.process-grid p {
    margin: 0;
}

.quote-box {
    padding: 36px;
    background: linear-gradient(135deg, rgba(159, 104, 70, 0.12), rgba(255, 255, 255, 0.66));
}

.quote-mark {
    margin: 0 0 12px;
    font-family: "Fraunces", serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--copper);
}

.quote-text {
    max-width: 23ch;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 22px;
    align-items: stretch;
}

.login-copy,
.login-card,
.login-benefits article {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.login-copy {
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
}

.login-copy h2 {
    margin: 0 0 16px;
    max-width: 15ch;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.06;
}

.login-copy p {
    margin: 0;
    max-width: 62ch;
    line-height: 1.85;
    color: var(--muted);
}

.login-benefits {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.login-benefits article {
    padding: 20px;
    background: rgba(255, 255, 255, 0.62);
}

.login-benefits strong {
    display: block;
    margin-bottom: 8px;
}

.login-benefits span {
    display: block;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.login-card {
    padding: 24px;
    display: grid;
    gap: 16px;
    background: var(--paper-strong);
}

.login-card label {
    display: grid;
    gap: 8px;
}

.login-card span {
    font-size: 0.9rem;
    color: var(--muted);
}

.login-card input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fffdf8;
    color: var(--text);
}

.login-card input::placeholder {
    color: #8b9099;
}

.form-message {
    min-height: 22px;
    margin: -4px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.form-message[data-state="error"] {
    color: #b4473d;
}

.form-message[data-state="success"] {
    color: #2f7a54;
}

.login-secondary {
    min-height: 48px;
}

.auth-page {
    min-height: 100vh;
}

.auth-shell {
    width: var(--container);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 64px;
    display: grid;
    align-content: start;
    gap: 22px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: fit-content;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.56);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-card-wrap {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 22px;
    align-items: stretch;
}

.auth-copy h1 {
    margin: 0 0 16px;
    max-width: 14ch;
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
}

.auth-form {
    align-self: center;
}

.portal-shell {
    gap: 26px;
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.portal-hero,
.portal-card {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.portal-hero {
    padding: 30px;
    background: rgba(255, 255, 255, 0.54);
}

.portal-hero h1 {
    margin: 0 0 16px;
    max-width: 16ch;
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
}

.portal-hero p:last-child {
    margin: 0;
    max-width: 70ch;
    color: var(--muted);
    line-height: 1.8;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-card {
    padding: 26px;
    display: grid;
    gap: 14px;
    background: rgba(255, 255, 255, 0.66);
}

.portal-label {
    display: inline-block;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: var(--copper);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-card h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 2rem;
    line-height: 1.08;
}

.portal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.portal-card .primary-button {
    width: fit-content;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 22px;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

.contact-form {
    padding: 24px;
    display: grid;
    gap: 16px;
    background: var(--paper-strong);
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form span {
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fffdf8;
    color: var(--text);
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8b9099;
}

.full-width {
    width: 100%;
}

@media (max-width: 1100px) {
    .hero,
    .software-showcase,
    .login-layout,
    .auth-card-wrap,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .software-aside {
        position: static;
    }

    .mini-grid,
    .login-benefits,
    .portal-grid,
    .process-grid,
    .ribbon {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .page-frame {
        width: min(100vw - 24px, 100%);
        padding-top: 16px;
    }

    .auth-shell {
        width: min(100vw - 24px, 100%);
        padding-top: 18px;
    }

    .site-header {
        display: grid;
        grid-template-columns: auto auto;
        border-radius: 28px;
        padding: 16px 18px;
    }

    .main-nav,
    .header-actions .primary-button,
    .header-actions .login-link {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .site-header.menu-open .main-nav {
        display: grid;
        grid-column: 1 / -1;
        gap: 12px;
        padding-top: 18px;
    }

    .site-header.menu-open .header-actions {
        grid-column: 1 / -1;
        display: grid;
        gap: 12px;
    }

    .site-header.menu-open .header-actions .primary-button,
    .site-header.menu-open .header-actions .login-link {
        display: inline-flex;
        justify-content: center;
    }

    .hero h1,
    .large-card h2,
    .section-head h2,
    .contact-copy h2,
    .quote-text,
    .software-aside h2 {
        max-width: none;
    }

    .hero-strip,
    .mini-grid,
    .login-benefits,
    .portal-grid,
    .ribbon,
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .status-card,
    .login-copy,
    .login-card,
    .login-benefits article,
    .auth-back,
    .software-aside,
    .software-panel,
    .process-grid article,
    .quote-box,
    .contact-section,
    .contact-form,
    .product-nav a {
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.9rem);
    }
}