@font-face {
    font-family: 'ES Rebond Grotesque TRIAL';
    src: url('fonts/ESRebondGrotesqueTRIAL-Medium-BF6618904088566.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: 
    url("images/body_background.png") no-repeat center -30px,
    linear-gradient(90deg, #0A0118 0%, #0D0D37 49.41%, #0A0118 100%),
    #0D0D27;
    font-family: 'Inter';
    font-style: normal;
    padding: 0 20px;
}

#header {
    position: relative;
}

#header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    opacity: 0.7;
    background: linear-gradient(
        347deg,
        rgba(44,37,70,0.2) 0%,
        rgba(255,255,255,0.5) 26%,
        rgba(191,186,213,0.30) 76%,
        rgba(44,37,70,0.2) 100%
    );
}

#header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    margin: 0 auto;
    max-width: 1276px;
    height: 72px;
}

.xematik-logo img {
    vertical-align: middle;
}

.xematik-logo span {
    font-family: 'Ebrima', sans-serif;
    font-weight: 700;
    font-size: 24px;
    vertical-align: middle;
    color: #FFFFFF;
}

.header-menu-list {
    display: flex;
    padding: 0px;
    gap: 64px;    
    margin: 0;
    list-style: none;
}

.header-menu-link {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 18px;
    color: #ACA7B7;
    text-decoration: none;
}

#header-login {
    display: flex;
    gap: 16px;
}

.btn {
    box-sizing: border-box;
    font-weight: 500;
    font-size: 16px;
    padding: 1px;  
    width: 111px;
    height: 40px;    
    border-radius: 30px;    
    background: linear-gradient(
      77deg,
      rgba(44,37,70,0.2) 0%,
      rgba(255,255,255,0.5) 25.56%,
      rgba(191,186,213,0.297) 75.84%,
      rgba(44,37,70,0.2) 100%
    );
}

.btn button {
  background: #241C35;
  border-radius: 30px;
  width: 100%;
  height: 100%;
  border: none;
  color: #FFFFFF;
}

#main {
   max-width: 1276px;
   margin: 0 auto;
}

.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 24px;
    min-height: 587px;
    height: auto;
}

.section-title {
    font-family: 'ES Rebond Grotesque TRIAL';
    font-style: normal;
    font-weight: 500;
    font-size: 48px;
    line-height: 56px;
    background: linear-gradient(180deg, #FFFFFF 15.18%, #CAC7D0 79.46%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.main-idea {
    font-family: 'ES Rebond Grotesque TRIAL';
    font-style: normal;
    font-weight: 700;
    font-size: 64px;
    line-height: 96px;
    text-align: center;
    background: linear-gradient(180deg, #FFFFFF 15.18%, #CAC7D0 79.46%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-header h1 {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.02em;
    color: #9B96B0;
    text-align: center;
    margin: -12px 0 0 0;
}

.hero-slogan h2 {
    line-height: 96px;
    margin: 100px 0 0 0;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #9B96B0;
    text-align: center;
    margin: 0;
}

.get-early-access-button {
    width: 180px;
    height: 48px;
    background: #FFFFFF;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: none;
}

.puml-editor-img {
    width: 100%;
}

.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 9px;
    background: #0B0626;
    border-radius: 16px;
    margin-top: 72px;
    padding: 32px 10px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.feature-item img {
    vertical-align: middle;
    width: 100%;
}

.feature-item span {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: #9B96B0;
}

.feature-divider {
    width: 2px;
    margin-top: -32px;
    margin-bottom: -32px;
    align-self: stretch;
    background: linear-gradient(
        to top,
        rgba(60, 50, 85, 0) 0%,
        rgba(102, 93, 125, 0.49) 17%,
        rgba(145, 137, 165, 0.5) 49%,
        rgba(108, 99, 131, 0.56) 76%,
        rgba(60, 50, 85, 0) 100%
    );
}

#for-developers {
    margin: 128px 0 80px 0;
}

.developer-features {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

#for-developers h2 {
    margin: 0 0 32px 0;
}

.dev-feature-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 8px;
    background: #0B0626;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.dev-feature-item h4 {
    font-family: 'ES Rebond Grotesque TRIAL';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(19px, 2.5vw, 32px);
    line-height: 40px;
    text-align: center;
    background: linear-gradient(180deg, #FFFFFF 15.18%, #CAC7D0 79.46%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.dev-feature-item h5 {
    font-family: 'ES Rebond Grotesque TRIAL';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(12px, 1.6vw, 20px);;
    line-height: 24px;
    text-align: center;
    color: #9B96B0;
    margin: 0;
}

.dev-feature-divider {
  width: 100%;
  padding-top: 1px;
  background: linear-gradient(
    to right,
    rgba(60, 50, 85, 0) 0%,
    rgba(102, 93, 125, 0.49) 7.7%,
    rgba(145, 137, 165, 1) 49.5%,
    rgba(108, 99, 131, 0.57) 89.9%,
    rgba(60, 50, 85, 0) 100%
  );
}

.dev-feature-item img {
    width: 100%;
}

#native-desktop {
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 10px;
    gap: 64px;
}

#native-desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
    radial-gradient(
        ellipse 49px 282px at 51% 54%,
        #0EB6C7 0%,
        #5068D1 53%,
        #263AA0 79%,
        #081233 100%
    ),
    linear-gradient(
        to right,
        #0A0118 0%,
        #0D0D37 49.4%,
        #0A0118 100%
        );
    filter: blur(50px);
    z-index: -1;
}

.native-desktop-description h2 {
    font-size: clamp(32px, 4vw, 48px);;
    text-align: left;
    margin: 0;
}

