:root {
    --amber: #F5A623;
    --amber2: #FFB84D;
    --teal: #00C9A7;
    --dark: #07090D;
    --dark2: #0F1318;
    --dark3: #161C24;
    --card: #111820;
    --border: rgba(245, 166, 35, 0.15);
    --border2: rgba(0, 201, 167, 0.15);
    --text: #E8EAF0;
    --muted: #6B7888;
    --green: #3DD68C;
    --red: #FF5C5C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* noise */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .6;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 13, .9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.logo span {
    color: var(--amber);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-size: .88rem;
    color: var(--muted);
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: .2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--amber);
    color: #07090D;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 0 20px rgba(245, 166, 35, .25);
}

.nav-cta:hover {
    background: var(--amber2);
    transform: translateY(-1px);
}

.bosla-bar {
    background: rgba(245, 166, 35, .04);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 12px;
    font-size: .8rem;
    color: var(--muted);
    margin-top: 70px;
}

.bosla-bar strong {
    color: var(--amber);
}

/* HERO */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 80px 6% 60px;
    position: relative;
    overflow: hidden;
    gap: 60px;
}

.hero-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, .09), transparent 65%);
    pointer-events: none;
    animation: pulse 5s ease-in-out infinite;
}

.hero-glow2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 201, 167, .06), transparent 65%);
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

.hero-left {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, .08);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: .8rem;
    color: var(--amber);
    margin-bottom: 28px;
    animation: fadeUp .7s ease both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .2
    }
}

.hero h1 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.14;
    letter-spacing: -.02em;
    margin-bottom: 10px;
    animation: fadeUp .8s .1s ease both;
}

.highlight {
    background: linear-gradient(90deg, var(--amber), #FF8A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teal-h {
    background: linear-gradient(90deg, var(--teal), #00E5C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(.9rem, 1.8vw, 1.05rem);
    color: var(--muted);
    line-height: 1.9;
    margin: 18px 0 36px;
    max-width: 520px;
    animation: fadeUp .8s .2s ease both;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp .8s .3s ease both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber), #D4880A);
    color: #07090D;
    border: none;
    border-radius: 10px;
    padding: 13px 30px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 4px 28px rgba(245, 166, 35, .3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(245, 166, 35, .45);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 30px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: .2s;
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    animation: fadeUp .8s .45s ease both;
}

.stat-num {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: 1.9rem;
    color: var(--amber);
    line-height: 1;
}

.stat-label {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 3px;
}

.hero-right {
    flex: 0 0 420px;
    animation: fadeUp .9s .2s ease both;
}

.logo-hero {
    width: 100%;
    border-radius: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(245, 166, 35, .25));
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* SHARED SECTION */
section {
    padding: 80px 6%;
    position: relative;
}

.section-label {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.9;
    max-width: 540px;
}

/* FEATURES */
.features {
    background: var(--dark2);
}

.features-header {
    text-align: center;
    margin-bottom: 56px;
}

.features-header .section-desc {
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0;
    transition: .3s;
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, .3);
}

.feat-card:hover::before {
    opacity: 1;
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 166, 35, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.feat-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.feat-desc {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.8;
}

/* AI VISION SECTION */
.ai-vision {
    background: var(--dark3);
}

.ai-vision-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vision-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.vision-img img {
    width: 100%;
    display: block;
}

.vision-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.vtag {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.vtag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* DEVICES SECTION */
.devices {
    background: var(--dark2);
}

.devices-header {
    text-align: center;
    margin-bottom: 52px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.device-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: .3s;
    position: relative;
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 201, 167, .3);
    box-shadow: 0 12px 40px rgba(0, 201, 167, .1);
}

.device-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.device-body {
    padding: 22px;
}

.device-badge {
    display: inline-block;
    background: rgba(0, 201, 167, .1);
    color: var(--teal);
    border: 1px solid rgba(0, 201, 167, .2);
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    margin-bottom: 10px;
    letter-spacing: .05em;
}

.device-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 7px;
}

.device-desc {
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.75;
}

/* DROPPINGS AI */
.droppings-section {
    background: var(--dark3);
}

.droppings-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.drop-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.drop-img-wrap img {
    width: 100%;
    display: block;
}

.drop-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.drop-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.drop-feat-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.drop-feat h4 {
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 4px;
}

.drop-feat p {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.7;
}

/* REGISTER */
.reg-section {
    background: var(--dark);
}

.reg-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 52px 48px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reg-box::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 166, 35, .07), transparent 65%);
    pointer-events: none;
}

.reg-header {
    text-align: center;
    margin-bottom: 38px;
}

.reg-header h2 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 10px;
}

.reg-header p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.8;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-label .req {
    color: var(--amber);
}

.form-input,
.form-select {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 15px;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: .9rem;
    outline: none;
    transition: .2s;
    width: 100%;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .07);
}

.form-input::placeholder {
    color: var(--muted);
}

.form-input.error {
    border-color: var(--red);
}

.form-select option {
    background: var(--dark3);
}

.error-msg {
    font-size: .75rem;
    color: var(--red);
    display: none;
}

.error-msg.show {
    display: block;
}

.form-submit {
    margin-top: 26px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, var(--amber), #D4880A);
    color: #07090D;
    border: none;
    border-radius: 12px;
    padding: 14px 46px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 4px 28px rgba(245, 166, 35, .28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 38px rgba(245, 166, 35, .42);
}

.submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.submit-note {
    font-size: .76rem;
    color: var(--muted);
    margin-top: 10px;
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(10, 12, 15, .3);
    border-top-color: #07090D;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.success-state {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.success-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(61, 214, 140, .1);
    border: 2px solid rgba(61, 214, 140, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 22px;
    animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.success-state h3 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.success-state p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.8;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    z-index: 999;
    transition: .4s cubic-bezier(.34, 1.56, .64, 1);
    min-width: 300px;
    max-width: 460px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: rgba(61, 214, 140, .3);
}

.toast.error-t {
    border-color: rgba(255, 92, 92, .3);
}

.toast-title {
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 2px;
}

.toast-msg {
    font-size: .8rem;
    color: var(--muted);
}

/* FOOTER */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 36px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-logo {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
}

.footer-logo span {
    color: var(--amber);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .83rem;
    transition: .2s;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-copy {
    color: var(--muted);
    font-size: .78rem;
}

@media(max-width:900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 60px;
    }

    .hero-right {
        flex: 0 0 auto;
        width: 260px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .ai-vision-inner,
    .droppings-inner {
        grid-template-columns: 1fr;
    }

    .devices-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:600px) {
    .nav-links {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .reg-box {
        padding: 32px 18px;
    }

    .devices-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}