:root {
    --text: #1f2430;
    --muted: #69707d;
    --primary: #0d5c63;
    --primary-2: #1797a0;
    --secondary: #f2a65a;
    --bg: #f7f2ea;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #fffdf8;
    --line: rgba(31, 36, 48, 0.08);
    --shadow: 0 24px 60px rgba(38, 46, 65, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 166, 90, 0.2), transparent 26%),
        radial-gradient(circle at right 20%, rgba(13, 92, 99, 0.14), transparent 24%),
        linear-gradient(180deg, #fcf8f2 0%, #f2ece3 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.25;
    pointer-events: none;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    position: relative;
    z-index: 1;
}

.hero,
.section {
    backdrop-filter: blur(14px);
}

.hero {
    background: linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(250, 247, 241, 0.76));
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(13, 92, 99, 0.08);
    top: -100px;
    right: -80px;
}

.topbar,
.hero-content,
.intro-grid,
.showcase-head,
.stack-grid {
    display: grid;
    gap: 18px;
}

.topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
}

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

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(13, 92, 99, 0.25);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand p,
.brand span {
    margin: 0;
}

.brand p {
    font-weight: 800;
}

.brand span {
    color: var(--muted);
    font-size: 0.92rem;
}

.pill-link,
.button,
.carousel-button {
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.pill-link {
    color: var(--primary);
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(13, 92, 99, 0.08);
}

.hero-content {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    margin-top: 40px;
    align-items: start;
}

.eyebrow,
.section-kicker,
.panel-label,
.module-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 14px;
}

.hero-copy h1,
.intro-card h2,
.section-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.02;
}

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

.hero-text,
.metric-list span,
.intro-card p,
.showcase-head p,
.screen-card p,
.stack-card p,
.section-heading p {
    color: var(--muted);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 40px rgba(13, 92, 99, 0.24);
}

.button-secondary {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.pill-link:hover,
.button:hover,
.carousel-button:hover {
    transform: translateY(-2px);
}

.pill-link:focus-visible,
.button:focus-visible,
.carousel-button:focus-visible {
    outline: 3px solid rgba(23, 151, 160, 0.28);
    outline-offset: 3px;
}

.hero-panel,
.intro-card,
.screen-card,
.stack-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-panel,
.intro-card,
.screen-card,
.stack-card {
    border-radius: 28px;
}

.hero-panel,
.intro-card,
.stack-card {
    padding: 24px;
}

.metric-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.metric-list li {
    padding: 18px;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 18px;
}

.metric-list strong,
.screen-card h4,
.stack-card h3 {
    display: block;
    margin-bottom: 8px;
}

.section {
    margin-top: 26px;
    padding: 30px;
    background: rgba(255, 251, 245, 0.76);
    border: 1px solid var(--line);
    border-radius: 32px;
}

.intro-grid {
    grid-template-columns: 1.3fr 1fr;
}

.accent-card {
    color: white;
    background: linear-gradient(135deg, rgba(13, 92, 99, 0.94), rgba(23, 151, 160, 0.82));
}

.accent-card .section-kicker,
.accent-card p,
.accent-card span,
.accent-card h2 {
    color: white;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.tag-grid span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

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

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

.module-showcase + .module-showcase {
    margin-top: 28px;
}

.showcase-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 16px;
    gap: 14px;
}

.showcase-head h3 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
}

.showcase-head p {
    margin: 0;
    max-width: 62ch;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 36, 48, 0.06);
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 340px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    padding-top: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(13, 92, 99, 0.22);
    border-radius: 999px;
}

.screen-card {
    padding: 18px;
    scroll-snap-align: start;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 245, 0.82));
}

.screen-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.screen-card-top span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(13, 92, 99, 0.1);
}

.screen-card-top strong {
    font-size: 0.96rem;
    line-height: 1.25;
}

.screen-card h4 {
    margin: 16px 0 8px;
    font-size: 1rem;
    line-height: 1.35;
}

.screen-card p {
    margin: 0;
    line-height: 1.65;
}

.screen-ui {
    min-height: 248px;
    height: auto;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(180deg, #fffefb 0%, #edf3f4 100%);
    border: 1px solid rgba(31, 36, 48, 0.07);
    display: grid;
    gap: 10px;
}

.app-ui,
.real-form {
    align-content: start;
}

.alt-ui {
    background: linear-gradient(180deg, #fffdf8 0%, #f4efe8 100%);
}

.auth-ui,
.mobile-ui {
    place-items: center;
    align-content: center;
}

.ui-sidebar {
    width: 28%;
    border-radius: 16px;
    background: rgba(13, 92, 99, 0.12);
}

.ui-content {
    display: grid;
    gap: 10px;
}

.split-ui {
    grid-template-columns: 0.5fr 1fr;
}

.app-sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: #16343b;
    color: rgba(255, 255, 255, 0.82);
}

.app-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 800;
}

