:root {
    --color-primary: #073870;
    --color-accent: #67c40c;
    --color-text: #1b1f24;
    --color-muted: #53627c;
    --color-surface: #ffffff;
    --color-background: #f3f7fb;
    --font-family-sans: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    --header-height: 4.5rem;
    --header-blur: 20px;
    --hero-rise-duration: 900ms;
    --hero-rise-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-sans);
    -webkit-font-smoothing: antialiased;
}

[id$="-title"],
#contact,
#contact-title {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.landing {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

section {
    padding: 0 1.5rem;
}

.section-heading {
    max-width: 60rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

.hero {
    position: relative;
    min-height: 75vh;
    display: grid;
    align-items: center;
    padding: 6rem 1.5rem 5rem;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at top left, rgba(103, 196, 12, 0.12), transparent 45%),
        linear-gradient(135deg, rgba(7, 56, 112, 0.98), rgba(7, 56, 112, 0.85));
    color: #fff;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    display: grid;
    gap: 1.75rem;
}

.hero__logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: clamp(11rem, 32vw, 15rem);
    padding: 1.1rem 1.5rem;
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(237, 245, 255, 0.72));
    box-shadow: 0 20px 35px rgba(4, 18, 44, 0.4);
    border: 1px solid rgba(7, 56, 112, 0.18);
    backdrop-filter: blur(18px);
    justify-self: start;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    animation: hero-logo-rise var(--hero-rise-duration) var(--hero-rise-ease) 0.12s forwards;
}

.hero__logo {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(7, 56, 112, 0.35));
}

.hero h1,
.hero__subtitle,
.hero__actions {
    opacity: 0;
    transform: translateY(22px);
    animation: hero-content-rise var(--hero-rise-duration) var(--hero-rise-ease) forwards;
    will-change: transform, opacity;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0;
    animation-delay: 0.18s;
}
.hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    animation-delay: 0.3s;
}

.hero__actions {
    display: flex;
    align-items: center;
    animation-delay: 0.42s;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    background-color: var(--color-accent);
    color: #041430;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse 3s ease-in-out infinite;
    z-index: 3;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(103, 196, 12, 0.35);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(103, 196, 12, 0.45);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(103, 196, 12, 0);
    }
}

@keyframes hero-logo-rise {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-content-rise {
    0% {
        opacity: 0;
        transform: translateY(26px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-wave-drift {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: -1600px 50%;
    }
}
@keyframes hero-wave-modulate-a {
    0% {
        transform: translate3d(0, 0, 0) scaleY(1);
    }
    27% {
        transform: translate3d(0, -12px, 0) scaleY(1.16);
    }
    53% {
        transform: translate3d(0, 6px, 0) scaleY(0.92);
    }
    81% {
        transform: translate3d(0, -5px, 0) scaleY(1.1);
    }
    100% {
        transform: translate3d(0, 0, 0) scaleY(1);
    }
}


.hero__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    display: block;
    background:
        radial-gradient(circle at 20% 20%, rgba(103, 196, 12, 0.12), transparent 55%),
        radial-gradient(circle at 78% 32%, rgba(180, 216, 255, 0.18), transparent 62%);
}

.hero__wave {
    position: absolute;
    left: -35%;
    width: 170%;
    background-repeat: repeat-x;
    background-size: 1600px 400px;
    background-position: 0 50%;
    filter: drop-shadow(0 22px 44px rgba(14, 36, 66, 0.45));
    transform-origin: center;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    will-change: transform, background-position;
}

.hero__wave--primary {
    top: 48%;
    height: 52%;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%221600%22%20height%3D%22400%22%20viewBox%3D%220%200%201600%20400%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20260Q200%2060%20400%20260T800%20260T1200%20260T1600%20260%22%20stroke%3D%22%237affb7%22%20stroke-width%3D%224%22%20stroke-opacity%3D%220.88%22/%3E%3Cpath%20d%3D%22M0%20210Q200%20110%20400%20210T800%20210T1200%20210T1600%20210%22%20stroke%3D%22%2359b6ff%22%20stroke-width%3D%223%22%20stroke-opacity%3D%220.48%22/%3E%3Cpath%20d%3D%22M0%20236Q200%20170%20400%20236T800%20236T1200%20236T1600%20236%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222.4%22%20stroke-opacity%3D%220.35%22/%3E%3C/g%3E%3C/svg%3E");
    animation: hero-wave-drift 46s linear infinite, hero-wave-modulate-a 18s ease-in-out infinite;
    animation-delay: 0s, -4s;
}

.about {
    background-color: var(--color-surface);
    padding-block: 4rem;
}

.about__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    max-width: 50rem;
    margin-inline: auto;
}

.about__highlights li {
    background-color: #eef4ff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.about__highlights span {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.35rem;
}

.services {
    padding-block: 4rem 5rem;
}

.deliverables {
    background-color: var(--color-surface);
    padding-block: 4rem;
}

.detail-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 70rem;
    display: grid;
    gap: 1rem;
}

