:root {
    --bg: #f7fafc;
    --bg-soft: #ffffff;
    --text: #122033;
    --muted: #4b5f76;
    --line: #dce5ef;
    --brand: #0e8f82;
    --brand-dark: #0b6f65;
    --brand-soft: #e8f8f5;
    --blue-soft: #ebf3ff;
    --radius: 18px;
    --shadow: 0 18px 40px rgba(26, 51, 87, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(700px 260px at 80% -10%, #dff1ff 0%, transparent 72%),
        radial-gradient(780px 280px at 10% -15%, #e6fff8 0%, transparent 75%),
        var(--bg);
    line-height: 1.6;
}

.container {
    width: min(1160px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(247, 250, 252, 0.88);
    border-bottom: 1px solid rgba(220, 229, 239, 0.8);
}

.nav-wrap {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

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

.brand-text {
    max-width: 360px;
    line-height: 1.08;
    font-size: 0.92rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1c2d41;
    margin: 6px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    padding: 4.6rem 0 2.1rem;
}

.hero-grid {
    display: grid;
    gap: 1.3rem;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
}

.hero-text h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4.8vw, 3.5rem);
    line-height: 1.08;
    margin: 0.9rem 0 1rem;
    letter-spacing: -0.03em;
}

.hero-text p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch;
}

.hero-cta {
    margin-top: 1.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-points {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-points span {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-card {
    background: linear-gradient(160deg, #f2fbff 0%, #eef7ff 55%, #f7fbff 100%);
    border: 1px solid #d3e3f3;
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d5a75;
    background: #e4f3ff;
    border: 1px solid #c3ddf2;
}

.hero-card h2 {
    margin: 0.8rem 0 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.32rem;
}

.hero-card p {
    margin: 0;
    color: #3c556f;
}

.hero-pillars {
    margin-top: 1rem;
    display: grid;
    gap: 0.65rem;
}

.hero-pillar {
    background: #ffffff;
    border: 1px solid #d8e5f3;
    border-radius: 12px;
    padding: 0.62rem 0.7rem;
}

.hero-pillar strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
}

.hero-pillar span {
    display: block;
    color: #516882;
    font-size: 0.83rem;
    line-height: 1.45;
}

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

.eyebrow {
    display: inline-flex;
    background: var(--brand-soft);
    color: #11675e;
    border: 1px solid #b9e7de;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.93rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), #1bb6a5);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--brand-dark), #149d8e);
}

.btn-ghost {
    color: #1f3c58;
    background: #ffffff;
    border-color: #c8d8ea;
}

.btn-ghost:hover {
    border-color: #a9c2df;
}

.btn-outline {
    color: #125168;
    background: transparent;
    border-color: #9ec2da;
}

.btn-nav {
    color: #ffffff;
    background: linear-gradient(90deg, #3f83ff, #33a7ff);
}

.full {
    width: 100%;
}

.partner-strip {
    padding: 1.4rem 0 0.8rem;
}

.partner-title {
    margin: 0 0 0.95rem;
    font-size: 0.95rem;
    color: #54708f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    text-align: center;
}

.logo-marquee {
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 39, 68, 0.05);
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 50s linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.95rem 0.9rem;
    border-right: 1px solid #edf2f8;
}

.logo-item img {
    max-width: 122px;
    max-height: 30px;
    object-fit: contain;
}

.logo-item span {
    font-size: 0.74rem;
    font-weight: 700;
    color: #59738f;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.section {
    padding: 4.8rem 0;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.2rem;
}

.section-head h2 {
    margin: 0.8rem 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

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

.service-card {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 12px 30px rgba(24, 45, 72, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(24, 45, 72, 0.12);
    border-color: #bfd4eb;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ddf1ff, #e3fbf5);
    border: 1px solid #c6dff3;
    margin-bottom: 0.8rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #0e4a64;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 46px;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    border: 1px solid #d6e2f0;
    background: #fbfdff;
    margin-bottom: 0.8rem;
}

.card-logo img {
    max-width: 116px;
    max-height: 26px;
    object-fit: contain;
}

.service-card h3 {
    margin: 0 0 0.58rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.platform-section {
    padding-top: 1.8rem;
}

.edge-section {
    padding-top: 0.8rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.automation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin: 0 auto;
}

.platform-card {
    background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d6e3f2;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 12px 30px rgba(24, 45, 72, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(24, 45, 72, 0.12);
    border-color: #bfd4eb;
}

.platform-card h3 {
    margin: 0 0 0.55rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
}

.platform-card p {
    margin: 0;
    color: var(--muted);
}

.split-section {
    padding-top: 1.6rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.split-text h2 {
    margin: 0.75rem 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.5rem, 2.7vw, 2.1rem);
}

.split-text p {
    margin: 0;
    color: var(--muted);
}

.split-text ul {
    margin: 0.9rem 0 0;
    padding-left: 1.1rem;
}

.split-text li + li {
    margin-top: 0.4rem;
}

.split-card {
    background: linear-gradient(162deg, #ffffff 0%, #f1f7ff 100%);
    border: 1px solid #d5e3f2;
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.split-card h3 {
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
}

.line {
    border-top: 1px dashed #bfd1e5;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.line:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.line span {
    color: #2c4966;
}

.line strong {
    color: #165274;
    font-size: 0.83rem;
}

.google-section {
    padding-top: 2.2rem;
}

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

.google-card {
    background: linear-gradient(158deg, #e9f5ff 0%, #ffffff 100%);
    border: 1px solid #cfe0f4;
    border-radius: var(--radius);
    padding: 1.2rem;
}

.google-card h3 {
    margin: 0.7rem 0 0.5rem;
    font-family: "Space Grotesk", sans-serif;
}

.google-card p {
    margin: 0;
    color: #3f5974;
}

.contact-section {
    padding-top: 3.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-grid h2 {
    margin: 0.75rem 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.contact-grid p {
    margin: 0;
    color: var(--muted);
}

.contact-points {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-points a {
    color: #145d80;
    font-weight: 700;
    text-decoration: none;
}

.form-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 14px 30px rgba(19, 42, 70, 0.08);
}

.form-card form {
    display: grid;
    gap: 0.45rem;
}

.form-card label {
    font-size: 0.84rem;
    color: #35506d;
    font-weight: 700;
}

.form-card input,
.form-card textarea {
    width: 100%;
    border: 1px solid #ccdaea;
    background: #ffffff;
    color: #18293b;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    margin-bottom: 0.5rem;
    outline: none;
}

.form-card input:focus,
.form-card textarea:focus {
    border-color: #7aa7db;
    box-shadow: 0 0 0 2px rgba(74, 138, 221, 0.16);
}

.alerts {
    margin-bottom: 0.9rem;
}

.alert {
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
}

.alert + .alert {
    margin-top: 0.45rem;
}

.alert-success {
    border: 1px solid #8cd7be;
    color: #185b49;
    background: #e6f7f1;
}

.alert-error {
    border: 1px solid #efb4b5;
    color: #7f2e31;
    background: #fdeeee;
}

.site-footer {
    border-top: 1px solid #dbe6f3;
    padding: 1.4rem 0 2rem;
    margin-top: 2.5rem;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-wrap p {
    margin: 0;
    color: #607992;
    font-size: 0.88rem;
}

.footer-wrap a {
    text-decoration: none;
    color: #3b5f83;
    font-weight: 700;
    margin-left: 0.9rem;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-up 0.55s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.36s; }

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-grid,
    .google-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 92px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        background: rgba(249, 252, 255, 0.98);
        border-bottom: 1px solid #d7e4f2;
        padding: 1rem 1.2rem;
    }

    nav.is-open {
        display: flex;
    }

    .btn-nav {
        margin-top: 0.2rem;
    }

    .hero {
        padding-top: 3.3rem;
    }

    .brand-text {
        max-width: 250px;
        font-size: 0.84rem;
    }

    .logo-item {
        min-width: 140px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(1160px, calc(100% - 1.2rem));
    }

    .service-grid,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .automation-grid {
        max-width: none;
    }

    .logo-item {
        min-width: 128px;
    }

    .logo-item img {
        max-width: 100px;
    }

    .footer-wrap a {
        margin-left: 0;
        margin-right: 0.8rem;
    }
}
