:root {
    --primary-color: #015fb8;
    --background-color: #fff;
    --text-color: #ffffff;
    --card-background: #fff;
    --hover-color: rgba(1, 95, 184, 0.78); /* NHS Dark Blue */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-weight: 400;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--primary-color);
}

.flex {
    display: flex;
}

.justify-content {
    justify-content: center;
}

#particles-js {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: -1;
    height:99%;
    width: 100%;
}

header {
    position: sticky;
    top: 0px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-right:none;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-flow: wrap;
    background: transparent;
    -webkit-box-pack: justify;
    -webkit-box-align: center;
}

.logo {
    height: 80px;
    /*padding: 0px 32px;*/
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    transition: background 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.logo svg {
    width: 67px;
    height: 40px;
    fill: #fff;
}

.nav-links {
    display: flex;
    order: 2;
    width: auto;
    height: auto;
    min-width: 0px;
    flex: 1 1 0%;
    overflow-x: auto;
    -webkit-box-pack: center;
    justify-content: center;
}

.nav-links a {
    display: block;
    overflow: hidden;
    position: relative;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    color: #fff;
    margin: 12px;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-button {
    order: 3;
    /*padding-right: 24px;*/
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}
.nav-button a  {
    display: block;
    text-decoration: none;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
    border: 1px solid #fff;
    padding: 18px 40px;
}

.footer-area {
    padding: 3rem 0;
    border-radius: 1rem;
}

.footer-area a {
    color: #fff;
    text-decoration: underline;
}

.hero {
    text-align: center;
    padding: 3rem 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    line-height: 1;
    font-weight: 700;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.lighter-text {
    color: #b0c7f1;
}


.cta-container {
    padding: 25px 0;
    max-width: 500px;
    margin: auto;
    margin-top: 2rem;
    border-radius: 1rem;
}

.cta-container .signup {
    gap: 1rem;
}

.cta-container h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

input[type="email"],
input[type="text"],
input[type="url"] {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    font-size: 1rem;
    min-width: 300px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background: var(--hover-color);
}

section {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}
section h4 {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 1rem;
    text-transform:uppercase;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}


.logo-grid {
    height: 50px;
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
}

.feature-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

#registrationForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

footer {
    text-align: center;
    padding: 0 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none;
    }
}

.modal-body {
    text-align: center;
}

.success-message {
    padding: 2rem 1rem;
}

.success-checkmark {
    margin: 2rem auto;
    animation: scaleIn 0.5s ease-in-out;
}

.success-checkmark i {
    font-size: 5rem;
    color: #00A499; /* NHS Success Green */
    animation: checkmark 0.8s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.close-success {
    margin-top: 1rem;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.integrations-text {
    width: 40%;
    justify-content: space-between;
}

.integrations-text h2,
.integrations-text p {
    text-align: left;
}

.integrations-list {
    width: 60%;
    text-align: left;
}

.accordion {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.accordion.active .accordion-header::after {
    transform: scaleX(1);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.accordion-header i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
}

.accordion.active .accordion-header i {
    transform: rotate(180deg);
    color: #fff;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 0 1.25rem;
    transform: translateY(-10px);
}

.accordion.active .accordion-body {
    max-height: 500px;
    padding: 1.25rem;
    opacity: 1;
    transform: translateY(0);
}

.accordion.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .integrations-list {
        width: 100%;
    }

    .accordion-header {
        padding: 1rem;
    }

    .accordion-body {
        padding: 0 1rem;
    }

    .accordion.active .accordion-body {
        padding: 1rem;
    }
}

.documentation {
    text-align: center;
    border-radius: 40px;
    margin-top: 80px;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.doc-card {
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.doc-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
    transform: scale(1.1);
}

.doc-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.doc-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.doc-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.doc-link i {
    transition: transform 0.3s ease;
}

.doc-link:hover i {
    transform: translateX(5px);
}

.code-preview {
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.code-preview pre {
    margin: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.code-preview code {
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
}
.documentation-icons {
    display: flex;
    justify-content: center;
    gap: 6rem;
}
.documentation-icons a {
    color: #fff;
    text-decoration: underline;
}
.document-icon svg,
.swagger-icon img,
.postman-icon img {
    height: 50px;
    display: block;
    margin: 10px auto;
}

.swagger-documentation {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .documentation-grid {
        grid-template-columns: 1fr;
    }

    .code-preview {
        margin: 2rem 1rem 0;
    }
}

.demo {
    text-align: center;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 1rem;
}

.demo-form {
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.demo-form .cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    nav {
        padding: 0 10px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .demo-container {
        padding: 2rem;
        margin: 2rem 1rem 0;
    }

    .logo-grid,
    .documentation-icons {
        display: inline;
    }

    .logo-grid img {
        margin: 0 20px;
        margin-bottom: 25px;
    }

    .documentation {
        margin: 25px;
        padding: 10px;
    }

    .documentation .postman-icon,
    .documentation .document-icon,
    .documentation .swagger-icon {
        margin-bottom: 40px;
    }
}