.detail-list li {
    background-color: rgba(7, 56, 112, 0.06);
    border: 1px solid rgba(7, 56, 112, 0.1);
    border-radius: 1.1rem;
    padding: 1.25rem 1.5rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.detail-list--dense {
    gap: 0.85rem;
}

.detail-list--dense li {
    background-color: rgba(7, 56, 112, 0.04);
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.card {
    background-color: var(--color-surface);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(7, 56, 112, 0.08);
    border: 1px solid rgba(7, 56, 112, 0.08);
    display: grid;
    gap: 0.75rem;
}

.card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.trust {
    background-color: var(--color-surface);
    padding-block: 4rem;
}

.icon-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.icon-grid__item {
    background: linear-gradient(135deg, rgba(7, 56, 112, 0.06), rgba(7, 56, 112, 0));
    border: 1px solid rgba(7, 56, 112, 0.08);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: grid;
    gap: 0.5rem;
}

.icon-grid__item h3 {
    margin: 0;
    font-size: 1.25rem;
}

.icon-grid__item p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.technology {
    padding-block: 4rem;
}

.pill-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.pill-list li {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background-color: rgba(7, 56, 112, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.contact {
    background-color: var(--color-surface);
    padding-block: 4rem 5rem;
}

.contact__content {
    display: grid;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: var(--color-primary);
}

.input {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(7, 56, 112, 0.22);
    background-color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(7, 56, 112, 0.18);
}

.input--textarea {
    resize: vertical;
    min-height: 150px;
}

.security {
    padding-block: 4rem 4.5rem;
}

.security .detail-list li {
    background-color: rgba(7, 56, 112, 0.08);
    border-color: rgba(7, 56, 112, 0.12);
}

.form-field--full {
    grid-column: 1 / -1;
}

.contact__form {
    background-color: var(--color-surface);
    border: 1px solid rgba(7, 56, 112, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(7, 56, 112, 0.08);
}

.contact__form .validation-summary-errors {
    margin-top: 0;
}

.form-actions {
    margin-top: 1.5rem;
}

.submit-button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 1.1rem 3rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    margin-top: 1.5rem;
}

.submit-button--loading,
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button:hover,
.submit-button:focus {
    background-color: #052a54;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 56, 112, 0.25);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(103, 196, 12, 0.65);
    outline-offset: 3px;
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(103, 196, 12, 0.12);
    border: 1px solid rgba(103, 196, 12, 0.35);
    border-radius: 0.75rem;
    color: #2b4c0a;
}

.form-feedback--error {
    background-color: rgba(180, 35, 28, 0.12);
    border-color: rgba(180, 35, 28, 0.35);
    color: #5a1411;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.validation-summary-errors {
    margin-bottom: 1rem;
    background-color: rgba(227, 52, 47, 0.1);
    border: 1px solid rgba(227, 52, 47, 0.25);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #8a1f1f;
}

.validation-message {
    font-size: 0.85rem;
    color: #b4231c;
}

.contact__details {
    background: linear-gradient(135deg, rgba(7, 56, 112, 0.08), rgba(7, 56, 112, 0));
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(7, 56, 112, 0.1);
    display: grid;
    gap: 1rem;
    color: var(--color-muted);
}

.captcha-field {
    display: grid;
    gap: 0.5rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-question {
    background-color: rgba(7, 56, 112, 0.08);
    color: var(--color-primary);
    padding: 0.75rem 1.1rem;
    border-radius: 0.9rem;
    font-weight: 600;
    min-width: 7rem;
    text-align: center;
}

.captcha-input {
    max-width: 6rem;
    text-align: center;
    font-weight: 600;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.contact__details h3 {
    margin: 0;
    color: var(--color-primary);
}

.link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.link:hover,
.link:focus {
    text-decoration: underline;
}

.site-footer {
    background-color: #041430;
    color: rgba(255, 255, 255, 0.75);
    padding: 2rem 1.5rem;
}

.site-footer__content {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: center;
}

.site-footer .link {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .link:hover,
.site-footer .link:focus {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero__logo-card,
    .hero h1,
    .hero__subtitle,
    .hero__actions,
    .cta-button {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__wave {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid .card:last-child {
        grid-column: 1 / -1;
    }

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

@media (min-width: 900px) {
    section {
        padding-inline: 3rem;
    }

    .landing {
        gap: 5rem;
    }

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

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

    .hero__content {
        margin-left: auto;
    }

    .hero__background {
        opacity: 0.65;
    }

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

    .card-grid .card:last-child {
        grid-column: auto;
    }

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

    .contact__content {
        grid-template-columns: 1.4fr 1fr;
    }

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