/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Segoe UI, Arial, sans-serif;
}

body {
    background: #fde6d3;
    color: #000;
}

section {
    width: 100%;
    min-height: 100vh;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ================= NAVBAR ================= */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 65px;
}

.nav-title strong {
    font-size: 24px;
    display: block;
}

.nav-title span {
    font-size: 14px;
    color: #666;
}

.nav-right {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 7px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.student {
    background: #f97316;
}

.admin {
    background: #dc2626;
}


/* ================= HERO ================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1300px;
    margin: auto;
}

.hero-text {
    max-width: 520px;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-text p {
    line-height: 1.6;
    color: #555;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.primary {
    background: #dc2626;
    color: #fff;
}

.secondary {
    background: #fbd2bd;
    color: #dc2626;
}


/* ================= CHAT MOCKUP ================= */

.hero-chat {
    background: linear-gradient(135deg, #dc2626, #facc15);
    padding: 25px;
    border-radius: 25px;
}

.chat-frame {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    width: 360px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.chat-msg.user {
    justify-content: flex-end;
}

.bubble {
    padding: 10px 15px;
    border-radius: 14px;
    font-size: 14px;
    max-width: 220px;
}

.bot .bubble {
    background: #eee;
}

.user .bubble {
    background: #f97316;
    color: #fff;
}

.bot-icon,
.user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
}

.user-icon {
    background: #f97316;
}


/* ================= FEATURES ================= */

.features {
    flex-direction: column;
    background: #fff;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin-top: 40px;
}

.feature-card {
    padding: 25px;
    border-radius: 15px;
    text-align: left;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 22px;
}


/* ================= FEATURE COLORS ================= */

.blue {
    background: #e8f1fb;
}

.blue .icon {
    background: #2563eb;
    color: #fff;
}

.purple {
    background: #efe9fb;
}

.purple .icon {
    background: #7c3aed;
    color: #fff;
}

.green {
    background: #eef7ec;
}

.green .icon {
    background: #166534;
    color: #fff;
}

.orange {
    background: #fff3e8;
}

.orange .icon {
    background: #f97316;
    color: #fff;
}

.lime {
    background: #eef6e9;
}

.lime .icon {
    background: #65a30d;
    color: #fff;
}

.red {
    background: #fdecec;
}

.red .icon {
    background: #dc2626;
    color: #fff;
}


/* ================= CTA ================= */

.cta {
    flex-direction: column;
    background: linear-gradient(135deg, #dc2626, #facc15);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.cta p {
    max-width: 500px;
    margin-bottom: 25px;
}

.cta-btn {
    background: #fff;
    color: #f97316;
    padding: 11px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}


/* ================= FOOTER ================= */

.footer {
    background: #000;
    color: #fff;
    padding: 60px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    color: #aaa;
    font-size: 13px;
}


/* ================= RESPONSIVE ================= */


/* TABLET */

@media (max-width:1024px) {

.hero {
    flex-direction: column;
    text-align: center;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 36px;
}

.hero-buttons {
    justify-content: center;
}

.hero-chat {
    display: flex;
    justify-content: center;
}

.features-grid {
    grid-template-columns: repeat(2, 1fr);
}

}


/* MOBILE */

@media (max-width:768px) {

.top-nav {
    padding: 12px 20px;
}

.nav-logo {
    width: 50px;
}

.nav-title strong {
    font-size: 20px;
}

.nav-title span {
    display: none;
}

.hero {
    padding: 40px 20px;
}

.hero-text h1 {
    font-size: 30px;
}

.hero-text p {
    font-size: 14px;
}

.hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn {
    width: 180px;
    font-size: 13px;
    padding: 10px 18px;
}

.chat-frame {
    width: 100%;
    max-width: 320px;
}

.features-grid {
    grid-template-columns: 1fr;
}

.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
}

}


/* SMALL MOBILE */

@media (max-width:480px) {

.hero-text h1 {
    font-size: 26px;
}

.hero-text p {
    font-size: 13px;
}

.chat-frame {
    max-width: 260px;
}

.btn {
    width: 160px;
    padding: 9px 16px;
}

}

/* EXTRA SMALL DEVICES */

@media (max-width:350px){

.top-nav{
flex-direction:column;
align-items:center;
gap:10px;
padding:10px;
}

.nav-left{
flex-direction:column;
gap:5px;
text-align:center;
}

.nav-right{
flex-direction:column;
gap:6px;
width:100%;
align-items:center;
}

.nav-btn{
width:110px;
padding:6px 10px;
font-size:12px;
text-align:center;
}

.hero{
padding:30px 15px;
}

.hero-text h1{
font-size:22px;
}

.hero-text p{
font-size:12px;
line-height:1.4;
}

.hero-buttons{
flex-direction:column;
gap:8px;
align-items:center;
}

.btn{
width:140px;
padding:7px 12px;
font-size:12px;
}

.chat-frame{
max-width:240px;
padding:14px;
}

.bubble{
font-size:12px;
padding:8px 10px;
max-width:170px;
}

.bot-icon,
.user-icon{
width:26px;
height:26px;
font-size:12px;
}

}