.app-nav {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.app-nav.active {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.app-main,
.bar-panel,
.doc-list,
.timeline-list,
.real-table,
.folder-pills {
    display: grid;
    gap: 8px;
}

.app-topline,
.table-row,
.timeline-item,
.profile-card-real,
.bar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.app-topline {
    align-items: flex-start;
}

.app-topline strong,
.doc-item strong,
.timeline-item strong,
.profile-meta strong {
    font-size: 0.82rem;
}

.app-topline span,
.doc-item span,
.timeline-item span,
.profile-meta span,
.field-label,
.info-grid label {
    color: var(--muted);
    font-size: 0.72rem;
}

.app-stats,
.kpi-row,
.info-grid,
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card,
.kpi-box,
.approval-note,
.doc-item,
.alert-card,
.profile-card-real,
.drop-real,
.search-real {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 36, 48, 0.07);
}

.info-grid > div {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 36, 48, 0.07);
}

.stat-card label,
.kpi-box label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.stat-card strong,
.kpi-box strong {
    font-size: 0.9rem;
}

.stat-card.warn {
    background: rgba(242, 166, 90, 0.14);
}

.table-row {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 36, 48, 0.06);
    font-size: 0.76rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.badge.ok {
    background: rgba(94, 187, 124, 0.2);
    color: #21633b;
}

.badge.warning {
    background: rgba(242, 166, 90, 0.22);
    color: #9a5e16;
}

.badge.danger {
    background: rgba(225, 106, 106, 0.2);
    color: #8c3030;
}

.badge.neutral {
    background: rgba(13, 92, 99, 0.12);
    color: var(--primary);
}

.mock-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
}

.mock-btn.primary,
.mobile-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.mock-btn.success {
    background: #3ea76a;
}

.mock-btn.danger {
    background: #d66161;
}

.wide-btn {
    width: 100%;
}

