:root{
    --violet:#a855f7;
    --turquoise:#14f1d9;
    --bg:#070A1A;
    --text:#fff;
    --muted:rgba(255,255,255,.72);
    --nav-height:78px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    padding-top:calc(var(--nav-height) + 40px);
    font-family:'Segoe UI','Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

/* BACKGROUND */

body::before,
body::after{
    content:'';
    position:fixed;
    width:450px;
    height:450px;
    border-radius:50%;
    filter:blur(140px);
    opacity:.75;
    z-index:-1;
    animation:move 12s infinite alternate;
}

body::before{
    background:var(--violet);
    top:10%;
    left:10%;
}

body::after{
    background:var(--turquoise);
    bottom:10%;
    right:10%;
}

@keyframes move{
    0%{ transform:translate(0,0); }
    100%{ transform:translate(140px,-140px); }
}

/* GLASS */

.glass,
.navbar,
.feature-card,
.step,
.price-card,
.activation,
.dashboard-card,
.api-box,
.faq-item{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
}

/* NAVBAR */

.navbar{
    position:fixed;
    top:20px;
    left:20px;
    right:20px;
    width:auto;
    min-height:var(--nav-height);
    padding:0 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    z-index:1000;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.logo{
    font-size:28px;
    font-weight:700;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:10px;
}

.nav-links a{
    position:relative;
    padding:11px 15px;
    border-radius:999px;
    color:white;
    text-decoration:none;
    font-size:16px;
    font-weight:700;
    opacity:.86;
    transition:.3s ease;
}

.nav-links a:hover{
    color:var(--turquoise);
    opacity:1;
    background:rgba(20,241,217,.10);
    box-shadow:0 0 24px rgba(20,241,217,.16);
    transform:translateY(-2px) scale(1.06);
}

/* HERO */

.hero{
    width:min(1120px,calc(100% - 40px));
    min-height:auto;
    margin:20px auto 50px;
    padding:48px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-content{
    max-width:850px;
}

.badge{
    display:inline-flex;
    margin-bottom:18px;
    padding:7px 14px;
    border:1px solid rgba(20,241,217,.24);
    border-radius:999px;
    color:var(--turquoise);
    background:rgba(20,241,217,.08);
    font-size:13px;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.hero h1{
    margin-bottom:18px;
    font-size:clamp(42px,7vw,76px);
    line-height:.95;
    background:linear-gradient(90deg,var(--violet),var(--turquoise));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    margin-bottom:32px;
    color:var(--muted);
    font-size:20px;
    line-height:1.6;
}

.buttons{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

/* BUTTONS */

.btn,
.primary,
.secondary{
    padding:12px 18px;
    border-radius:12px;
    color:white;
    cursor:pointer;
    font-size:16px;
    transition:.3s ease;
}

.primary{
    background:linear-gradient(90deg,var(--violet),var(--turquoise));
    border:none;
}

.primary:hover{
    transform:translateY(-4px);
    box-shadow:0 0 35px rgba(20,241,217,.28);
}

.secondary{
    background:transparent;
    border:1px solid var(--turquoise);
}

.secondary:hover{
    background:rgba(20,241,217,.10);
    transform:translateY(-3px);
}

/* SECTIONS */

section{
    padding:80px 8%;
}

.section-title{
    text-align:center;
    font-size:36px;
    margin-bottom:10px;
    background:linear-gradient(90deg,#8b5cf6,#06b6d4);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.section-subtitle{
    text-align:center;
    color:rgba(255,255,255,.7);
    max-width:700px;
    margin:0 auto 50px;
}

/* FEATURES */

.features-grid,
.steps,
.pricing-grid,
.dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.feature-card,
.step,
.price-card,
.dashboard-card{
    padding:35px;
    transition:.3s ease;
}

.feature-card:hover,
.step:hover,
.price-card:hover,
.dashboard-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 40px rgba(139,92,246,.25);
}

.feature-icon{
    font-size:40px;
    margin-bottom:20px;
}

.feature-card h3,
.dashboard-card h3{
    margin-bottom:15px;
}

/* HOW */

.step{
    text-align:center;
}

.step-number{
    width:60px;
    height:60px;
    margin:0 auto 20px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,var(--violet),var(--turquoise));
    font-weight:bold;
    font-size:22px;
}

/* PRICING */

.pricing-grid{
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}

.price-card{
    text-align:center;
    position:relative;
    overflow:hidden;
}

.price-card h3{
    font-size:30px;
    margin-bottom:15px;
}

.price{
    margin:25px 0;
    font-size:55px;
    font-weight:700;
    background:linear-gradient(90deg,var(--violet),var(--turquoise));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.price-card ul{
    list-style:none;
    margin-bottom:30px;
}

.price-card ul li{
    margin:15px 0;
    color:rgba(255,255,255,.72);
}

/* ACTIVATION */

.activation{
    max-width:750px;
    margin:auto;
    padding:50px;
}

.activation form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.activation input,
input,
textarea{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.055);
    color:white;
    font:inherit;
    outline:none;
    transition:.3s ease;
}

.activation input::placeholder,
input::placeholder,
textarea::placeholder{
    color:rgba(255,255,255,.65);
}

.activation input:focus,
input:focus,
textarea:focus{
    border-color:rgba(20,241,217,.55);
    box-shadow:0 0 0 4px rgba(20,241,217,.10);
    background:rgba(255,255,255,.08);
}

/* API */

.api-box{
    max-width:900px;
    margin:auto;
    padding:40px;
}

.code{
    margin-top:25px;
    padding:25px;
    border-radius:18px;
    overflow:auto;
    color:#38bdf8;
    background:#020617;
}

/* FAQ */

.faq{
    max-width:900px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.faq-item{
    padding:30px;
}

.faq-item h3{
    margin-bottom:15px;
}

/* FOOTER */

footer{
    width:min(1120px,calc(100% - 40px));
    margin:30px auto 24px;
    padding:28px 34px;
    text-align:center;
    color:rgba(255,255,255,.65);
}

/* RESPONSIVE */

@media(max-width:780px){
    body{
        padding-top:calc(var(--nav-height) + 28px);
    }

    .navbar{
        top:14px;
        left:14px;
        right:14px;
        min-height:68px;
        padding:0 16px;
    }

    .nav-links{
        display:none;
    }

    .hero{
        width:calc(100% - 28px);
        padding:34px 22px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:17px;
    }

    section{
        padding:60px 20px;
    }

    .activation{
        padding:30px 22px;
    }

    footer{
        width:calc(100% - 28px);
        padding:26px 22px;
    }
}

@media(prefers-reduced-motion:reduce){
    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}


/* =============================================
   AUTH MODAL — DevHub
   ============================================= */

/* OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7,10,26,0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* BOX */
.modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 32px;
    box-sizing: border-box;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.46, 0.64, 1), opacity 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,0.3) transparent;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

/* CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: rgba(168,85,247,0.2);
    color: white;
    transform: scale(1.1);
}

/* TABS */
.auth-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    width: calc(50% - 5px);
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    border-radius: 10px;
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    box-shadow: 0 4px 20px rgba(168,85,247,0.35);
}

.auth-tabs[data-active="register"] .tab-indicator {
    transform: translateX(calc(100% + 5px));
}

/* PANELS */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: panelIn 0.38s ease forwards;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* HEADER */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.6;
}

/* FORM */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* FIELD */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.03em;
}

