:root {
    --bg: #f7efe5;
    --bg-soft: #fff8f0;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #1d2433;
    --muted: #5f6676;
    --line: rgba(29, 36, 51, 0.1);
    --primary: #ef6c2f;
    --primary-dark: #d7541a;
    --secondary: #113b5c;
    --accent: #ffd7a8;
    --success: #1e8f5d;
    --danger: #bf3b3b;
    --shadow: 0 24px 60px rgba(17, 59, 92, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(239, 108, 47, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(17, 59, 92, 0.12), transparent 28%),
        linear-gradient(180deg, #fff9f2 0%, #f7efe5 45%, #fffdfa 100%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 84px 0;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(17, 59, 92, 0.03), rgba(255, 255, 255, 0.55));
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.hero-copy h1,
.article-page h1,
.login-card h1 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.split-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(255, 249, 242, 0.74);
    border-bottom: 1px solid rgba(29, 36, 51, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.brand h1 {
    display: block;
    font-size: 1rem;
}

.brand small {
    display: block;
    color: var(--muted);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #ff9655);
    box-shadow: 0 18px 35px rgba(239, 108, 47, 0.32);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav a:not(.btn) {
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), #ff9152);
    box-shadow: 0 18px 30px rgba(239, 108, 47, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary,
.btn-ghost {
    color: var(--secondary);
    background: rgba(17, 59, 92, 0.08);
    border-color: rgba(17, 59, 92, 0.08);
}

.btn-danger {
    color: white;
    background: var(--danger);
}

.btn-ghost {
    background: rgba(17, 59, 92, 0.08);
}

.btn-block {
    width: 100%;
}

.hero {
    padding: 72px 0 54px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    max-width: 13ch;
}

.hero-text {
    max-width: 62ch;
    margin: 18px 0 28px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions,
.table-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-stats div,
.floating-card,
.hero-board,
.service-card,
.price-card,
.article-card,
.cta-box,
.panel-card,
.stat-card,
.login-card,
.footer-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-stats div {
    padding: 18px;
    border-radius: var(--radius-md);
}

.hero-stats strong {
    display: block;
    margin-bottom: 6px;
}

.hero-stats span,
.muted-text,
.footer-copy,
.article-meta,
.article-lead,
.login-card p,
.mini-item span {
    color: var(--muted);
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 16px 0 0;
    align-content: start;
    justify-items: stretch;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0 8% auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 108, 47, 0.18), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.floating-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    padding: 28px;
    border-radius: var(--radius-lg);
}

.hero-board {
    position: relative;
    z-index: 2;
    width: 100%;
    justify-self: stretch;
    padding: 26px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(17, 59, 92, 0.96), rgba(16, 44, 66, 0.95));
    color: white;
}

.board-line {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(170px, 1.3fr);
    gap: 18px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.board-line:last-child {
    border-bottom: 0;
}

.board-line span,
.board-line strong {
    line-height: 1.35;
}

.label-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(239, 108, 47, 0.14);
    color: var(--primary-dark);
}

.service-grid,
.portfolio-grid,
.pricing-grid,
.article-grid,
.stats-grid,
.admin-grid {
    display: grid;
    gap: 20px;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.price-card,
.article-card,
.panel-card,
.stat-card,
.login-card,
.footer-card {
    border-radius: var(--radius-lg);
    padding: 26px;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--secondary), #1e618f);
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
    position: relative;
}

.price-value {
    margin: 12px 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.price-value small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

.feature-list {
    margin: 22px 0 24px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    padding: 22px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(17, 59, 92, 0.1);
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.article-thumb,
.article-hero-image,
.admin-thumb {
    display: block;
    width: 100%;
    object-fit: cover;
    background: rgba(17, 59, 92, 0.08);
}

.article-thumb {
    height: 220px;
    margin: -26px -26px 6px;
    width: calc(100% + 52px);
}

.article-hero-image {
    height: auto;
    max-height: 460px;
    margin: 0 0 28px;
    border-radius: 26px;
}

.admin-thumb {
    width: 92px;
    height: 62px;
    border-radius: 12px;
}

.article-card h3,
.portfolio-card h3,
.price-card h3,
.service-card h3,
.panel-card h2,
.footer-card h4 {
    margin: 0;
}

.text-link,
.back-link {
    color: var(--secondary);
    font-weight: 700;
}

.service-card .text-link {
    margin-top: auto;
}

.stack-actions {
    display: grid;
    gap: 10px;
}

.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
}

.portfolio-image,
.portfolio-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 240px;
}

.portfolio-image {
    object-fit: cover;
}

.portfolio-placeholder {
    padding: 20px;
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, var(--secondary), #2a6088);
}

.portfolio-body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.portfolio-result {
    color: var(--secondary);
}

.cta-section {
    padding-top: 16px;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.site-footer {
    padding: 40px 0 24px;
    background: #102c42;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.footer-card {
    background: rgba(255, 255, 255, 0.08);
}

.footer-copy,
.site-footer .section-kicker,
.site-footer p {
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.94rem;
}

.article-page {
    padding-top: 54px;
}

.narrow {
    width: min(860px, calc(100% - 32px));
}

.article-lead {
    margin: 18px 0 26px;
    font-size: 1.1rem;
}

.article-content {
    margin-bottom: 30px;
}

.article-content p {
    margin: 0 0 18px;
}

.article-content h2,
.article-content h3 {
    margin: 28px 0 14px;
    font-family: 'Sora', sans-serif;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.9rem;
}

.article-content h3 {
    font-size: 1.45rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--primary);
    border-radius: 18px;
    background: rgba(239, 108, 47, 0.08);
    color: var(--secondary);
    font-weight: 600;
}

.article-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.article-content .ql-align-center {
    text-align: center;
}

.article-content .ql-align-right {
    text-align: right;
}

.article-content .ql-align-justify {
    text-align: justify;
}

.service-hero-page {
    padding-top: 52px;
}

.service-hero-grid,
.lead-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.lead-section {
    padding-top: 20px;
}

.bullet-stack {
    display: grid;
    gap: 14px;
}

.bullet-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(17, 59, 92, 0.06);
    border: 1px solid rgba(17, 59, 92, 0.08);
}

.compact-list {
    margin-bottom: 0;
}

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #22b15d, #169f4f);
    box-shadow: 0 18px 36px rgba(22, 159, 79, 0.32);
}

.wa-float strong,
.wa-float small {
    display: block;
    line-height: 1.2;
}

.wa-float small {
    color: rgba(255, 255, 255, 0.82);
}

.wa-float-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
}

.login-page,
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(239, 108, 47, 0.18), transparent 25%),
        linear-gradient(180deg, #fff8ef 0%, #f1e6d7 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(520px, 100%);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid label {
    display: grid;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.field-help {
    color: var(--muted);
    font-size: 0.92rem;
}

.media-preview {
    margin-top: -8px;
}

.preview-image {
    width: min(100%, 440px);
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(17, 59, 92, 0.08);
}

.wysiwyg-shell {
    overflow: hidden;
    border: 1px solid rgba(17, 59, 92, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
}

.wysiwyg-shell .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid rgba(17, 59, 92, 0.08);
    background: rgba(17, 59, 92, 0.04);
}

.wysiwyg-shell .ql-container.ql-snow {
    border: 0;
    min-height: 320px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
}

.wysiwyg-shell .ql-editor {
    min-height: 320px;
    line-height: 1.7;
}

.wysiwyg-shell .ql-editor.ql-blank::before {
    color: rgba(95, 102, 118, 0.8);
    font-style: normal;
}

.wysiwyg-shell .ql-editor h2,
.wysiwyg-shell .ql-editor h3 {
    font-family: 'Sora', sans-serif;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 59, 92, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.demo-note {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.inline-form {
    margin: 0;
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    font-weight: 600;
}

.alert-success {
    background: rgba(30, 143, 93, 0.12);
    color: var(--success);
}

.alert-error {
    background: rgba(191, 59, 59, 0.12);
    color: var(--danger);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 28px 22px;
    background: #102c42;
    color: white;
}

.brand-admin {
    margin-bottom: 32px;
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-user {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(17, 59, 92, 0.08);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-card strong {
    display: block;
    margin: 10px 0;
    font-size: 2.2rem;
    font-family: 'Sora', sans-serif;
}

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

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.mini-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero-grid,
    .process-grid,
    .service-hero-grid,
    .lead-grid,
    .detail-grid,
    .footer-grid,
    .cta-box,
    .admin-layout,
    .admin-grid,
    .stats-grid,
    .service-grid,
    .portfolio-grid,
    .pricing-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 0;
    }

    .floating-card,
    .hero-board {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .hero-panel::before {
        display: none;
    }

    .board-line {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .admin-sidebar {
        padding-bottom: 12px;
    }
}

@media (max-width: 760px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 249, 242, 0.96);
        border: 1px solid rgba(29, 36, 51, 0.08);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-block;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .board-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hero-stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .split-heading,
    .panel-head,
    .footer-bottom,
    .demo-note,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .section,
    .hero {
        padding: 68px 0;
    }

    .admin-main {
        padding: 20px 16px 28px;
    }

    .wa-float {
        right: 14px;
        bottom: 14px;
        padding: 10px 14px;
    }

    .wa-float small {
        display: none;
    }
}