.native-desktop-description {
    font-weight: 400;
    font-size: clamp(18px, 2.3vw, 20px);;
    line-height: 32px;
    letter-spacing: 0.02em;
    color: #9B96B0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 24px;
}

.native-desktop-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.native-desktop-description li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.native-desktop-description li:last-child {
  margin-bottom: 0;
}

.native-desktop-description li::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("images/list_style.png") no-repeat center / contain;
  margin-right: 10px;
}

.native-desktop-image {
    flex: 1;
}

.native-desktop-image img {
    width: 100%;
}

#faq {
    margin: 80px 0;
}

#faq h2 {
    margin: 0 0 24px;
}

.faq-post-title {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.02em;
    color: #9B96B0;
    text-align: center;
    margin: 0 0 48px 0;
}

.faq-post-title a {
    color: #0088EC;
    text-decoration: none;
}

.faq-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question span {
    font-family: 'ES Rebond Grotesque TRIAL';
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    background: linear-gradient(180deg, #FFFFFF 15.18%, #CAC7D0 79.46%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-answer {
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.02em;
    color: #9B96B0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease;
    margin: 8px 50px 0 0;
}

.faq-item.faq-answer-show .faq-answer {
    max-height: 120px;
}


.faq-item .faq-question-icon {
    width: 40px;
    height: 40px;
    background: url("images/faq-answer-closed.png");
}

.faq-item.faq-answer-show .faq-question-icon {
    width: 40px;
    height: 40px;
    background: url("images/faq-answer-opened.png");
}

#footer {
    display: flex;
    justify-content: space-between;
    gap: 56px;
    max-width: 1276px;
    margin: 80px auto;
}

.footer-description {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 410px;
}

.footer-description p {
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    color: #9DA0AC;
    margin: 0;
}

.footer-menu h3 {
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.footer-menu-list {
    display: flex;
    flex-direction: column;
    padding: 0px;
    gap: 16px;
    margin: 0;
    list-style: none;
}

.footer-menu-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #9B96B0;
    text-decoration: none;
}

.get-in-touch {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    gap: 16px;
    width: 399px;
    height: 122px;
    background: linear-gradient(180deg, #0D0C34 0%, #0B031C 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.get-in-touch h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0;
}

.touch-links {
    display: flex;
    gap: 16px;
}

.starting-now {
    padding: 120px 0 160px;
    background: url("images/starting_now_background.png") no-repeat center;
    background-size: cover;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.starting-now-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.starting-now-content h3 {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0;
}

@media (max-width: 768px) {
    #header-content {
        gap: 16px;
    }

    .header-menu-list {
        gap: 24px;
    }

    .main-idea {
        font-size: 42px;
        line-height: normal;
    }
     
    .features {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        margin-top: 16px;
    }

    .feature-divider {
        width: 100%;
        padding-top: 1px;
        margin: 0;
        background: linear-gradient(
            to right,
            rgba(60, 50, 85, 0) 0%,
            rgba(102, 93, 125, 0.49) 7.7%,
            rgba(145, 137, 165, 1) 49.5%,
            rgba(108, 99, 131, 0.57) 89.9%,
            rgba(60, 50, 85, 0) 100%
        );
    }

    .section-title {
        font-size: 32px;
    }
    
    #for-developers {
        margin: 32px 0 16px 0;
    }
    
    #for-developers h2 {
        margin: 0;
    }

    .developer-features {
        flex-direction: column;
    }

    .dev-feature-item {
        gap: 4px;
    }

    .developer-features h4 {
        font-size: 18px;
        line-height: normal;
    }

    .dev-feature-item h5 {
        font-size: 14px;
        line-height: normal;
    }

    .dev-feature-item img {
        width: 75%;
    }

    #native-desktop {
        flex-direction: column;
        padding: 32px 10px;
        gap: 16px;
    }

    .hero-header {
        min-height: unset;
    }

    .puml-editor-img {
        margin-top: 32px;
    }

    .hero-slogan h2 {
        margin: 32px 0 0 0;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .native-desktop-description {
        gap: 12px;
    }

    .native-desktop-description h2 {
        text-align: center;
        line-height: normal;
    }

    #faq {
        margin: 16px 0;
    }

    #faq h2 {
        margin: 0;
    }

    .faq-post-title {
        font-size: 18px;
        line-height: normal;
    }

    .faq-content {
        gap: 16px;
    }

    .faq-question span {
        font-size: 24px;
    }

    .faq-answer {
        font-size: 18px;
        line-height: normal;
    }

    .starting-now {
        padding: 48px 0;
    }

    .starting-now-content h3 {
        font-size: 18px;
        line-height: normal;
    }

    #footer {
        flex-direction: column;
        margin: 16px 0;
        gap: 20px;
    }

    .footer-description {
        width: auto;
        order: 1;
    }

    .get-in-touch {
        width: auto;
        height: auto;
    }
}

/* Early Access Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay[aria-hidden="true"] {
    display: none;
}

.modal {
    position: relative;
    background: linear-gradient(135deg, #13062e 0%, #0d0d37 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #9B96B0;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.modal-close:hover {
    color: #FFFFFF;
}

.modal-title {
    margin: 0 0 8px;
    font-family: 'ES Rebond Grotesque TRIAL', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
}

.modal-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
    color: #9B96B0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
}

.modal-input::placeholder {
    color: #6B6680;
}

.modal-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-submit {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.modal-submit:hover {
    background: #e8e8e8;
}
.modal-success {
    color: #a78bfa;
    font-size: 16px;
    margin: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}
