/* ==========================================================================
   LENTERA UMKM — Landing Page Specific Styles (landing.css)
   Hero Section, AI Prompt Box, Sketch Circle, and Generation Modal
   ========================================================================== */

/* ── Hero Section Wrapper ── */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: 0;
    padding-top: 72px;
    background: radial-gradient(circle at 50% 20%, #0c2b64 0%, #03102e 50%, #020817 100%);
    background-color: #020817;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-ascii-bg,
.hero-ascii-bg.gradient-ascii-container {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    flex: none !important;
}

.hero-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    padding: 40px clamp(20px, 4.5vw, 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ── Centered AI Prompt Bar & Hero Title ── */
.hero-prompt-container {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-prompt-header {
    text-align: center;
    max-width: 840px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-prompt-title {
    font-family: var(--font-body);
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(0, 10, 45, 0.45);
}

/* ── Hand-Drawn Circular Mark around "Website" ── */
.word-circle {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    padding: 0 4px;
}

.word-circle-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.sketch-circle-svg {
    position: absolute;
    top: -24%;
    left: -14%;
    width: 128%;
    height: 148%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(0, 246, 254, 0.85));
}

.sketch-circle-path {
    stroke-dasharray: 680;
    stroke-dashoffset: 680;
    animation: drawSketchCircle 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.25s;
}

@keyframes drawSketchCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-prompt-desc {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.35vw, 17.5px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.58;
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 10, 45, 0.4);
}

/* ── Dark Charcoal Rounded Container Box ── */
.prompt-box {
    width: 100%;
    background-color: #17181c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 22px 24px 18px 24px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 246, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    cursor: text;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.prompt-box:focus-within {
    border-color: rgba(0, 246, 254, 0.5);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.75), 0 0 55px rgba(0, 246, 254, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.prompt-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.48;
    color: #d6d6d3;
    min-height: 52px;
    max-height: 200px;
    padding: 0;
    margin: 0 0 18px 0;
}

.prompt-textarea::placeholder {
    color: #8c8c89;
}

.prompt-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.prompt-right-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-prompt-icon {
    background: transparent;
    border: none;
    outline: none;
    color: #8e8e8b;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease, transform 0.18s ease;
}

.btn-prompt-icon:hover {
    color: #ffffff;
    transform: scale(1.08);
}

.btn-prompt-icon.active {
    color: #ef4444;
    animation: pulseRecord 1.2s infinite;
}

@keyframes pulseRecord {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.75;
    }
}

.btn-prompt-submit {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #282826;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #787875;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-prompt-submit:hover {
    background-color: #383835;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-prompt-submit:active {
    transform: scale(0.95);
}

.prompt-subtext {
    font-family: var(--font-body);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin-top: 16px;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* ── Modal Simulasi AI Generator ── */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 10, 30, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ai-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ai-modal-card {
    width: 100%;
    max-width: 540px;
    background: #0a1733;
    border: 1px solid rgba(0, 246, 254, 0.35);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 246, 254, 0.18);
    padding: 28px 30px;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-overlay.is-active .ai-modal-card {
    transform: scale(1);
}

.ai-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ai-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(0, 246, 254, 0.12);
    color: #00f6fe;
    border: 1px solid rgba(0, 246, 254, 0.3);
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.ai-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.18s ease;
}

.ai-modal-close:hover {
    color: #ffffff;
}

.ai-modal-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.ai-modal-prompt-quote {
    background: rgba(0, 0, 0, 0.35);
    border-left: 3px solid #00f6fe;
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    font-size: 13.5px;
    color: #d1e4ff;
    line-height: 1.45;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    max-height: 90px;
    overflow-y: auto;
}

.ai-modal-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ai-modal-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
}

.ai-modal-step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.ai-modal-step-icon.done {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.ai-modal-step-icon.pending {
    background: rgba(0, 246, 254, 0.2);
    color: #00f6fe;
    border: 1px solid rgba(0, 246, 254, 0.4);
    animation: spinSlow 1.5s linear infinite;
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

.ai-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modal-action {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.18s ease;
}

.btn-modal-action.primary {
    background: #ffffff;
    color: #002db3;
    box-shadow: 0 4px 16px rgba(0, 246, 254, 0.25);
}

.btn-modal-action.primary:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

.btn-modal-action.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modal-action.secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive Landing Breakpoints ── */
@media (max-width: 1080px) {
    .hero-section {
        padding-top: 20px;
        padding-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .hero-prompt-header {
        margin-bottom: 22px;
    }

    .hero-prompt-title {
        font-size: 26px;
        line-height: 1.22;
    }

    .hero-prompt-desc {
        font-size: 13.5px;
        padding: 0 6px;
        line-height: 1.48;
    }

    .title-break {
        display: inline;
    }

    .prompt-box {
        border-radius: 20px;
        padding: 18px 18px 14px 18px;
    }

    .prompt-textarea {
        font-size: 15px;
    }

    .prompt-subtext {
        font-size: 12px;
        padding: 0 10px;
    }
}