/* INPUT WRAP */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
    color: white;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-wrap input:focus {
    outline: none;
    border-color: rgba(20,241,217,0.55);
    box-shadow: 0 0 0 4px rgba(20,241,217,0.10);
    background: rgba(255,255,255,0.08);
}

.input-wrap input.error {
    border-color: rgba(239,68,68,0.7);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.10);
}

/* TOGGLE PASSWORD */
.toggle-pw {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    display: grid;
    place-items: center;
}

.toggle-pw svg {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.toggle-pw:hover {
    opacity: 1;
}

/* FIELD ERROR */
.field-error {
    font-size: 12px;
    color: #f87171;
    min-height: 16px;
    padding-left: 2px;
}

/* STRENGTH BAR */
.strength-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 2px;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    font-size: 11px;
    opacity: 0.6;
}

/* FORGOT */
.forgot-row {
    text-align: right;
    margin-top: -6px;
}

.forgot-link {
    font-size: 13px;
    color: var(--turquoise);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 1;
}

/* CHECKBOX */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.8;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--violet);
    cursor: pointer;
    padding: 0;
}

.terms-link {
    color: var(--turquoise);
    text-decoration: none;
}

/* SUBMIT BUTTON */
.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168,85,247,0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AUTH MSG (success / error) */
.auth-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    margin-top: -4px;
}

.auth-msg.success {
    background: rgba(20,241,217,0.1);
    border: 1px solid rgba(20,241,217,0.3);
    color: var(--turquoise);
}

.auth-msg.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}

/* SWITCH HINT */
.switch-hint {
    text-align: center;
    font-size: 13px;
    opacity: 0.65;
    margin: 18px 0 0;
}

.switch-link {
    background: none;
    border: none;
    color: var(--turquoise);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.switch-link:hover {
    opacity: 1;
}

/* SUCCESS STATE */
.success-state {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.6, 0.64, 1);
}

@keyframes bounceIn {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-state h2 {
    font-size: 22px;
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px;
}

.success-state p {
    opacity: 0.7;
    font-size: 14px;
    margin: 0 0 24px;
}

/* MOBILE MODAL */
@media (max-width: 520px) {
    .modal-box {
        padding: 28px 20px 24px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-header h2 {
        font-size: 20px;
    }
}