.real-bar {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.real-bar.warn {
    background: linear-gradient(135deg, #d37b25, #f2a65a);
}

.w-90 { width: 90%; }
.w-84 { width: 84%; }
.w-72 { width: 72%; }
.w-61 { width: 61%; }
.w-55 { width: 55%; }
.w-40 { width: 40%; }

.bar-item {
    font-size: 0.74rem;
}

.bar-item div {
    flex: 1;
}

.real-form {
    place-items: start;
}

.auth-brand {
    font-size: 1rem;
    font-weight: 800;
}

.mock-input {
    width: 100%;
    border: 1px solid rgba(31, 36, 48, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    padding: 11px 12px;
    color: var(--text);
    font: inherit;
    font-size: 0.77rem;
}

.otp-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.otp-row span {
    display: grid;
    place-items: center;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 36, 48, 0.08);
    font-weight: 800;
    font-size: 0.76rem;
}

.mobile-frame {
    width: 110px;
    height: 184px;
    border-radius: 24px;
    background: #182126;
    padding: 8px;
}

.mobile-notch {
    width: 46px;
    height: 10px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #2b373d;
}

.mobile-screen {
    height: calc(100% - 18px);
    border-radius: 18px;
    background: linear-gradient(180deg, #fefcf8, #edf1f4);
    padding: 12px 10px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.mobile-screen strong {
    font-size: 0.72rem;
}

.mobile-screen span {
    font-size: 0.62rem;
    color: var(--muted);
}

.mobile-input {
    height: 18px;
    border-radius: 10px;
    background: rgba(13, 92, 99, 0.12);
}

.mobile-btn {
    height: 24px;
    border-radius: 10px;
}

.doc-item,
.timeline-item,
.table-row,
.approval-note,
.alert-card {
    line-height: 1.45;
}

.alert-card {
    font-size: 0.74rem;
}

.alert-card.critical {
    background: rgba(225, 106, 106, 0.14);
}

.alert-card.warning {
    background: rgba(242, 166, 90, 0.16);
}

.alert-card.info {
    background: rgba(23, 151, 160, 0.12);
}

.folder-pills {
    grid-template-columns: repeat(3, 1fr);
}

.folder-pills span {
    text-align: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(13, 92, 99, 0.09);
    font-size: 0.7rem;
    font-weight: 700;
}

.doc-preview-real {
    display: grid;
    gap: 8px;
    height: 100%;
}

.preview-paper {
    min-height: 118px;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(31, 36, 48, 0.08);
}

.line-chart-real {
    position: relative;
    height: 90px;
    border-radius: 16px;
    background:
        linear-gradient(rgba(13, 92, 99, 0.05), rgba(13, 92, 99, 0.05)),
        repeating-linear-gradient(to right, transparent, transparent 24px, rgba(31,36,48,0.04) 24px, rgba(31,36,48,0.04) 25px);
}

.line-segment {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 38px;
    height: 28px;
    border-bottom: 3px solid var(--primary);
    clip-path: polygon(0 72%, 18% 58%, 36% 66%, 54% 30%, 72% 36%, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(23,151,160,0.25), rgba(23,151,160,0.02));
}

.avatar-real {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(13, 92, 99, 0.14);
    color: var(--primary);
    font-weight: 800;
}

.profile-meta {
    display: grid;
}

.ui-stat-row,
.ui-mini-grid,
.ui-action-row,
.ui-pill-row,
.ui-progress-row,
.ui-folder-row,
.ui-bar-row,
.ui-code-row {
    display: grid;
    gap: 8px;
}

.ui-stat-row {
    grid-template-columns: repeat(3, 1fr);
}

.ui-stat,
.ui-mini-card,
.ui-pill,
.ui-folder,
.ui-input,
.ui-button-line,
.ui-search,
.ui-profile,
.ui-phone,
.ui-code-box {
    border-radius: 14px;
}

.ui-stat,
.ui-mini-card,
.ui-table,
.ui-chart,
.ui-list-item,
.ui-doc,
.ui-folder,
.ui-dropzone,
.ui-input,
.ui-button-line,
.ui-search,
.ui-profile,
.ui-phone,
.ui-alert,
.ui-timeline,
.ui-code-box {
    background: rgba(13, 92, 99, 0.1);
}

.ui-stat {
    height: 50px;
}

.ui-stat.warn,
.ui-pill.orange,
.ui-alert.warning,
.ui-bar.b2 {
    background: rgba(242, 166, 90, 0.34);
}

.ui-stat.danger,
.ui-alert.critical,
.ui-bar.b4 {
    background: rgba(225, 106, 106, 0.34);
}

.ui-stat.safe,
.ui-pill.teal,
.ui-alert.info,
.ui-bar.b1 {
    background: rgba(23, 151, 160, 0.26);
}

.ui-chart {
    height: 84px;
    border-radius: 18px;
}

.ui-chart.wide {
    height: 70px;
}

.ui-chart.tall {
    height: 120px;
}

.ui-table {
    height: 64px;
    border-radius: 18px;
}

.ui-header-line,
.ui-list-item {
    height: 22px;
    border-radius: 12px;
}

.ui-list-item.short,
.ui-doc.short,
.ui-timeline.short {
    width: 68%;
}

.ui-action-row,
.ui-pill-row {
    grid-template-columns: repeat(2, 1fr);
}

.ui-pill-row {
    grid-template-columns: repeat(3, 1fr);
}

.ui-pill {
    height: 28px;
}

.ui-pill.ok {
    background: rgba(94, 187, 124, 0.3);
}

.ui-pill.no {
    background: rgba(225, 106, 106, 0.24);
}

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

.ui-mini-card {
    height: 42px;
}

.ui-progress {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.fill-80 {
    width: 80%;
}

.fill-55 {
    width: 55%;
}

.fill-34 {
    width: 34%;
}

.ui-doc {
    height: 84px;
    border-radius: 18px;
}

.ui-doc.preview {
    height: 140px;
}

.ui-folder-row {
    grid-template-columns: repeat(3, 1fr);
}

.ui-folder {
    height: 46px;
}

.ui-dropzone {
    height: 92px;
    border-radius: 18px;
    border: 2px dashed rgba(13, 92, 99, 0.24);
}

.ui-input {
    width: 100%;
    height: 18px;
}

.wide-input {
    width: 86%;
}

.ui-button-line {
    width: 100%;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.short-btn {
    width: 48%;
}

.ui-auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(13, 92, 99, 0.16);
}

.ui-phone {
    width: 72px;
    height: 110px;
    border-radius: 20px;
}

.ui-code-row {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.ui-code-box {
    height: 44px;
}

.ui-alert {
    height: 44px;
    border-radius: 16px;
}

.ui-search {
    height: 38px;
}

.ui-bar-row {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    height: 88px;
}

.ui-bar {
    border-radius: 14px 14px 6px 6px;
}

.ui-bar.b1 {
    height: 45%;
}

.ui-bar.b2 {
    height: 68%;
}

.ui-bar.b3 {
    height: 82%;
    background: rgba(13, 92, 99, 0.16);
}

.ui-bar.b4 {
    height: 96%;
}

.ui-profile {
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

.ui-timeline {
    height: 28px;
    border-radius: 12px;
}

.stack-grid {
    grid-template-columns: repeat(4, 1fr);
}

.future-grid {
    align-items: stretch;
}

.contact-section {
    background: transparent;
    border: none;
    padding: 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 18px;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(13, 92, 99, 0.96), rgba(10, 54, 73, 0.94));
    color: white;
    box-shadow: var(--shadow);
}

.contact-card .section-kicker,
.contact-card p,
.contact-card h2 {
    color: white;
}

.contact-card h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.05;
}

.contact-copy p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
}

.contact-actions {
    display: grid;
    gap: 12px;
    align-content: center;
}

.contact-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-button:hover {
    transform: translateY(-2px);
}

.contact-call {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

.contact-whatsapp {
    background: #25d366;
    color: white;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-content,
    .intro-grid,
    .stack-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .action-buttons,
    .app-stats,
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .hero,
    .section {
        padding: 22px;
        border-radius: 24px;
    }

    .topbar,
    .hero-content,
    .intro-grid,
    .showcase-head,
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .showcase-head {
        align-items: start;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 12vw, 3.6rem);
    }

    .carousel-track {
        grid-auto-columns: 88%;
    }

    .screen-ui {
        min-height: 232px;
    }

    .folder-pills {
        grid-template-columns: 1fr;
    }
}
