/*
* Kopenta Website Styles
*/

:root {
    --green: #21A67A;
    --blue: #2857A4;
    --teal: #168A9E;
    --orange: #D9762B;
    --ink: #111827;
    --text: #374151;
    --muted: #6B7280;
    --line: #D9E2EC;
    --paper: #FFFFFF;
    --soft: #F4F7FA;
    --dark: #172033;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

.narrow {
    max-width: 860px;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--teal);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    scroll-margin-top: 98px;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--paper);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    background: var(--soft);
    color: var(--ink);
    border-color: var(--teal);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand span {
    font-size: 1.25rem;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-links a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--teal);
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px auto;
    transition: var(--transition);
}

.hero {
    padding: 150px 0 78px;
    background: linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 56px;
    align-items: center;
}

.hero-content {
    max-width: 760px;
}

.hero-lead {
    max-width: 720px;
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.flow-visual {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 14px;
    align-items: center;
    min-height: 210px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(22, 138, 158, 0.08), rgba(40, 87, 164, 0.08)),
        var(--soft);
    border: 1px solid var(--line);
}

.flow-column {
    display: grid;
    gap: 10px;
}

.flow-node {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.flow-node::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--teal);
}

.flow-node.action::before {
    background: var(--orange);
}

.flow-core {
    position: relative;
    min-height: 154px;
    padding: 22px 18px;
    border-radius: 10px;
    background: var(--dark);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.16);
}

.flow-core::before,
.flow-core::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--teal);
}

.flow-core::before {
    left: -20px;
}

.flow-core::after {
    right: -20px;
}

.flow-core strong {
    font-size: 1rem;
    line-height: 1.25;
}

.flow-core small {
    margin-top: 8px;
    color: #B8C4D2;
    font-size: 0.76rem;
}

.pulse-dot {
    width: 18px;
    height: 18px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(33, 166, 122, 0.14);
}

.signal-card {
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.signal-card.primary {
    min-height: 156px;
    margin-bottom: 16px;
    background: var(--dark);
    color: var(--paper);
}

.signal-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-card.primary span,
.signal-card.primary strong {
    color: var(--paper);
}

.signal-card strong {
    display: block;
    margin-top: 18px;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1.2;
}

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

.signal-grid .signal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.visual-icon {
    width: 36px;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    background: rgba(22, 138, 158, 0.12);
    color: var(--teal) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

.positioning {
    padding: 58px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.positioning h2 {
    margin-bottom: 0.8rem;
}

.positioning p {
    color: var(--text);
    font-size: 1.08rem;
    margin-bottom: 0;
}

.section-block {
    padding: 86px 0;
}

.section-block.muted {
    background: var(--soft);
}

.section-block.dark {
    background: var(--dark);
    color: #DDE6F0;
}

.section-block.dark h2,
.section-block.dark h3 {
    color: var(--paper);
}

.section-block.dark .eyebrow {
    color: #8ED3CB;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 40px;
}

.services-grid,
.process-grid,
.system-card-grid,
.use-case-grid,
.industry-grid,
.family-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card,
.info-card,
.process-card,
.compact-card,
.family-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 26px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
    transition: var(--transition);
}

.service-card:hover,
.info-card:hover,
.process-card:hover,
.compact-card:hover,
.family-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.family-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.family-card {
    position: relative;
    overflow: hidden;
    min-height: 390px;
}

.family-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--teal);
}

.family-card[data-color="green"]::before {
    background: var(--green);
}

.family-card[data-color="blue"]::before {
    background: var(--blue);
}

.family-card[data-color="orange"]::before {
    background: var(--orange);
}

.family-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: var(--dark);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 800;
}

.system-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: system-card;
}

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

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

.compact-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    display: flex;
    align-items: flex-end;
    padding-top: 64px;
}

.compact-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    font-size: 1rem;
}

.compact-card::before {
    counter-increment: system-card;
    content: counter(system-card, decimal-leading-zero);
    position: absolute;
    top: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--dark);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 800;
}

.compact-card::after {
    content: "";
    position: absolute;
    top: 28px;
    right: 20px;
    width: 76px;
    height: 38px;
    opacity: 0.7;
    background:
        radial-gradient(circle at 8px 30px, var(--teal) 0 4px, transparent 5px),
        radial-gradient(circle at 34px 12px, var(--blue) 0 4px, transparent 5px),
        radial-gradient(circle at 68px 22px, var(--orange) 0 4px, transparent 5px),
        linear-gradient(135deg, transparent 10%, rgba(22, 138, 158, 0.36) 10% 14%, transparent 14% 44%, rgba(40, 87, 164, 0.32) 44% 48%, transparent 48%);
}

.service-card {
    border-top: 4px solid var(--teal);
}

.service-card[data-color="green"] {
    border-top-color: var(--green);
}

.service-card[data-color="blue"] {
    border-top-color: var(--blue);
}

.service-card[data-color="orange"] {
    border-top-color: var(--orange);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: var(--paper);
    background: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.service-features {
    list-style: none;
    margin: 20px 0 0;
}

.service-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.94rem;
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--teal);
}

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

.process-card {
    position: relative;
    min-height: 240px;
    padding-top: 64px;
}

.process-number {
    position: absolute;
    top: 22px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--teal);
    color: var(--paper);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    align-items: start;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-list span,
.mini-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 500;
}

.dark .mini-grid span {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--paper);
}

.dark p,
.dark .trust-note {
    color: #DDE6F0;
}

.trust-note {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.94rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.note {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.sprint {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.contact {
    padding: 86px 0;
    background: var(--soft);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item,
.contact-cta,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 26px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
}

.contact-item {
    display: flex;
    gap: 14px;
}

.contact-item i {
    color: var(--teal);
    font-size: 1.25rem;
    margin-top: 4px;
}

.contact-item p,
.contact-cta p {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(22, 138, 158, 0.12);
}

footer {
    padding: 34px 0;
    background: var(--dark);
    color: #DDE6F0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-info p {
    margin: 0 0 4px;
    color: #B8C4D2;
    font-size: 0.88rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: var(--paper);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
}

@media screen and (max-width: 980px) {
    .hero-grid,
    .split,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .system-card-grid,
    .use-case-grid,
    .industry-grid,
    .family-grid {
        grid-template-columns: 1fr;
    }

    .family-card {
        min-height: auto;
    }

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

}

@media screen and (max-width: 820px) {
    .brand img {
        width: 50px;
        height: 50px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 79px;
        left: 0;
        width: 100%;
        height: calc(100vh - 79px);
        padding: 34px 20px;
        background: var(--paper);
        border-top: 1px solid var(--line);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        border-bottom: 1px solid var(--line);
    }

    .nav-links a {
        display: block;
        padding: 18px 0;
        font-size: 1.05rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }

    .hero {
        padding-top: 124px;
    }
}

@media screen and (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .hero,
    .section-block,
    .contact {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .hero {
        padding-top: 116px;
    }

    .button-row,
    .btn {
        width: 100%;
    }

    .signal-grid,
    .process-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .flow-visual {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 14px;
    }

    .flow-core {
        min-height: 132px;
    }

    .flow-core::before,
    .flow-core::after {
        display: none;
    }

    .service-card,
    .info-card,
    .process-card,
    .compact-card,
    .family-card,
    .sprint,
    .contact-item,
    .contact-cta,
    .contact-form,
    .hero-panel {
        padding: 20px;
    }

    .process-card {
        min-height: auto;
        padding-top: 58px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
