body{
    margin:0;
    background:#f4f6f8;
    font-family:Arial, sans-serif;
    color:#333;
}

.navbar{
    position: sticky;
    top: 0;
    z-index: 999;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 8%;
    background:white;

    transition:
    min-height 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

.brand{
    font-size:26px;
    font-weight:bold;
    color:#6A1B9A;
}

.nav-links{
    display:flex;
    gap:25px;
}

.nav-links a{
    color:#444;
    text-decoration:none;
    font-size:16px;
}

.hero{
    min-height:calc(100vh - 78px);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    padding:40px 20px;
    box-sizing:border-box;
}

h1{
    color:#6A1B9A;
    font-size:50px;
    max-width:800px;
    margin:0 0 20px;
}

.hero {
    min-height: calc(100vh - 78px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 8%;
    box-sizing: border-box;

    background:
        radial-gradient(circle at top left, #ede9fe 0%, transparent 35%),
        radial-gradient(circle at bottom right, #ccfbf1 0%, transparent 30%),
        #f8fafc;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-label {
    display: inline-block;

    margin: 0 0 20px;
    padding: 9px 16px;

    background: #ede9fe;
    color: #6a1b9a;

    border-radius: 50px;

    font-size: 15px;
    font-weight: bold;
}

.hero h1 {
    margin: 0;

    color: #0f172a;

    font-size: 58px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: #6a1b9a;
}

.hero-description {
    max-width: 760px;

    margin: 26px auto 0;

    color: #475569;

    font-size: 20px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;

    margin-top: 34px;
}

.hero-buttons button {
    padding: 15px 28px;

    border-radius: 10px;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;
}

.primary-button {
    background: #6a1b9a;
    color: white;
    border: 2px solid #6a1b9a;
}

.secondary-button {
    background: white;
    color: #6a1b9a;
    border: 2px solid #d8b4fe;
}

.trial-note {
    margin-top: 18px;

    color: #64748b;

    font-size: 14px;
}

.teaching-philosophy {
    padding: 100px 8%;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.teaching-philosophy h2 {
    max-width: 800px;
    margin: 0 auto;

    color: #0f172a;

    font-size: 44px;
    line-height: 1.2;
    letter-spacing: -1px;

    text-align: center;
}

.section-description {
    max-width: 760px;
    margin: 24px auto 0;

    color: #475569;

    font-size: 19px;
    line-height: 1.7;

    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;

    margin-top: 60px;
}

.feature-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 24px;

    background: #f3e8ff;
    border-radius: 14px;

    font-size: 26px;
}

.feature-card h3 {
    margin: 0 0 16px;

    color: #0f172a;

    font-size: 24px;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;

    color: #475569;

    font-size: 17px;
    line-height: 1.6;
}

.feature-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    overflow-y: auto;
}

.modal-overlay.show-modal {
    display: flex;
}

.signup-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    padding: 0;
    border: none;
    background: transparent;
    color: #111111;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.modal-label {
    margin: 0 0 22px;
    color: #6847ff;
    font-size: 18px;
    font-weight: 700;
}

.signup-modal h2 {
    margin: 0 0 14px;
    color: #333333;
    font-size: 32px;
    line-height: 1.2;
}

.modal-description {
    margin: 0 0 28px;
    color: #6b6b6b;
    font-size: 17px;
    line-height: 1.5;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #6847ff;
    box-shadow: 0 0 0 3px rgba(104, 71, 255, 0.12);
}

.modal-submit,
.success-close {
    border: none;
    border-radius: 10px;
    background: #6847ff;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.modal-submit {
    width: 100%;
    padding: 15px 20px;
}

.modal-submit:hover,
.success-close:hover {
    background: #5735eb;
}

.modal-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: -4px 0 0;
    color: #6b6b6b;
    font-size: 14px;
    text-align: center;
}

.modal-note span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #6847ff;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* SUCCESS VIEW */

.success-message {
    display: none;
    min-height: 390px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-message.show-success {
    display: flex;
}

.modal-form-view.hide-form-view {
    display: none;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #e6f8ee;
    color: #2dcc70;
    font-size: 58px;
    font-weight: 700;
}

.success-message h3 {
    margin: 0 0 16px;
    color: #6847ff;
    font-size: 32px;
    line-height: 1.2;
}

.success-message p {
    margin: 0 0 30px;
    color: #666666;
    font-size: 17px;
    line-height: 1.6;
}

.success-close {
    min-width: 140px;
    padding: 14px 26px;
}

/* MOBILE */

@media (max-width: 600px) {
    .modal-overlay {
        align-items: center;
        padding: 16px;
    }

    .signup-modal {
        max-width: 100%;
        padding: 34px 22px 28px;
        border-radius: 16px;
    }

    .modal-close {
        top: 13px;
        right: 16px;
        font-size: 30px;
    }

    .modal-label {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .signup-modal h2 {
        font-size: 26px;
    }

    .modal-description {
        margin-bottom: 22px;
        font-size: 15px;
    }

    .signup-form {
        gap: 17px;
    }

    .form-group input {
        padding: 13px 14px;
        font-size: 15px;
    }

    .modal-note {
        align-items: flex-start;
        font-size: 12px;
        line-height: 1.4;
    }

    .success-message {
        min-height: 340px;
    }

    .success-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 24px;
        font-size: 48px;
    }

    .success-message h3 {
        font-size: 27px;
    }

    .success-message p {
        font-size: 15px;
    }
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 0 30px;
    background: #ffffff;
}

.logo {
    color: #3f006b;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #222222;
    font-size: 16px;
    text-decoration: none;
}

.nav-links a:hover {
    color: #6847ff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    border-radius: 10px;
    background: #222222;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar.scrolled {
    padding-left: 20px;
    padding-right: 20px;
}

    .menu-toggle {
        display: block;
        z-index: 20;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 15;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: 0;
        overflow: hidden;

        background: #ffffff;
        box-shadow: 0 14px 25px rgba(0, 0, 0, 0.12);

        transition: max-height 0.35s ease;
    }

    .nav-links.show-menu {
        max-height: 320px;
    }

    .nav-links a {
        padding: 16px 20px;
        border-top: 1px solid #eeeeee;
        text-align: center;
    }

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

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

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

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.show-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Balik ang pag-alsa sa cards */
.feature-card.show-reveal:hover {
    transform: translateY(-10px);
}

/* Cards appear one after another */
.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.25s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.4s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.55s;
}

.navbar.scrolled {
    min-height: 54px;
    padding-top: 4px;
    padding-bottom: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .logo {
    font-size: 24px;
}

.logo {
    font-size: 28px;
}

.navbar.scrolled .logo {
    font-size: 24px;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;

    width: 0%;
    height: 4px;

    background: #6847ff;

    transition: width 0.1s linear;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: #6847ff;
    color: white;

    font-size: 24px;
    font-weight: 700;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    box-shadow: 0 10px 25px rgba(104, 71, 255, 0.35);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.back-to-top.show-button {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #5735eb;
    transform: translateY(-4px);
}

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}